9
3

glowmyst_juice.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. Modified by: Ememjr
  11. Date : 5/7/2020
  12. Notes : Updated NPC ID
  13. --]]
  14. function Init(Quest)
  15. 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)
  16. AddQuestStepCompleteAction(Quest, 1, "step1_complete_killedBeetles")
  17. end
  18. function Accepted(Quest, QuestGiver, Player)
  19. FaceTarget(QuestGiver, Player)
  20. conversation = CreateConversation()
  21. AddConversationOption(conversation, "You're welcome.")
  22. StartConversation(conversation, QuestGiver, Player, "Great! Thank you!")
  23. end
  24. function Declined(Quest, QuestGiver, Player)
  25. end
  26. function step1_complete_killedBeetles(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 1, "I have collected the fluid sacs.")
  28. 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, 1950005)
  29. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  30. end
  31. function Quest_Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I have given Toppa the glowmyst juice.")
  33. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected the fluid sacs.")
  34. UpdateQuestDescription(Quest, "I have given Toppa the glowmyst juice she wanted. She was very thankful.")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. step1_complete_killedBeetles(Quest, QuestGiver, Player)
  40. end
  41. end