9
3

WatchyourstepinTheThunderingSteppesPartII.lua 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : Quests/ThunderingSteppes/WatchyourstepinTheThunderingSteppesPartII.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.07.05 10:07:39
  5. Script Purpose :
  6. Zone : ThunderingSteppes
  7. Quest Giver: Jacques
  8. Preceded by: Watch your step in The Thundering Steppes, Part I
  9. Followed by: Watch your step in The Thundering Steppes, Part III
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to take this letter to Tish Tickers who resides in a watch tower in The Thundering Steppes.", 1, "Jacques has given me more mail to deliver, this time to a gnome named Tish Tickers by the third guard tower.", 11, 2490042)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Step1Complete(Quest, QuestGiver, Player)
  16. UpdateQuestTaskGroupDescription(Quest, 1, "I have delivered the mail to Tish Tickers, but she will not give me the return mail until I have helped her.")
  17. AddQuestStep(Quest, 2, "To get the return mail from Tish I need to help her out.", 1, 100, "Tish can't give me the return mail until I help her gather the things she needs.", 11)
  18. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  19. end
  20. function Step2Complete(Quest, QuestGiver, Player)
  21. UpdateQuestTaskGroupDescription(Quest, 2, "I helped Tish gather the things she needed.")
  22. AddQuestStepChat(Quest, 3, "Now that I have the return mail from Tish, I should take it to Jacques in The Thundering Steppes.", 1, "Now that I have the return mail from Tish Tickers, I need to take it to Jacques.", 11, 2490212)
  23. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  24. end
  25. function Step3Complete(Quest, QuestGiver, Player)
  26. GiveQuestReward(Quest, Player)
  27. end
  28. function Accepted(Quest, QuestGiver, Player)
  29. FaceTarget(NPC, Player)
  30. conversation = CreateConversation()
  31. AddConversationOption(conversation, "Okay.")
  32. StartConversation(conversation, NPC, Player, "That's the spirit! Here, take this letter to a gnome named Tish Tickers at guard tower three. She's being harassed by a collection agency again. They sound pretty serious now. I can't wait to see what her excuse for not paying will be this time. Come back when you have her reply.")
  33. end
  34. function Deleted(Quest, QuestGiver, Player)
  35. end
  36. function Declined(Quest, QuestGiver, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. Step1Complete(Quest, QuestGiver, Player)
  41. elseif Step == 2 then
  42. Step2Complete(Quest, QuestGiver, Player)
  43. elseif Step == 3 then
  44. Step3Complete(Quest, QuestGiver, Player)
  45. end
  46. end