MarjaniKenan.lua 792 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/Nettleville/MarjaniKenan.lua
  3. Script Purpose : Marjani Kenan
  4. Script Author : Dorbin
  5. Script Date : 06.25.2022
  6. Script Notes :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 6, "InRange", "LeaveRange")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. GenericEcologyCallout(NPC, Spawn, faction)
  17. end
  18. function LeaveRange(NPC, Spawn)
  19. end
  20. function hailed(NPC, Spawn)
  21. Talk(NPC, Spawn)
  22. end
  23. function Talk(NPC, Spawn)
  24. if GetQuestStep(Spawn,5598)==1 then
  25. SetStepComplete(Spawn, 5598, 1)
  26. end
  27. FaceTarget(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. GenericEcologyHail(NPC, Spawn, faction)
  30. end