9
3

aDarkbladefury.lua 866 B

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : SpawnScripts/TheThievesWay_Classic/aDarkbladefury.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.12.11 04:12:03
  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, Spawn)
  13. IdleAggressive(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. end
  18. function respawn(NPC, Spawn)
  19. spawn(NPC, Spawn)
  20. end
  21. function class(NPC, Spawn)
  22. local class = MakeRandomInt(1,3)
  23. if class == 1 then
  24. SpawnSet(NPC, "class", 1 )
  25. SetSpellList(NPC, 291)
  26. elseif class == 2 then
  27. SpawnSet(NPC, "class", 11)
  28. SetSpellList(NPC, 297)
  29. elseif class == 3 then
  30. SpawnSet(NPC, "class", 31)
  31. SetSpellList(NPC, 294)
  32. end
  33. end