9
3

DesperatelySeekingButterflies.lua 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. --[[
  2. Script Name : Quests/ThunderingSteppes/DesperatelySeekingButterflies.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.07.30 04:07:06
  5. Script Purpose :
  6. Zone : Thundering Steppes
  7. Quest Giver : Elowys Laceleaf (2490013)
  8. Preceded by : None
  9. Followed by : Desperately Seeking Moths!
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepObtainItem(Quest, 1, "I'm looking for a striped blue butterfly for Elowys Laceleaf.", 1, 100, "I need to find some butterflies for Elowys Laceleaf in the Thundering Steppes.", 1833, 13464)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Step1Complete(Quest, QuestGiver, Player)
  16. UpdateQuestStepDescription(Quest, 1, "I've found a striped blue butterfly.")
  17. AddQuestStepChat(Quest, 2, "I need to take this butterfly to Elowys Laceleaf on the docks of the Thundering Steppes.", 1, "I need to find some butterflies for Elowys Laceleaf in the Thundering Steppes.", 11, 2490013)
  18. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  19. end
  20. function Step2Complete(Quest, QuestGiver, Player)
  21. UpdateQuestStepDescription(Quest, 2, "I've given the butterfly to Elowys.")
  22. AddQuestStepObtainItem(Quest, 3, "I'm looking for a striped violet butterfly for Elowys Laceleaf.", 1, 100, "I need to find some butterflies for Elowys Laceleaf in the Thundering Steppes.", 1836, 13494)
  23. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  24. end
  25. function Step3Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 3, "I've found a striped violet butterfly.")
  27. AddQuestStepChat(Quest, 4, "I need to take this butterfly to Elowys Laceleaf on the docks of the Thundering Steppes.", 1, "I need to find some butterflies for Elowys Laceleaf in the Thundering Steppes.", 11, 2490013)
  28. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  29. end
  30. function Step4Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 4, "I've given the butterfly to Elowys.")
  32. AddQuestStepObtainItem(Quest, 5, "I'm looking for a spotted yellow butterfly for Elowys Laceleaf.", 1, 100, "I need to find some butterflies for Elowys Laceleaf in the Thundering Steppes.", 1830, 13265)
  33. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  34. end
  35. function Step5Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 5, "I've found the butterfly.")
  37. AddQuestStepChat(Quest, 6, "I need to take this butterfly to Elowys Laceleaf on the docks of the Thundering Steppes.", 1, "I need to find some butterflies for Elowys Laceleaf in the Thundering Steppes.", 11, 2490013)
  38. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  39. SetCompleteFlag(Quest)
  40. end
  41. function Step6Complete(Quest, QuestGiver, Player)
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Accepted(Quest, QuestGiver, Player)
  45. end
  46. function Deleted(Quest, QuestGiver, Player)
  47. end
  48. function Declined(Quest, QuestGiver, Player)
  49. end
  50. function Reload(Quest, QuestGiver, Player, Step)
  51. if Step == 1 then
  52. Step1Complete(Quest, QuestGiver, Player)
  53. elseif Step == 2 then
  54. Step2Complete(Quest, QuestGiver, Player)
  55. elseif Step == 3 then
  56. Step3Complete(Quest, QuestGiver, Player)
  57. elseif Step == 4 then
  58. Step4Complete(Quest, QuestGiver, Player)
  59. elseif Step == 5 then
  60. Step5Complete(Quest, QuestGiver, Player)
  61. elseif Step == 6 then
  62. Step6Complete(Quest, QuestGiver, Player)
  63. end
  64. end