askeletalfootsoldier.lua 645 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : SpawnScripts/ThunderingSteppes/askeletalfootsoldier.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.03.22 04:03:00
  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,2)
  21. if SetClass == 1 then
  22. SpawnSet(NPC, "class", 3)
  23. elseif SetClass == 2 then
  24. SpawnSet(NPC, "class", 4)
  25. end
  26. end