9
3

GalindaGoodfaith.lua 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/GalindaGoodfaith.lua
  3. Script Purpose : Galinda Goodfaith
  4. Script Author : theFoof
  5. Script Date : 2013.03.16
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local HalasianWelcome = 1
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  11. ProvidesQuest(NPC, 1)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. end
  18. function LeaveRange(NPC, Spawn)
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. if HasQuest(Spawn, HalasianWelcome) then
  23. PlayFlavor(NPC, "", "Yasha Redblade could use your help. She's to the northeast outside of the broken ship's hull.", "nod", 1689589577, 4560189, Spawn)
  24. elseif HasCompletedQuest(Spawn, HalasianWelcome) then
  25. PlayFlavor(NPC, "", "You'll go on to accomplish great things, of this I am certain!", "", 1689589577, 4560189, Spawn)
  26. else
  27. conversation = CreateConversation()
  28. PlayFlavor(NPC, "galinda_goodfaith/halas/pilgrims_landing/goodfaith_001.mp3", "", "", 153197650, 2166284813, Spawn)
  29. AddConversationOption(conversation, "Who are you?", "dlg_0_1")
  30. AddConversationOption(conversation, "Where am I?", "dlg_1_1")
  31. StartConversation(conversation, NPC, Spawn, "Whoa! You're awake then. I was worried about you there for a while, " .. GetName(Spawn) .. ".")
  32. end
  33. end
  34. function dlg_0_1(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. conversation = CreateConversation()
  37. PlayFlavor(NPC, "galinda_goodfaith/halas/pilgrims_landing/goodfaith_002.mp3", "", "", 2530966290, 131889308, Spawn)
  38. AddConversationOption(conversation, "I did?", "dlg_0_2")
  39. AddConversationOption(conversation, "Thank you for the help.", "dlg_0_4")
  40. AddConversationOption(conversation, "Where am I?", "dlg_1_1")
  41. StartConversation(conversation, NPC, Spawn, "I'm the lass who's been tending to your wounds, that's who! You were knocked unconscious, but not before you saved three others from the sea.")
  42. end
  43. function dlg_1_1(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. conversation = CreateConversation()
  46. PlayFlavor(NPC, "galinda_goodfaith/halas/pilgrims_landing/goodfaith_003.mp3", "", "", 2658425165, 4282904671, Spawn)
  47. AddConversationOption(conversation, "Thank you for the help.", "dlg_0_4")
  48. AddConversationOption(conversation, "Who are you?", "dlg_0_1")
  49. StartConversation(conversation, NPC, Spawn, "You're on a big chunk of floating ice and rock, dubbed Pilgrims' Landing. Your boat was besieged by the snow orcs and destroyed while it was on its way towards the New Halas dock.")
  50. end
  51. function dlg_0_2(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. conversation = CreateConversation()
  54. PlayFlavor(NPC, "galinda_goodfaith/halas/pilgrims_landing/goodfaith_004.mp3", "", "", 3736336423, 4235698152, Spawn)
  55. AddConversationOption(conversation, "I don't remember that.", "dlg_0_3")
  56. StartConversation(conversation, NPC, Spawn, "Cross my heart, you did! You must have taken a nasty bump on the noggin, but that didn't halt you! You came struggling ashore here, carrying three others, one 'neath each arm and another on your back!")
  57. end
  58. function dlg_0_3(NPC, Spawn)
  59. FaceTarget(NPC, Spawn)
  60. conversation = CreateConversation()
  61. PlayFlavor(NPC, "galinda_goodfaith/halas/pilgrims_landing/goodfaith_004.mp3", "", "", 3736336423, 4235698152, Spawn)
  62. AddConversationOption(conversation, "Thank you for the help.", "dlg_0_4")
  63. AddConversationOption(conversation, "Who are you?", "dlg_0_1")
  64. AddConversationOption(conversation, "Where am I?", "dlg_1_1")
  65. StartConversation(conversation, NPC, Spawn, "They'd have surely drowned if it had not been for you. But you fell into a deep sleep the moment you were on dry land. I've been taking care of you ever since.")
  66. end
  67. function dlg_0_4(NPC, Spawn)
  68. FaceTarget(NPC, Spawn)
  69. conversation = CreateConversation()
  70. PlayFlavor(NPC, "galinda_goodfaith/halas/pilgrims_landing/goodfaith_005.mp3", "", "", 1055106469, 3750971957, Spawn)
  71. AddConversationOption(conversation, "Not if we attack them back.", "dlg_0_5")
  72. AddConversationOption(conversation, "I'm feeling pretty good now.", "dlg_1_4")
  73. StartConversation(conversation, NPC, Spawn, "Think nothing of it! You're the one that went above and beyond, saving others like you did. Healing others is why I am here. You are not the first to have suffered an attack by the orcs, nor do I dare say you will be the last.")
  74. end
  75. function dlg_1_4(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. conversation = CreateConversation()
  78. PlayFlavor(NPC, "galinda_goodfaith/halas/pilgrims_landing/goodfaith_007.mp3", "", "", 2427981799, 3625665591, Spawn)
  79. AddConversationOption(conversation, "I'll find her.", "OfferHalasianWelcome")
  80. AddConversationOption(conversation, "I'm going to explore some first. Goodbye.", "dlg_0_5")
  81. StartConversation(conversation, NPC, Spawn, "That is a relief to hear, " .. GetName(Spawn) .. ". I figured a hit to the noggin couldn't keep someone as powerful as you down for long! Yasha Redblade could definitely use your help. She's to the northeast outside of the broken ship's hull.")
  82. end
  83. function dlg_0_5(NPC, Spawn)
  84. FaceTarget(NPC, Spawn)
  85. conversation = CreateConversation()
  86. PlayFlavor(NPC, "galinda_goodfaith/halas/pilgrims_landing/goodfaith_006.mp3", "", "", 1162130667, 1040606597, Spawn)
  87. AddConversationOption(conversation, "That's great!", "OfferHalasianWelcome")
  88. AddConversationOption(conversation, "I'm going to explore some first. Goodbye.")
  89. StartConversation(conversation, NPC, Spawn, "No doubt! I figured a hit to the noggin couldn't keep someone as powerful as you down for long! Yasha Redblade could definitely use your help. She's to the northeast outside of the broken ship's hull. She'll get you prepared to face those orcs!")
  90. end
  91. function OfferHalasianWelcome(NPC, Spawn) --Offers A Fine Halasian Welcome
  92. OfferQuest(NPC, Spawn, HalasianWelcome)
  93. end