ye_olde_onetime_pick.lua 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. --[[
  2. Script Name : Quests/FallenGate/ye_olde_onetime_pick.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.11 07:07:39
  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 should find the broken pick spike on the corporeal undead in Fallen Gate.", 1, 100, "I need to find the missing haft to the pick head. If it is to be found it is likely to be on one of the remaining unliving denizens of Fallen Gate where I first found the remains of the hammer head.", 1021, 1190130, 1190096, 1190064, 1190048, 1190009, 1190010, 1190013, 1190066, 1190077, 1190100, 1190033, 1190012, 1190040, 1190042, 1190054, 1190055, 1190111, 1190099, 1190016, 1190032, 1190046, 1190047, 1190056, 1190087, 1190014, 1190015, 1190027, 1190028, 1190031, 1190114, 1190074, 1190085, 1190086, 1190088, 1190089, 1190043, 1190006, 1190063, 1190007, 1190081, 1190098, 1190065, 1190083, 1190006, 1190063, 1190043, 1190007, 1190067)
  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 have found the broken pick spike.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I have found the pick piece stuck deeply within the remains of one of the undead here in Fallen Gate.")
  27. AddQuestStepKill(Quest, 2, "I should find the ore used in the construction of the original weapon within Fallen Gate.", 4, 10, "The pick spike and hammered head need to be melded together once again. I should see if I can find some of the strange metal used in its construction to reattach the spike.", 1122, 1190130, 1190096, 1190064, 1190048, 1190009, 1190010, 1190013, 1190066, 1190077, 1190100, 1190033, 1190012, 1190040, 1190042, 1190054, 1190055, 1190111, 1190099, 1190016, 1190032, 1190046, 1190047, 1190056, 1190087, 1190014, 1190015, 1190027, 1190028, 1190031, 1190114, 1190074, 1190085, 1190086, 1190088, 1190089, 1190043, 1190006, 1190063, 1190007, 1190081, 1190098, 1190065, 1190083, 1190006, 1190063, 1190043, 1190007, 1190067)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I have found the ore used in the construction of the original weapon.")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "I have found what appears to be some of the ore used in the original forging of the weapon.")
  33. AddQuestStepKill(Quest, 3, "I should find the original shaft or a replacement for this pick within Fallen Gate.", 1, 100, "It seems as if all that remains is to find the original haft or to find a suitable replacement for the weapon.", 663, 1190130, 1190096, 1190064, 1190048, 1190009, 1190010, 1190013, 1190066, 1190077, 1190100, 1190033, 1190012, 1190040, 1190042, 1190054, 1190055, 1190111, 1190099, 1190016, 1190032, 1190046, 1190047, 1190056, 1190087, 1190014, 1190015, 1190027, 1190028, 1190031, 1190114, 1190074, 1190085, 1190086, 1190088, 1190089, 1190043, 1190006, 1190063, 1190007, 1190081, 1190098, 1190065, 1190083, 1190006, 1190063, 1190043, 1190007, 1190067)
  34. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  35. end
  36. function QuestComplete(Quest, QuestGiver, Player)
  37. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  38. UpdateQuestStepDescription(Quest, 3, "I have found the original shaft for Skullcrusher.")
  39. UpdateQuestTaskGroupDescription(Quest, 3, "I have found the original haft for the weapon.")
  40. if HasItem(Player, 1284) then
  41. RemoveItem(Player, 1284)
  42. end
  43. UpdateQuestDescription(Quest, "I have found replacements for the pick and reassembled the weapon which was once known as Skullcrusher.")
  44. GiveQuestReward(Quest, Player)
  45. end
  46. function Reload(Quest, QuestGiver, Player, Step)
  47. if Step == 1 then
  48. Step1Complete(Quest, QuestGiver, Player)
  49. elseif Step == 2 then
  50. Step2Complete(Quest, QuestGiver, Player)
  51. elseif Step == 3 then
  52. QuestComplete(Quest, QuestGiver, Player)
  53. end
  54. end