9
3

aColdwindoctopus.lua 953 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : SpawnScripts/Antonica/aColdwindoctopus.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.07.12 12:07:23
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/CatalogueQuestUpdates.lua")
  9. require "SpawnScripts/Generic/NPCModule"
  10. function spawn(NPC, Spawn)
  11. NPCModule(NPC, Spawn)
  12. RandomMovement(NPC, Spawn, 20, -20, 2, 8, 15)
  13. ChooseClass(NPC)
  14. end
  15. function respawn(NPC, Spawn)
  16. spawn(NPC)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. end
  21. function ChooseClass(NPC)
  22. SetClass = MakeRandomInt(1,3)
  23. if SetClass == 1 then
  24. SpawnSet(NPC, "class", 28)
  25. SetSpellList(NPC, 454)
  26. CastSpell(NPC, 280025, 5)
  27. elseif SetClass == 2 then
  28. SpawnSet(NPC, "class", 18)
  29. SetSpellList(NPC, 325)
  30. elseif SetClass == 3 then
  31. SpawnSet(NPC, "class", 2)
  32. SetSpellList(NPC, 451)
  33. end
  34. end