afesteringzombie.lua 840 B

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : SpawnScripts/VerminsSnye_Classic/afesteringzombie.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.04.24 08:04:04
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. ChooseClass(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end
  19. function ChooseClass(NPC)
  20. SetClass = MakeRandomInt(1,3)
  21. if SetClass == 1 then
  22. SpawnSet(NPC, "class", 2) -- Warrior
  23. SetSpellList(NPC, 451)
  24. elseif SetClass == 2 then
  25. SpawnSet(NPC, "class", 12) -- Cleric
  26. SetSpellList(NPC, 329)
  27. elseif SetClass == 3 then
  28. SpawnSet(NPC, "class", 38) -- Predator
  29. SetSpellList(NPC, 332)
  30. end
  31. end