9
3

Clearing_Remmys_Name.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : clearing_remmys_name.lua
  3. Script Purpose : Handles the quest, "Clearing Remmy's Name"
  4. Script Author : Dorbin
  5. Script Date : 2/22/2022
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Forest Ruins
  8. Quest Giver : Remmy Tumbum
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepObtainItem(Quest, 1, "I need to investigate the shed where the guards store their food.", 1, 100, "Remmy has asked that I investigate the shed where the guards keep their food.", 0,7797)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I have investigated the shed.")
  27. GiveQuestItem(Quest, Player, "You found a patch of fur.", 7797)
  28. while HasItem(Player, 7797) do
  29. RemoveItem(Player,7797)
  30. end
  31. AddQuestStepChat(Quest, 2, "I need to bring the gnoll fur to Lieutenant Germain.", 1, "Remmy has asked that I investigate the shed where the guards keep their food.", 94, 1960005)
  32. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  36. UpdateQuestStepDescription(Quest, 2, "I have given Germain the evidence clearing Remmy.")
  37. UpdateQuestTaskGroupDescription(Quest, 1, "I have investigated the shed.")
  38. UpdateQuestDescription(Quest, "I found evidence suggesting the gnolls had broken into the guard's food. This interested Lieutenant Germain a great deal.")
  39. GiveQuestReward(Quest, Player)
  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. QuestComplete(Quest, QuestGiver, Player)
  46. end
  47. end