amenacingraiderLarge.lua 641 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : SpawnScripts/SunkenCity_Classic/amenacingraiderLarge.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.01.03 04:01:11
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. race(NPC)
  12. IdleAggressive(NPC)
  13. end
  14. function respawn(NPC, Spawn)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. end
  20. function race(NPC, Spawn)
  21. local race = MakeRandomInt(1, 2)
  22. if race == 1 then
  23. ogre(NPC)
  24. elseif race == 2 then
  25. troll(NPC)
  26. end
  27. end