wanted_gnoll_bandit.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : Quests/Antonica/wanted_gnoll_bandit.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.05.16 04:05:32
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. SetQuestFeatherColor(Quest, 3)
  13. SetQuestRepeatable(Quest)
  14. AddQuestStepKill(Quest, 1, "I must find the gnoll raiders and stop their marauding.", 12, 100, "Gnolls have been terrorizing the travelers in Antonica for years. One group in particular has a price on their heads.", 1220, 120363,120437,120310 ,120361,120251,120015,120355,120362,121833,120203, 120212,120441,120252)
  15. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. if HasItem(Player,3213)then
  19. DisplayText(Spawn, 34, "You roll up the wanted poster and stuff it in your quest satchle.")
  20. RemoveItem(Player,3213,1)
  21. end
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function QuestComplete(Quest, QuestGiver, Player)
  30. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  31. UpdateQuestStepDescription(Quest, 1, "I have found the gnoll raiders and put a stop to the problem.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I have found the darkpaw gnoll raiders. They will no longer terrorize travelers in Antonica.")
  33. UpdateQuestDescription(Quest, "You have slain the Gnoll bandit.")
  34. GiveQuestReward(Quest, Player)
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. QuestComplete(Quest, QuestGiver, Player)
  39. end
  40. end