9
3

InfantileIngredients.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Quests/Darklight/InfantileIngredients.lua
  3. Script Purpose : Handles the quest, "Infantile Ingredients"
  4. Script Author : Cynnar
  5. Script Date : 9/2/2015
  6. Script Notes :
  7. Zone : Darklight Wood
  8. Quest Giver : Calnozz J'Melvirr
  9. Preceded by : Stunning Revelation
  10. Followed by : Dust to Dust
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepObtainItem(Quest, 1, "Catch baby snakes from the serpents near the Lower Tendril River", 8, 100, "Calnozz J'Melvirr wants me to collect a number of baby snakes so he can milk their powerful venom.", 98, 4080)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have collected the baby snakes")
  18. AddQuestStepChat(Quest, 2, "Bring the snakes back to Calnozz", 1, "Calnozz J'Melvirr wants me to collect a number of baby snakes so he can milk their powerful venom.", 98, 340066)
  19. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  20. end
  21. function QuestComplete(Quest, QuestGiver, Player)
  22. UpdateQuestDescription(Quest, "I have collected the baby snakes for Calnozz J'Melvirr.")
  23. while HasItem(player, 4080, 1) do
  24. RemoveItem(Player, 4080)
  25. end
  26. GiveQuestReward(Quest, Player)
  27. end
  28. function Reload(Quest, QuestGiver, Player, Step)
  29. if Step == 1 then
  30. Step1Complete(Quest, QuestGiver, Player)
  31. elseif Step == 2 then
  32. QuestComplete(Quest, QuestGiver, Player)
  33. end
  34. end
  35. function Accepted(Quest, QuestGiver, Player)
  36. Say(QuestGiver, "They are quite delicate at birth, so try not to slice up the babies too much.")
  37. end
  38. function Deleted(Quest, QuestGiver, Player)
  39. while HasItem(Player, 4080, 1) do
  40. RemoveItem(Player, 4080)
  41. end
  42. end
  43. function Declined(Quest, QuestGiver, Player)
  44. -- Add dialog here for when the quest is declined
  45. end