AshildaMacHinry.lua 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/AshildaMacHinry.lua
  3. Script Purpose : Ashilda MacHinry
  4. Script Author : Cynnar
  5. Script Date : 2020.04.12
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. require "SpawnScripts/Generic/DialogModule"
  10. local pond = 5565
  11. function InRange(NPC,Spawn)
  12. if GetFactionAmount(Spawn,11) <0 then
  13. FactionCheckCallout(NPC,Spawn,faction)
  14. else
  15. end
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end
  20. function spawn(NPC)
  21. ProvidesQuest(NPC,pond)
  22. SetPlayerProximityFunction(NPC, 7, "InRange", "LeaveRange")
  23. SetInfoStructString(NPC, "action_state", "fishing_fight")
  24. end
  25. function hailed(NPC, Spawn)
  26. if GetFactionAmount(Spawn,11) <0 then
  27. FactionCheckHail(NPC,Spawn,faction)
  28. else
  29. Dialog1(NPC, Spawn)
  30. end
  31. end
  32. function Dialog1(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. Dialog.New(NPC, Spawn)
  35. Dialog.AddDialog("The fish at this pond support my family better than any other location in the city. Would you like to join me, friend?")
  36. Dialog.AddVoiceover("voiceover/english/ashilda_machinry/qey_harbor/ashildamachinry000.mp3", 3427161331, 347411106)
  37. if not HasQuest(Spawn,pond) and not HasCompletedQuest(Spawn, pond) then
  38. Dialog.AddOption("Have you tried other local fishing spots?", "Dialog3")
  39. end
  40. Dialog.AddOption("I'm not looking to fish right now. Good luck out here.")
  41. Dialog.Start()
  42. end
  43. function Dialog3(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. Dialog.New(NPC, Spawn)
  46. PlayFlavor(NPC, "", "", "confused", 0, 0, Spawn)
  47. Dialog.AddDialog("Oh, I've tried just about everywhere. I get nibbles at most fishing holes -- except for Crater Pond outside the city gates. The bit of meteor that crashed in that pond poisoned and killed everything living in its waters. Nothing grows in its tainted waters now, not even pond scum.")
  48. Dialog.AddVoiceover("voiceover/english/ashilda_machinry/qey_harbor/ashildamachinry001.mp3", 4148175362, 2095028620)
  49. Dialog.AddOption("Interesting. Where is Crater Pond?", "Quest")
  50. Dialog.AddOption("Wow, that sounds dreadful. Good luck out here!")
  51. Dialog.Start()
  52. end
  53. function Quest(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. Dialog.New(NPC, Spawn)
  56. PlayFlavor(NPC, "", "", "scold", 0, 0, Spawn)
  57. Dialog.AddDialog("The pond isn't far from the city gates. Hang a right as you enter the plains of Antonica. Use caution if you visit the poison pond. And certainly, do not drink the water.")
  58. Dialog.AddVoiceover("voiceover/english/ashilda_machinry/qey_harbor/ashildamachinry002.mp3", 333777381, 1162531133)
  59. Dialog.AddOption("Don't drink the water. Got it. I think I'll venture that way just to see the meteor.", "QuestStart")
  60. Dialog.AddOption("Hmm. Now I know what to avoid. Good day.")
  61. Dialog.Start()
  62. end
  63. function QuestStart(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. OfferQuest(NPC,Spawn,pond)
  66. end