9
3

BlumbleBlunder.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : Quests/ThunderingSteppes/BlumbleBlunder.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.07.07 08:07:18
  5. Script Purpose :
  6. Zone : ThunderingSteppes
  7. Quest Giver: Blerton Blumble (2490025)
  8. Preceded by: Watch your step in The Thundering Steppes, Part I
  9. Followed by: Search for Grandma Blumble
  10. --]]
  11. local WatchYourStepInTSPartI = 99
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "Look for some sign of Grandpa Blumble on the beaches north of the docks.", 1, "I must check the beaches north of the docks for some trace of Grandpa Blumble.", 11, 4490008)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestTaskGroupDescription(Quest, 1, "I have found Grandpa Blumble in a cave on the beaches north of the docks.")
  18. AddQuestStepChat(Quest, 2, "Return to Blerton Blumble.", 1, "I must return to Blerton Blumble and inform him that I have found Grandpa Blumble.", 11, 2490025)
  19. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  20. end
  21. function Step2Complete(Quest, QuestGiver, Player)
  22. GiveQuestReward(Quest, Player)
  23. end
  24. function Accepted(Quest, QuestGiver, Player)
  25. FaceTarget(NPC, Spawn)
  26. conversation = CreateConversation()
  27. AddConversationOption(conversation, "Okay.")
  28. StartConversation(conversation, NPC, Spawn, "Thank you very much. Grandpa sometimes gets it into his head to go searching for pirate treasure. None of us are quite sure why, but the whole family worries about him. He has a knack for getting lost. Last time we found him he had fallen asleep digging over on the beach to the north of the docks here and we've been wondering when he'd try it again. You can't miss it, he always marks his dig with a big 'X'.")
  29. -- Advance step 1 of Watch Your Step in The Thundering Steppes, Part I
  30. SetStepComplete(Player, WatchYourStepInTSPartI, 1)
  31. end
  32. function Deleted(Quest, QuestGiver, Player)
  33. end
  34. function Declined(Quest, QuestGiver, Player)
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. Step1Complete(Quest, QuestGiver, Player)
  39. elseif Step == 2 then
  40. Step2Complete(Quest, QuestGiver, Player)
  41. end
  42. end