acoldwindpike.lua 759 B

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