recycling_the_old-fashioned_way.lua 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : Quests/ThunderingSteppes/recycling_the_old-fashioned_way.lua
  3. Script Author : Zcoretri
  4. Script Date : 2014.07.14 07:07:41
  5. Script Purpose :
  6. Zone : ThunderingSteppes
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. SetQuestFeatherColor(Quest, 1)
  13. SetQuestRepeatable(Quest)
  14. AddQuestStepKill(Quest, 1, "Get five young antelope bones in the Thundering Steppes.", 5, 100, "Get various bones for Grenn's fertilizer mix.", 418, 2490047)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "Got five antelope bones.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I obtained all the bones necessary")
  20. AddQuestStepChat(Quest, 2, "I need to speak with Grenn Stiles.", 1, "Take the bones back to Grenn in the Thundering Steppes.", 11, 2490174)
  21. AddQuestStepKill(Quest, 2, "Get five highland lioness bones in the Thundering Steppes.", 5, 100, "Get various bones for Grenn's fertilizer mix.", 322, 2490043)
  22. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  23. end
  24. function Step2Complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 2, "Got five highland lioness bones.")
  26. UpdateQuestTaskGroupDescription(Quest, 2, "I obtained all the bones necessary")
  27. AddQuestStepChat(Quest, 3, "I need to speak with Grenn Stiles.", 1, "Take the bones back to Grenn in the Thundering Steppes.", 11, 2490174)
  28. AddQuestStepKill(Quest, 3, "Get five entrancing siren bones in the Thundering Steppes.", 5, 100, "Get various bones for Grenn's fertilizer mix.", 322, 2490245)
  29. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  30. end
  31. function Step3Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 3, "Got five entrancing siren bones.")
  33. UpdateQuestTaskGroupDescription(Quest, 3, "I obtained all the bones necessary")
  34. GiveQuestReward(Quest, Player)
  35. end
  36. function Accepted(Quest, QuestGiver, Player)
  37. conversation = CreateConversation()
  38. AddConversationOption(conversation, "All right, I'll be back")
  39. StartConversation(conversation, QuestGiver, Player, "Oh, the price is right, my friend! It's free! And I'll even pay you for your work! I need a variety of bones: some antelope, huntress and siren bones for a sort of 'surf and turf' fertilizer. The Steppes abound with these creatures. Think of this as recycling. We're helping the environment, eh?")
  40. end
  41. function Deleted(Quest, QuestGiver, Player)
  42. end
  43. function Declined(Quest, QuestGiver, Player)
  44. end
  45. function Reload(Quest, QuestGiver, Player, Step)
  46. if Step == 1 then
  47. Step1Complete(Quest, QuestGiver, Player)
  48. elseif Step == 2 then
  49. Step2Complete(Quest, QuestGiver, Player)
  50. elseif Step == 3 then
  51. Step3Complete(Quest, QuestGiver, Player)
  52. end
  53. end