paying_off_a_sweet_debt.lua 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : Quests/Baubbleshire/paying_off_a_sweet_debt.lua
  3. Script Purpose : Handles the quest, "Paying Off a Sweet Debt"
  4. Script Author : Scatman
  5. Script Date : 2009.09.27
  6. Zone : The Baubbleshire
  7. Quest Giver: Rondo "The Belly" Roundstew
  8. Preceded by: Helping Some 'Friends' (helping_some_friends.lua)
  9. Followed by: A Budding Prankster (a_budding_prankster.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStep(Quest, 1, "I need to collect some honey from the trees around the Baubbleshire.", 10, 100, "Rondo has asked that I collect some honey from the trees around the Baubbleshire.", 405)
  13. AddQuestStepCompleteAction(Quest, 1, "step1_complete_gotHoney")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. AddConversationOption(conversation, "I'll return with the honey.")
  19. StartConversation(conversation, QuestGiver, Player, "Ugh, all of them, I imagine. Bees is one thing Baubbleshire certainly has enough of. Just look for the hives.")
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. end
  23. function Deleted(Quest, QuestGiver, Player)
  24. end
  25. function step1_complete_gotHoney(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I have collected the needed honey.")
  27. AddQuestStepChat(Quest, 2, "Now that I have collected this honey, I should return to Rondo.", 1, "Rondo has asked that I collect some honey from the trees around the Baubbleshire.", 0, 2380039)
  28. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  29. end
  30. function quest_complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I have given the honey to Rondo.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected the honey for Rondo.")
  33. UpdateQuestDescription(Quest, "I have collected the honey for Rondo. He was very impressed with the amount I collected.")
  34. GiveQuestReward(Quest, Player)
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. step1_complete_gotHoney(Quest, QuestGiver, Player)
  39. end
  40. end