HunterLatharForestdeep.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. SetInfoStructString(NPC, "action_state", "crouch_idle")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. 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)
  17. end
  18. function LeaveRange(NPC, Spawn)
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. conversation = CreateConversation()
  23. PlayFlavor(NPC, "voiceover/english/hunter_lathar_forestdeep/qey_village05/quests/hunter_forestdeep/hunter_forestdeep.mp3", "", "", 1771449207, 2174692031, Spawn)
  24. if HasQuest(Spawn, 5484) then
  25. AddConversationOption(conversation, "Sorry, but I have this letter you from the Forest Ruins.", "Letter")
  26. end
  27. AddConversationOption(conversation, "Sorry to have bothered you. ")
  28. StartConversation(conversation, NPC, Spawn, "What do you need? I'm very busy.")
  29. end
  30. function Letter(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. conversation = CreateConversation()
  33. PlayFlavor(NPC, "voiceover/english/hunter_lathar_forestdeep/qey_village05/quests/hunter_forestdeep/hunter_forestdeep000.mp3", "", "", 1811746437, 2116303434, Spawn)
  34. AddConversationOption(conversation, "Thanks.", "Reward")
  35. 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.")
  36. end
  37. function Reward(NPC, Spawn)
  38. SetStepComplete(Spawn, 5484, 1)
  39. end