soul_wailer.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : Quests/WailingCaves/soul_wailer.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.14 09:07:42
  5. Script Purpose :
  6. Zone : WailingCaves
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to kill the undead in the Wailing Caves until I find an adequate gem to use in the pommel of this old dagger.", 1, 10, "With a little effort, I believe I can transform this old dagger into something better.", 1166, 2580000, 2580002, 2580008, 2580044, 2580043)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. -- Add dialog here for when the quest is accepted
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is declined
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. -- Remove any quest specific items here when the quest is deleted
  23. end
  24. function Step1Complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I've found something that looks like a soul gem.")
  26. AddQuestStep(Quest, 2, "I need to find a smithing hammer near a forge to hammer out a sharper edge on the dagger.", 1, 100, "With a little effort, I believe I can transform this old dagger into something better.", 11)
  27. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  28. end
  29. function Step2Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "I've found and used the smithing hammer.")
  31. AddQuestStepKill(Quest, 3, "I should find and kill a Ree spiritkeeper to see if there is any connection between them and the old dagger.", 1, 100, "With a little effort, I believe I can transform this old dagger into something better.", 611, 2580054)
  32. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  36. UpdateQuestStepDescription(Quest, 3, "I've killed a Ree spiritcaller.")
  37. UpdateQuestTaskGroupDescription(Quest, 1, "I've been able to change the old dagger into the Soul Wailer dagger.")
  38. if HasItem(Player, 3766) then
  39. RemoveItem(Player, 3766)
  40. end
  41. UpdateQuestDescription(Quest, "Applying a little bit of effort, I've been able to change the old dagger into the Soul Wailer. <br> <br>")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1Complete(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. Step2Complete(Quest, QuestGiver, Player)
  49. elseif Step == 3 then
  50. QuestComplete(Quest, QuestGiver, Player)
  51. end
  52. end