9
3

AshildaMacHinry.lua 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. end
  24. function hailed(NPC, Spawn)
  25. if GetFactionAmount(Spawn,11) <0 then
  26. FactionCheckHail(NPC,Spawn,faction)
  27. else
  28. Dialog1(NPC, Spawn)
  29. end
  30. end
  31. function Dialog1(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. Dialog.New(NPC, Spawn)
  34. 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?")
  35. Dialog.AddVoiceover("voiceover/english/ashilda_machinry/qey_harbor/ashildamachinry000.mp3", 3427161331, 347411106)
  36. if not HasQuest(Spawn,pond) and not HasCompletedQuest(Spawn, pond) then
  37. Dialog.AddOption("Have you tried other local fishing spots?", "Dialog3")
  38. end
  39. Dialog.AddOption("I'm not looking to fish right now. Good luck out here.")
  40. Dialog.Start()
  41. end
  42. function Dialog3(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. Dialog.New(NPC, Spawn)
  45. PlayFlavor(NPC, "", "", "confused", 0, 0, Spawn)
  46. 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 big meteor that crashed in that pond poisoned and killed everything living in it's waters! Nothing grows in it's tainted waters now; not even pond scum.")
  47. Dialog.AddVoiceover("voiceover/english/ashilda_machinry/qey_harbor/ashildamachinry001.mp3", 4148175362, 2095028620)
  48. Dialog.AddOption("Interesting. Where is Crater Pond?", "Quest")
  49. Dialog.AddOption("Wow, that sounds dreadful. Good luck out here!")
  50. Dialog.Start()
  51. end
  52. function Quest(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. Dialog.New(NPC, Spawn)
  55. PlayFlavor(NPC, "", "", "scold", 0, 0, Spawn)
  56. 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.")
  57. Dialog.AddVoiceover("voiceover/english/ashilda_machinry/qey_harbor/ashildamachinry002.mp3", 333777381, 1162531133)
  58. Dialog.AddOption("Don't drink the water. Got it. I think I'll venture that way just to see the meteor.", "QuestStart")
  59. Dialog.AddOption("Hmm. Now I know what to avoid. Good day.")
  60. Dialog.Start()
  61. end
  62. function QuestStart(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. OfferQuest(NPC,Spawn,pond)
  65. end