ablackwolf.lua 730 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/ablackwolf.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.01.03 05:01:11
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. class(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 class(NPC, Spawn)
  20. setclass = MakeRandomInt(1,3)
  21. if setclass == 1 then
  22. SpawnSet(NPC, "class", 2) --Warrior
  23. elseif setclass == 2 then
  24. SpawnSet(NPC, "class", 15) -- Druid
  25. elseif setclass == 3 then
  26. SpawnSet(NPC, "class", 38) -- Predator
  27. end
  28. end