little_lost_froglok.lua 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : Quests/FrostfangSea/an_unbearable_problem.lua
  3. Script Purpose : the quest An Unbearable Problem
  4. Script Author : theFoof
  5. Script Date : 2013.5.21
  6. Zone : Frostfang Sea
  7. Quest Giver : Flibbit Quaqmarr
  8. Preceded by : An Unbearable Problem
  9. Followed by :
  10. --]]
  11. function Accepted(Quest, QuestGiver, Player)
  12. FaceTarget(QuestGiver, Player)
  13. conversation = CreateConversation()
  14. PlayFlavor(QuestGiver, "flibbit_quagmarr/halas/gwenevyns_cove/flibbit_quagmarr/flibbit_quagmarr_029.mp3", "", "", 1372379832, 3108068275, Player)
  15. AddConversationOption(conversation, "I will return once I have news for you.")
  16. StartConversation(conversation, QuestGiver, Player, "Thank you, " .. GetName(Player) .. "! Please hurry!")
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. end
  20. function Deleted(Quest, QuestGiver, Player)
  21. if GetTempVariable(Player, "splorp") ~= nil then
  22. Despawn(GetTempVariable(Player, "splorp"))
  23. SetTempVariable(Player, "splorp", nil)
  24. end
  25. end
  26. function Init(Quest)
  27. AddQuestRewardCoin(Quest, math.random(10,80), math.random(2,5), 0, 0)
  28. AddQuestStepChat(Quest, 1, "I must speak with Sigbrith MacInnes. Sigbrith MacInnes is the mender for Gwenevyn's Cove.", 1, "I must ask Sigbrith MacInnes if she has seen Splorpy.", 0, 4700046)
  29. AddQuestStepCompleteAction(Quest, 1, "TalkedSibrith")
  30. end
  31. function TalkedSibrith(Quest, QuestGiver, Player)
  32. UpdateQuestTaskGroupDescription(Quest, 1, "Sigbrith MacInnes informed me that I should search for Splorpy southwest of Gwenevyn's Cove.")
  33. AddQuestStepChat(Quest, 2, "I must find Splorpy Quagmarr.", 1, "I should search for Splorpy. He was last seen southwest of Gwenevyn's Cove, past the blizzard grizzlies.", 0, 4700044)
  34. AddQuestStepCompleteAction(Quest, 2, "FoundSplorpy")
  35. end
  36. function FoundSplorpy(Quest, QuestGiver, Player)
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I have found Splorpy and should return him to his father in Gwenevyn's Cove.")
  38. AddQuestStepChat(Quest, 3, "I must speak with Flibbit Quagmarr. Flibbit is staying in Gwenevyn's Cove.", 1, "I must return Splorpy to his father Flibbit Quagmarr in Gwenevyn's Cove.", 0, 4700045)
  39. AddQuestStepCompleteAction(Quest, 3, "CompleteQuest")
  40. end
  41. function CompleteQuest(Quest, QuestGiver, Player)
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. TalkedSibrith(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. FoundSplorpy(Quest, QuestGiver, Player)
  49. elseif Step == 3 then
  50. FoundSplorpy(Quest, QuestGiver, Player)
  51. end
  52. end