9
3

shadowed_heart_signet.lua 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : Quests/FallenGate/shadowed_heart_signet.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.11 10:07:18
  5. Script Purpose :
  6. Zone : FallenGate
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to kill some zombies in Fallen Gate until the thought leaves my head.", 20, 50, "With a little effort, I believe I can transform this snapped ring into something better.", 611, 1190085, 1190086, 1190088, 1190089, 1190014, 1190015, 1190027, 1190028, 1190031, 1190114, 1190016, 1190032, 1190046, 1190047, 1190056, 1190087, 1190012, 1190040, 1190042, 1190054, 1190055, 1190111, 1190033, 1190066, 1190009, 1190010, 1190013)
  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 killed a number of zombies.")
  26. AddQuestStepKill(Quest, 2, "I should kill some constructs of malice until I find a mold to use on the ring.", 1, 50, "With a little effort, I believe I can transform this snapped ring into something better.", 926, 1190083, 1190077, 1190081, 1190096)
  27. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  28. end
  29. function Step2Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "I've found a mold on the constructs.")
  31. AddQuestStepZoneLoc(Quest, 3, "I need to find the Bull's Pit and hope some of the strength from the place imbues itself into the ring.", 10, "With a little effort, I believe I can transform this snapped ring into something better.", 11, 0, -25, -200, 199)
  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, "The ring has completely reformed by itself.")
  37. UpdateQuestTaskGroupDescription(Quest, 1, "I've been able to change the snapped ring into the Shadowed Heart Signet.")
  38. if HasItem(Player, 2813) then
  39. RemoveItem(Player, 2813)
  40. end
  41. UpdateQuestDescription(Quest, "Applying a little bit of effort, I've been able to change the snapped ring into Shadowed Heart Signet. <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