9
3

DuncanAirth.lua 730 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : SpawnScripts/Nettleville/DuncanAirth.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.21 12:06:19
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 6, "InRange", "LeaveRange")
  11. Target(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. GenericEcologyHail(NPC, Spawn, faction)
  16. SetTarget(NPC,Spawn)
  17. end
  18. function InRange(NPC,Spawn)
  19. GenericEcologyCallout(NPC, Spawn, faction)
  20. end
  21. function Target(NPC)
  22. local Karrie = GetSpawn(NPC,2330021)
  23. if Karrie ~=nil then
  24. SetTarget(NPC,Karrie)
  25. end
  26. end