will_work_for_war.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : will_work_for_war.lua
  3. Script Purpose : Handles the quest, "Will Work for War"
  4. Script Author : torsten
  5. Script Date : 25.07.2022
  6. Script Notes :
  7. Zone : Scale Yard
  8. Quest Giver : Colin Stoutfist
  9. Preceded by : None
  10. Followed by : Will Fight for Fun
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to speak with Coldbrow in the Scale Yard.", 1, "I need to find and speak with this so-called Warchief.", 11, 1390036)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have spoken with Coldbrow.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I have spoken to Dunn Coldbrow and was told to tell Colin to calm down.")
  19. AddQuestStepChat(Quest, 2, "I should speak to Mirin Zilishia.", 1, "I should speak to Mirin Zilishia in Sclae Yard.", 11, 1390006)
  20. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  21. end
  22. function Step2Complete(Quest, QuestGiver, Player)
  23. UpdateQuestStepDescription(Quest, 2, "I have spoken with Mirin Zilishia.")
  24. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken to Mirin Zilishia in Scale Yard.")
  25. AddQuestStepChat(Quest, 3, "I should return to Colin.", 1, "I should return to Colin Stoutfist here in Scale Yard.", 11, 1390052)
  26. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  27. end
  28. function QuestComplete(Quest, QuestGiver, Player)
  29. UpdateQuestDescription(Quest, "Colin Stoutfist is quite upset with the state of things in Scale Yard. It seems he has nothing to do, and began to make an unpleasant comment about his Warchief. He had the wisdom to stop mid-sentence.")
  30. GiveQuestReward(Quest, Player)
  31. end
  32. function Accepted(Quest, QuestGiver, Player)
  33. -- Add dialog here for when the quest is accepted
  34. end
  35. function Declined(Quest, QuestGiver, Player)
  36. -- Add dialog here for when the quest is declined
  37. end
  38. function Deleted(Quest, QuestGiver, Player)
  39. -- Remove any quest specific items here when the quest is deleted
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. Step1Complete(Quest, QuestGiver, Player)
  44. elseif Step == 2 then
  45. Step2Complete(Quest, QuestGiver, Player)
  46. elseif Step == 3 then
  47. QuestComplete(Quest, QuestGiver, Player)
  48. end
  49. end