9
3

becoming_a_predator.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Quests/Hallmark/becoming_a_predator.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.09.29 03:09:02
  5. Script Purpose :
  6. Zone : Hallmark
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to kill Captain Driftskull.", 1, 100, "I need to find where Captain Driftskull is hiding out and silence him. Word is he is in a Seafury Buccaneers' den.", 611, 1)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. -- Add dialog here for when the quest is accepted
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is declined
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. -- Remove any quest specific items here when the quest is deleted
  23. end
  24. function Step1Complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I killed Captain Driftskull.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I killed Captain Driftskull.")
  27. AddQuestStepChat(Quest, 2, "I need to report to Millia.", 1, "I need to return to Millia and let her know that Captain Driftskull is dead.", 11, 1440464)
  28. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  29. end
  30. function QuestComplete(Quest, QuestGiver, Player)
  31. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  32. UpdateQuestStepDescription(Quest, 2, "I reported back to Millia.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I reported back to Millia.")
  34. UpdateQuestDescription(Quest, "I was able to take care of Captain Driftskull. There won't be any more talk from him about going independent. Millia was impressed with my work. I think I am going to like being a Predator.")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. Step1Complete(Quest, QuestGiver, Player)
  40. elseif Step == 2 then
  41. QuestComplete(Quest, QuestGiver, Player)
  42. end
  43. end