9
3

amenacingraider.lua 763 B

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : SpawnScripts/SunkenCity_Classic/amenacingraider.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.10.24 11:10:38
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. race(NPC)
  12. end
  13. function respawn(NPC, Spawn)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. end
  19. function race(NPC, Spawn)
  20. local race = MakeRandomInt(1, 2)
  21. if race == 1 then
  22. dofile("SpawnScripts/Generic/MonsterCallouts/BaseDarkElf1.lua")
  23. darkelf(NPC)
  24. SetSeeHide(NPC,1)
  25. IdleSneaky(NPC)
  26. elseif race == 2 then
  27. human(NPC)
  28. IdleAlert(NPC)
  29. end
  30. end