aSabertoothchampion.lua 700 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : SpawnScripts/Antonica/aSabertoothchampion.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.09.24 04:09:09
  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", 2)
  23. SetSpellList(NPC, 451)
  24. elseif SetClass == 2 then
  25. SpawnSet(NPC, "class", 32)
  26. SetSpellList(NPC, 469)
  27. end
  28. end