amenacingraiderRoamer.lua 862 B

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : SpawnScripts/SunkenCity_Classic/amenacingraiderRoamer.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.01.03 04:01:03
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. RandomMovement(NPC, Spawn, 6, -6, 2, 8, 15)
  12. race(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, 4)
  22. if race == 1 then
  23. dofile("SpawnScripts/Generic/MonsterCallouts/BaseDarkElf1.lua")
  24. darkelf(NPC)
  25. SetSeeHide(NPC,1)
  26. elseif race == 2 then
  27. human(NPC)
  28. elseif race == 3 then
  29. ogre(NPC)
  30. elseif race == 4 then
  31. troll(NPC)
  32. end
  33. end