MarjaniKenan.lua 847 B

12345678910111213141516171819202122232425262728293031323334353637
  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. SetInfoStructString(NPC, "action_state", "flirt")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. GenericEcologyCallout(NPC, Spawn, faction)
  18. end
  19. function LeaveRange(NPC, Spawn)
  20. end
  21. function hailed(NPC, Spawn)
  22. Talk(NPC, Spawn)
  23. end
  24. function Talk(NPC, Spawn)
  25. if GetQuestStep(Spawn,5598)==1 then
  26. SetStepComplete(Spawn, 5598, 1)
  27. end
  28. FaceTarget(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. GenericEcologyHail(NPC, Spawn, faction)
  31. end