WatchyourstepinTheThunderingSteppesPartIII.lua 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. --[[
  2. Script Name : Quests/ThunderingSteppes/WatchyourstepinTheThunderingSteppesPartIII.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.07.05 10:07:29
  5. Script Purpose :
  6. Zone : ThunderingSteppes
  7. Quest Giver: Jacques (2490212)
  8. Preceded by: Watch your step in The Thundering Steppes, Part II
  9. Followed by: Watch your step in The Thundering Steppes, Part IV
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepLocation(Quest, 1, "I need to take this package to Brianna in Thundermist village. It looks to be important.", 30, "I have a package to take to Brianna in Thundermist village.", 11, 582.28, 2.81, -168.36)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Step1Complete(Quest, QuestGiver, Player)
  16. local wolf1 = SpawnMob(GetZone(Player), 2490679, 0, 586.24, 1.23, -158.22, 88.04)
  17. local wolf2 = SpawnMob(GetZone(Player), 2490679, 0, 585.60, 1.43, -163.06, 117.90)
  18. if wolf1 ~= nil then
  19. Attack(wolf1, Player)
  20. end
  21. if wolf2 ~= nil then
  22. Attack(wolf2, Player)
  23. end
  24. Step1CompleteUpdate(Quest, QuestGiver, Player)
  25. end
  26. function Step1CompleteUpdate(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 1, "I was chased by dogs and dropped the package on the way to Thundermist village.")
  28. AddQuestStepChat(Quest, 2, "I dropped the package and some of the items inside fell out. At least I made it away from those dogs. I should take what's left to Brianna.", 1, "I have a package to take to Brianna in Thundermist village.", 11, 2490170)
  29. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  30. end
  31. function Step2Complete(Quest, QuestGiver, Player)
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I have taken the Package to Brianna In Thundermist village.")
  33. AddQuestStep(Quest, 3, "I still need to get Brianna her replacement items so I can get the delivery receipt from her and take it back to Jacques.", 1, 100, "Brianna will not give me my delivery receipt until I have replaced the items that were in the package.", 11)
  34. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  35. end
  36. function Step3Complete(Quest, QuestGiver, Player)
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I finally got all the items to Brianna.")
  38. AddQuestStepChat(Quest, 4, "Now that I have the receipt from Brianna, I need to take it to Jacques.", 1, "I should return to Jacques and get this receipt from Brianna to him. I hope he will compensate me for those Tin Long Swords.", 11, 2490212)
  39. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  40. end
  41. function Step4Complete(Quest, QuestGiver, Player)
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Accepted(Quest, QuestGiver, Player)
  45. FaceTarget(QuestGiver, Player)
  46. conversation = CreateConversation()
  47. AddConversationOption(conversation, "Okay.")
  48. StartConversation(conversation, QuestGiver, Player, "This delivery is for Brianna in Thundermist Village. Since we're delivering a package this time, you'll need to get her to sign a receipt for it before you come back.")
  49. end
  50. function Deleted(Quest, QuestGiver, Player)
  51. end
  52. function Declined(Quest, QuestGiver, Player)
  53. end
  54. function Reload(Quest, QuestGiver, Player, Step)
  55. if Step == 1 then
  56. Step1CompleteUpdate(Quest, QuestGiver, Player)
  57. elseif Step == 2 then
  58. Step2Complete(Quest, QuestGiver, Player)
  59. elseif Step == 3 then
  60. Step3Complete(Quest, QuestGiver, Player)
  61. elseif Step == 4 then
  62. Step4Complete(Quest, QuestGiver, Player)
  63. end
  64. end