amenacingraiderDarkElf.lua 725 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : SpawnScripts/SunkenCity_Classic/amenacingraiderDarkElf.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.10.27 08:10:09
  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. elseif race == 2 then
  26. human(NPC)
  27. end
  28. end