9
3

ASnakeMadeSerum.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : Quests/Darklight/ASnakeMadeSerum.lua
  3. Script Purpose : Handles the quest, "A Snake Made Serum"
  4. Script Author : Cynnar
  5. Script Date : 9/1/2015
  6. Script Notes :
  7. Zone : Darklight Wood
  8. Quest Giver : Ilmtar D'Viervs
  9. Preceded by : Tipping the Scales of Power
  10. Followed by : The Mother Lode
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to hunt scar wurms", 8, 100, "Ilmtar D'Viervs needs the corpses of several scar wurms so he can use their pheromone sacs to make a truth serum.", 98, 340013)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I hunted several scar wurms")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I successfully collected enough scar wurm corpses.")
  19. AddQuestStepChat(Quest, 2, "Bring the scar wurm corpses to Ilmtar D'Viervs", 1, "I need to bring the scar wurm corpses to Ilmtar D'Viervs at T'Vatar Outpost.", 98, 340076)
  20. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  21. end
  22. function QuestComplete(Quest, QuestGiver, Player)
  23. UpdateQuestDescription(Quest, "I have given Ilmtar the scar wurm corpses.")
  24. GiveQuestReward(Quest, Player)
  25. end
  26. function Reload(Quest, QuestGiver, Player, Step)
  27. if Step == 1 then
  28. Step1Complete(Quest, QuestGiver, Player)
  29. elseif Step == 2 then
  30. QuestComplete(Quest, QuestGiver, Player)
  31. end
  32. end
  33. function Accepted(Quest, QuestGiver, Player)
  34. FaceTarget(QuestGiver, Player)
  35. local con = CreateConversation()
  36. PlayFlavor(QuestGiver, "", "", "", 0, 0, Player)
  37. StartConversation(con, QuestGiver, Player, "Great. I'll be here preparing the additional ingredients needed for the serum.")
  38. end
  39. function Declined(Quest, QuestGiver, Player)
  40. -- Add dialog here for when the quest is declined
  41. end
  42. function Deleted(Quest, QuestGiver, Player)
  43. end