9
3

NoUndeadGoesUnturned.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : Quests/Darklight/NoUndeadGoesUnturned.lua
  3. Script Purpose : Handles the quest, "No Undead Goes Unturned"
  4. Script Author : Cynnar
  5. Script Date : 8/17/2015
  6. Script Notes :
  7. Zone : Darklight Wood
  8. Quest Giver : Sselnyl Do'Zyth
  9. Preceded by : None
  10. Followed by : Thexian Taint
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepObtainItem(Quest, 1, "Retrieve the remains of the Thexian Dragoon-General.", 1, 100, "I must search the recently excavated tomb north of Hate's Envy for the remains of the Dragoon-General.", 91, 14386)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I found the remains of the Thexian Dragoon-General.")
  18. AddQuestStepChat(Quest, 2, "Bring the remains to Sselnyl", 1, "I must search the recently excavated tomb north of Hate's Envy for the remains of the Dragoon-General.", 11, 340021)
  19. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  20. end
  21. function QuestComplete(Quest, QuestGiver, Player)
  22. UpdateQuestDescription(Quest, "I found the remains of the Thexian Dragoon General and returned them to Sselnyl Do'Zyth, the mayor of Hate's Envy.")
  23. RemoveItem(Player, 14386)
  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. conversation = CreateConversation()
  36. PlayFlavor(QuestGiver, "sselnyl_do_zyth/darklight_wood/hates_envy/sselnyl_revamp/sselnyl005.mp3", "", "", 2966552414, 1013655055, Player)
  37. AddConversationOption(conversation, "I will return shortly with the remains.")
  38. StartConversation(conversation, QuestGiver, Player, "With haste, " ..GetName(Player).. ".")
  39. end
  40. function Declined(Quest, QuestGiver, Player)
  41. end