9
3

WatchyourstepinTheThunderingSteppesPartI.lua 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : Quests/ThunderingSteppes/WatchyourstepinTheThunderingSteppesPartI.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.07.05 10:07:30
  5. Script Purpose :
  6. Zone : ThunderingSteppes
  7. Quest Giver: Jacques
  8. Preceded by: None
  9. Followed by: Watch your step in The Thundering Steppes, Part II
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "Jacques has hired me to deliver mail to Blerton Blumble on the docks of The Thundering Steppes.", 1, "I should deliver this letter to Blerton Blumble on the docks in The Thundering Steppes.", 185, 2490025)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Step1Complete(Quest, QuestGiver, Player)
  16. UpdateQuestStepDescription(Quest, 1, "Now that I have delivered this mail, I should get the return mail.")
  17. AddQuestStep(Quest, 2, "I must not return to Jacques until I have gotten the return mail from Blerton, and he won't give it to me until I have helped him.", 1, 100, "I should deliver this letter to Blerton Blumble on the docks in The Thundering Steppes.", 11)
  18. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  19. end
  20. function Step2Complete(Quest, QuestGiver, Player)
  21. UpdateQuestStepDescription(Quest, 2, "I have the return mail from Blerton.")
  22. UpdateQuestTaskGroupDescription(Quest, 1, "I have delivered the letter to Blerton. I am to pick up his mail also, but he will not give me the mail until I find his grandfather.")
  23. AddQuestStepChat(Quest, 3, "Now that I have the return mail from Blerton I should deliver it to Jacques.", 1, "I have delivered the Mail to Blerton, but he will not give me the return mail until I have helped him.", 11, 2490212)
  24. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  25. end
  26. function Step3Complete(Quest, QuestGiver, Player)
  27. GiveQuestReward(Quest, Player)
  28. end
  29. function Accepted(Quest, QuestGiver, Player)
  30. FaceTarget(NPC, Spawn)
  31. conversation = CreateConversation()
  32. AddConversationOption(conversation, "Okay.")
  33. StartConversation(conversation, QuestGiver, Player, "For your first delivery, please take this letter to a halfling named Blerton Blumble. He can usually be found at the docks. It's from his cousin, Matsy. Now that you work for me, feel free to read any letters you deliver. I always do. It's just about the only fun to be found out here. After you've delivered it, bring me back any mail he has to send.")
  34. end
  35. function Deleted(Quest, QuestGiver, Player)
  36. end
  37. function Declined(Quest, QuestGiver, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Step1Complete(Quest, QuestGiver, Player)
  42. elseif Step == 2 then
  43. Step2Complete(Quest, QuestGiver, Player)
  44. elseif Step == 3 then
  45. Step3Complete(Quest, QuestGiver, Player)
  46. end
  47. end