HunterLatharForestdeep.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : SpawnScripts/WillowWood/HunterLatharForestdeep.lua
  3. Script Purpose : Hunter Lathar Forestdeep
  4. Script Author : Dorbin
  5. Script Date : 2022.02.21
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. PlayFlavor(NPC, "voiceover/english/hunter_lathar_forestdeep/qey_village05/100_hunter_woodelf_forestdeep_aoi_d409e2bd.mp3", "I don't know how he snuck past the patrols. If you approach slowly, he may let you touch him.", "", 1614740945, 3996136643, Spawn)
  16. end
  17. function LeaveRange(NPC, Spawn)
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. conversation = CreateConversation()
  22. PlayFlavor(NPC, "voiceover/english/hunter_lathar_forestdeep/qey_village05/quests/hunter_forestdeep/hunter_forestdeep.mp3", "", "", 1771449207, 2174692031, Spawn)
  23. if HasQuest(Spawn, 5484) then
  24. AddConversationOption(conversation, "Sorry, but I have this letter you from the Forest Ruins.", "Letter")
  25. end
  26. AddConversationOption(conversation, "Sorry to have bothered you. ")
  27. StartConversation(conversation, NPC, Spawn, "What do you need? I'm very busy.")
  28. end
  29. function Letter(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. conversation = CreateConversation()
  32. PlayFlavor(NPC, "voiceover/english/hunter_lathar_forestdeep/qey_village05/quests/hunter_forestdeep/hunter_forestdeep000.mp3", "", "", 1811746437, 2116303434, Spawn)
  33. AddConversationOption(conversation, "Thanks.", "Reward")
  34. StartConversation(conversation, NPC, Spawn, "Yes, yes, that's fine. I suppose it would be rude of me not to offer you anything in return. It's not much, but it's something.")
  35. end
  36. function Reward(NPC, Spawn)
  37. SetStepComplete(Spawn, 5484, 1)
  38. end