glowmyst_juice.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : Quests/Oakmyst/glowmyst_juice.lua
  3. Script Purpose : Handles the quest, "Glowmyst Juice"
  4. Script Author : Scatman
  5. Script Date : 2009.10.08
  6. Zone : Oakmyst Forest
  7. Quest Giver: Toppa Doppster
  8. Preceded by: None
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need ten glowmyst beetle fluid sacs for Toppa.", 10, 100, "Toppa would like me to collect some glowmyst juice for her friends.", 146, 1950002)
  13. AddQuestStepCompleteAction(Quest, 1, "step1_complete_killedBeetles")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. AddConversationOption(conversation, "You're welcome.")
  19. StartConversation(conversation, QuestGiver, Player, "Great! Thank you!")
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. end
  23. function step1_complete_killedBeetles(Quest, QuestGiver, Player)
  24. UpdateQuestStepDescription(Quest, 1, "I have collected the fluid sacs.")
  25. AddQuestStepChat(Quest, 2, "I need to give these fluid sacs to Toppa", 1, "Toppa would like me to collect some glowmyst juice for her friends.", 146, 1950007)
  26. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  27. end
  28. function Quest_Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 2, "I have given Toppa the glowmyst juice.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected the fluid sacs.")
  31. UpdateQuestDescription(Quest, "I have given Toppa the glowmyst juice she wanted. She was very thankful.")
  32. GiveQuestReward(Quest, Player)
  33. end
  34. function Reload(Quest, QuestGiver, Player, Step)
  35. if Step == 1 then
  36. step1_complete_killedBeetles(Quest, QuestGiver, Player)
  37. end
  38. end