9
3

attack_of_the_killer_bear.lua 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : Quests/Antonica/attack_of_the_killer_bear.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.23 05:08:38
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I must find the bear that has been stalking Hartok.", 1, 100, "I must find and kill the Windstalker grizzly in the Shattered Vale to the southeast. I should look for a Giantslayer messenger along the way to find out how to get to this area.", 122, 3280014)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. AddConversationOption(conversation, "I will be careful.")
  19. StartConversation(conversation, QuestGiver, Player, "Be careful though! This one is big!")
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. -- Add dialog here for when the quest is declined
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. -- Remove any quest specific items here when the quest is deleted
  26. end
  27. function Step1Complete(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I have slain the bear that has been stalking Hartok.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I have slain the Windstalker grizzly.")
  30. AddQuestStepChat(Quest, 2, "I must inform Hartok that the beast has been slain.", 1, "I must speak to Hartok.", 122, 121309)
  31. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  32. end
  33. function QuestComplete(Quest, QuestGiver, Player)
  34. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  35. UpdateQuestStepDescription(Quest, 2, "I have spoken to Hartok.")
  36. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken to Hartok.")
  37. UpdateQuestDescription(Quest, "I have slain the beast that has been stalking Hartok. Now that the beast is gone, it appears that Hartok is back to his old ways.")
  38. GiveQuestReward(Quest, Player)
  39. end
  40. function Reload(Quest, QuestGiver, Player, Step)
  41. if Step == 1 then
  42. Step1Complete(Quest, QuestGiver, Player)
  43. elseif Step == 2 then
  44. QuestComplete(Quest, QuestGiver, Player)
  45. end
  46. end