9
3

adankfurgnoll.lua 925 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : SpawnScripts/Antonica/adankfurgnoll.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.13 05:07:20
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/DarkpawGnoll1.lua")
  9. require "SpawnScripts/Generic/NPCModule"
  10. function spawn(NPC, Spawn)
  11. NPCModule(NPC, Spawn)
  12. ChooseClass(NPC)
  13. AddTimer(NPC, 6000, "waypoints")
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. end
  18. function respawn(NPC)
  19. spawn(NPC)
  20. end
  21. function ChooseClass(NPC)
  22. SetClass = MakeRandomInt(1,2)
  23. if SetClass == 1 then
  24. SpawnSet(NPC, "class", 1)
  25. SetSpellList(NPC, 291)
  26. elseif SetClass ==2 then
  27. SpawnSet(NPC, "class", 12)
  28. SetSpellList(NPC, 329)
  29. end
  30. end
  31. function waypoints(NPC)
  32. if IsHeroic(NPC) == false then
  33. RandomMovement(NPC, Spawn, 8, -8, 2, 8, 15)
  34. end
  35. end