9
3

trollish_delights.lua 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : trollish_delights.lua
  3. Script Purpose : Handles the quest, "Trollish Delights"
  4. Script Author : torsten
  5. Script Date : 12.07.2022
  6. Script Notes :
  7. Zone : Big Bend
  8. Quest Giver : Braz Gutpounder
  9. Preceded by : A Subtle Reminder
  10. Followed by : Troll Patrol
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "Club down four Big Bend rats and take their carcasses. Braz said they should be by the gate to the Sprawl.", 4, 100, "Braz Gutpounder would like some food. It's a hungry job explaining the nuances of being a troll.", 136, 1340045)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "Braz is going to feast well on these plump n' juicy rascals!")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "Braz will no doubt appreciate the additional touch. It's the little things that count.")
  19. AddQuestStep(Quest, 2, "I should cook the rats.", 1, 100, "I should find a way to cook the rats.", 0)
  20. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  21. end
  22. function Step2Complete(Quest, QuestGiver, Player)
  23. UpdateQuestStepDescription(Quest, 2, "I have cooked the rats!")
  24. UpdateQuestTaskGroupDescription(Quest, 2, "I have cooked the rats at The Torch of Oggok")
  25. AddQuestStepChat(Quest, 3, "I should deliver the rats.", 1, "I should deliver the cooked rats to Braz.", 0, 1340039)
  26. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  27. end
  28. function QuestComplete(Quest, QuestGiver, Player)
  29. UpdateQuestDescription(Quest, "How could anyone know that Braz wouldn't like his rats cooked? It seems like such a natural thing to do, really. Don't eat the food unless it's cooked. Isn't that taught to everyone?")
  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