9
3

TheBigOne.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : Quests/Darklight/TheBigOne.lua
  3. Script Author : fearfx
  4. Script Date : 2017.01.24 07:01:48
  5. Script Purpose :
  6. Zone : Darklight
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStep(Quest, 1, "I need Dirzdia's lure from Smolderfin.", 1, 100, "Dirzdia wants me to kill Smolderfin and bring back the lure he stole.", 591)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Step1Complete(Quest, QuestGiver, Player)
  16. UpdateQuestStepDescription(Quest, 1, "I have Dirzdia's lure.")
  17. AddQuestStepChat(Quest, 2, "I need to bring Dirzdia her lure.", 1, "Dirzdia wants me to kill Smolderfin and bring back the lure he stole.", 591, 140025)
  18. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  19. end
  20. function QuestComplete(Quest, QuestGiver, Player)
  21. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  22. UpdateQuestStepDescription(Quest, 2, "I have given Dirzdia her lure.")
  23. UpdateQuestTaskGroupDescription(Quest, 1, "I have brought Dirzdia her lure.")
  24. UpdateQuestDescription(Quest, "I have slain Smolderfin for Dirzdia and brought her the lure he stole.")
  25. GiveQuestReward(Quest, Player)
  26. end
  27. function Reload(Quest, QuestGiver, Player, Step)
  28. if Step == 1 then
  29. Step1Complete(Quest, QuestGiver, Player)
  30. elseif Step == 2 then
  31. QuestComplete(Quest, QuestGiver, Player)
  32. end
  33. end
  34. function Accepted(Quest, QuestGiver, Player)
  35. -- Add dialog here for when the quest is accepted
  36. end
  37. function Declined(Quest, QuestGiver, Player)
  38. -- Add dialog here for when the quest is declined
  39. end