ALackofInformation.lua 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --[[
  2. Script Name : ALackofInformation.lua
  3. Script Purpose : Handles the quest, "A Lack of Information"
  4. Script Author : Shatou
  5. Script Date : 1/4/2020
  6. Script Notes :
  7. Zone : Caves
  8. Quest Giver : Consul Bree
  9. Preceded by : None
  10. Followed by : Hit Them Where it Hurts; An Explosive Idea
  11. ***NEED TO ADD BOOK TO TENT FOR 1ST STEP***
  12. --]]
  13. function Init(Quest)
  14. AddQuestStepKill(Quest, 1, "I need to search the Dustpaw gnoll camp for their orders. I should be able to find the camp somewhere through the tunnel to the west of Consul Bree.", 1, 100, "Consul Bree has asked that I help her in obtaining a recent version of the Rockpaw gnoll battle orders.", 2693, 1970017)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "I have found the written orders of the Dustpaw gnolls in their camp.")
  19. AddQuestStepObtainItem(Quest, 2, "I need to read the book I found in the Dustpaw camp.", 1, 100, "Consul Bree has asked that I help her in obtaining a recent version of the Rockpaw gnoll battle orders.", 11, 1256)
  20. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  21. end
  22. function Step2Complete(Quest, QuestGiver, Player)
  23. UpdateQuestStepDescription(Quest, 2, "I have attempted to read the book in the Dustpaw camp.")
  24. AddQuestStepKill(Quest, 3, "I need to retrieve the key to the Rockpaw cipher. Any gnoll in the Caves may have one.", 1, 100, "Consul Bree has asked that I help her in obtaining a recent version of the Rockpaw gnoll battle orders.", 185, 1970017, 1970016, 1970018, 1970019, 1970020, 1970021, 1970027, 1970028, 1970029, 1970034)
  25. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  26. end
  27. function Step3Complete(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 3, "I have found the key to the cipher.")
  29. AddQuestStepChat(Quest, 4, "I need to bring this information to Consul Bree.", 1, "Consul Bree has asked that I help her in obtaining a recent version of the Rockpaw gnoll battle orders.", 11, 1970004)
  30. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  31. end
  32. function QuestComplete(Quest, QuestGiver, Player)
  33. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  34. UpdateQuestStepDescription(Quest, 4, "I have spoken with Consul Bree.")
  35. UpdateQuestTaskGroupDescription(Quest, 1, "I have obtained the battle orders for Consul Bree.")
  36. UpdateQuestDescription(Quest, "I have found the book for Consul Bree.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Step1Complete(Quest, QuestGiver, Player)
  42. elseif Step == 2 then
  43. Step2Complete(Quest, QuestGiver, Player)
  44. elseif Step == 3 then
  45. Step3Complete(Quest, QuestGiver, Player)
  46. elseif Step == 4 then
  47. QuestComplete(Quest, QuestGiver, Player)
  48. end
  49. end
  50. function Accepted(Quest, QuestGiver, Player)
  51. -- Add dialog here for when the quest is accepted
  52. end
  53. function Declined(Quest, QuestGiver, Player)
  54. -- Add dialog here for when the quest is declined
  55. end