swordchucks_of_doom.lua 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : sword-chucks_of_doom.lua
  3. Script Purpose : Handles the quest, "Sword-Chucks of Doom"
  4. Script Author : torsten
  5. Script Date : 23.07.2022
  6. Script Notes :
  7. Zone : Scale Yard
  8. Quest Giver : Arms Dealer Shilza
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to speak with a Barbarian named Briac Tundrafire.", 1, "Once I find Briac Tundrafire, I need to tell him his 'sword-chucks' are in.", 11, 1390053)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have spoken with Briac Tundrafire.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I let Briac Tundrafire know his sword-chucks were in . He seemed quite happy about it.")
  19. AddQuestStepChat(Quest, 2, "I should return to Shilza.", 1, "I should return to Armsdealer Shilza in Scale Yard.", 11, 1390046)
  20. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  21. end
  22. function QuestComplete(Quest, QuestGiver, Player)
  23. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  24. UpdateQuestStepDescription(Quest, 1, "I have spoken with Briac Tundrafire.")
  25. UpdateQuestTaskGroupDescription(Quest, 1, "I let Briac Tundrafire know his sword-chucks were in . He seemed quite happy about it.")
  26. UpdateQuestDescription(Quest, "Shilza has paid me for giving Briac the message his 'sword-chucks' are in. I'm not too sure which person Shilza was referring to when she said that weapon would sever someone's head from their shoulders.")
  27. GiveQuestReward(Quest, Player)
  28. end
  29. function Accepted(Quest, QuestGiver, Player)
  30. -- Add dialog here for when the quest is accepted
  31. end
  32. function Declined(Quest, QuestGiver, Player)
  33. -- Add dialog here for when the quest is declined
  34. end
  35. function Deleted(Quest, QuestGiver, Player)
  36. -- Remove any quest specific items here when the quest is deleted
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. Step1Complete(Quest, QuestGiver, Player)
  41. elseif Step == 2 then
  42. QuestComplete(Quest, QuestGiver, Player)
  43. end
  44. end