WhatsinDemand.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : Quests/Darklight/WhatsinDemand.lua
  3. Script Purpose : Handles the quest, "What's in Demand?"
  4. Script Author : Cynnar
  5. Script Date : 8/30/2015
  6. Script Notes :
  7. Zone : Darklight Wood
  8. Quest Giver : Ilmtar D'Viervs
  9. Preceded by : None
  10. Followed by : One Man's Waste...
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to collect bone fragments from the undead around T'Vatar Post.", 6, 100, "Ilmtar D'Viervs wants me to collect bone fragments from the undead around T'Vatar Post.", 322, 340085, 340084)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have collected the bone fragments.")
  18. AddQuestStepChat(Quest, 2, "I need to bring these bone fragments to Ilmtar.", 1, "Ilmtar D'Viervs wants me to collect bone fragments from the undead around T'Vatar Post.", 322, 340076)
  19. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  20. end
  21. function QuestComplete(Quest, QuestGiver, Player)
  22. UpdateQuestDescription(Quest, "I have given Ilmtar the bone fragments he requested.")
  23. GiveQuestReward(Quest, Player)
  24. end
  25. function Reload(Quest, QuestGiver, Player, Step)
  26. if Step == 1 then
  27. Step1Complete(Quest, QuestGiver, Player)
  28. elseif Step == 2 then
  29. QuestComplete(Quest, QuestGiver, Player)
  30. end
  31. end
  32. function Accepted(Quest, QuestGiver, Player)
  33. FaceTarget(QuestGiver, Player)
  34. local con = CreateConversation()
  35. PlayFlavor(QuestGiver, "", "", "", 0, 0, Player)
  36. StartConversation(con, QuestGiver, Player, "Then I await your return.")
  37. end
  38. function Declined(Quest, QuestGiver, Player)
  39. -- Add dialog here for when the quest is declined
  40. end
  41. function Deleted(Quest, QuestGiver, Player)
  42. end