9
3

aDarkbladefuryPRIEST.lua 824 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/TheThievesWay_Classic/aDarkbladefuryPRIEST.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.12.02 04:12:17
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. human(NPC,Spawn)
  12. class(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end
  20. function class(NPC,Spawn)
  21. local class = MakeRandomInt(1,3)
  22. if class == 1 then
  23. SpawnSet(NPC, "class", 1 )
  24. SetSpellList(NPC, 291)
  25. elseif class == 2 then
  26. SpawnSet(NPC, "class", 11)
  27. SetSpellList(NPC, 297)
  28. elseif class == 3 then
  29. SpawnSet(NPC, "class", 31)
  30. SetSpellList(NPC, 294)
  31. end
  32. end