9
3

DirtySneakyRats.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : dirty_sneaky_rats.lua
  3. Script Purpose : Handles the quest, "Dirty Sneaky Rats!"
  4. Script Author : premierio015
  5. Script Date : 10.11.2020
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver : Master of the Hunt
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "Kill the dregs sneaks till I find the journal", 1, 50, "From the crossroads, cross the southern bridge and head south until you find a small encampment of ratonga dregs. Among them find the sneak that stole the journal.", 195, 330044, 330690, 330691)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(NPC, "voiceover/english/optional2/master_of_the_hunt/commonlands/quests/master_hunter/master_hunter001.mp3", "", "", 849307995, 144655211, Spawn)
  19. AddConversationOption(conversation, "Yeah, kill the rat and get your book.")
  20. StartConversation(conversation, QuestGiver, Player, "Splendid. A ratonga stole my hunting journal, the little wretch. Find him, kill him, and return with my journal. Is that understood?")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I've found the stolen journal.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I found the journal and should return it to the Master of the Hunt.")
  31. AddQuestStepChat(Quest, 2, "Return the journal to the hunter", 1, "I need to go back to the Master of the Hunt and return the stolen journal.", 11, 331134)
  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've returned the journal.")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I returned the journal, the hunter was very gracious.")
  38. UpdateQuestDescription(Quest, "I found the journal that the dregs sneak stole and returned it to the Master Hunter, she was pleased and offered to teach me what it means to be a true hunter, when I'm ready... Whenever that may be. <br>")
  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