a_subtle_reminder_.lua 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. --[[
  2. Script Name : a_subtle_reminder.lua
  3. Script Purpose : Handles the quest, "A Subtle Reminder"
  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 : None
  10. Followed by : Trollish Delights
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "Speak to Thick-headed Ruzb about his culinary habits. He should be east of the Freeport gate, in the building with Brona the slaver.", 1, "Speak to Thick-headed Ruzb and convince him that gnomes must remain un-eaten.", 11, 1340024)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "Ruzb needs some incentive to change to a new meat product.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "Ruzb has seen the light. Or at least, he understands that it could go badly for him if he continues to eat gnomes.")
  19. AddQuestStepObtainItem(Quest, 2, "I need to buy some dwarf chunks.", 1, 100, "I need to buy some dwarf chunks for Ruzb.", 135, 6633)
  20. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  21. end
  22. function Step2Complete(Quest, QuestGiver, Player)
  23. UpdateQuestStepDescription(Quest, 2, "I bought some dwarf chunks.")
  24. UpdateQuestTaskGroupDescription(Quest, 2, "I bought some dwarf chunks for Ruzb.")
  25. AddQuestStepChat(Quest, 3, "I need to return to Ruzb.", 1, "I need to return to Ruzb to give him the meat.", 0, 1340024)
  26. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  27. end
  28. function Step3Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 3, "I bought some dwarf chunks.")
  30. UpdateQuestTaskGroupDescription(Quest, 3, "I bought some dwarf chunks for Ruzb.")
  31. RemoveItem(Player, 6633) --Dwarf Chunks
  32. AddQuestStepChat(Quest, 4, "I need to return to Braz Gutpounder.", 1, "I need to return to Braz Gutpounder and tell him about Ruzb.", 0, 1340039)
  33. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  34. end
  35. function QuestComplete(Quest, QuestGiver, Player)
  36. UpdateQuestDescription(Quest, "With Ruzb convinced to stop eating gnomes from the neighboring areas, Braz thanked me. Maybe I should come back later and ask him some more about the trolls.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Accepted(Quest, QuestGiver, Player)
  40. -- Add dialog here for when the quest is accepted
  41. end
  42. function Declined(Quest, QuestGiver, Player)
  43. -- Add dialog here for when the quest is declined
  44. end
  45. function Deleted(Quest, QuestGiver, Player)
  46. -- Remove any quest specific items here when the quest is deleted
  47. end
  48. function Reload(Quest, QuestGiver, Player, Step)
  49. if Step == 1 then
  50. Step1Complete(Quest, QuestGiver, Player)
  51. elseif Step == 2 then
  52. Step2Complete(Quest, QuestGiver, Player)
  53. elseif Step == 3 then
  54. Step3Complete(Quest, QuestGiver, Player)
  55. elseif Step == 4 then
  56. QuestComplete(Quest, QuestGiver, Player)
  57. end
  58. end