driving_back_the_dervish.lua 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : Quests/TheSprawl/driving_back_the_dervish.lua
  3. Script Purpose : Handles the quest, "Driving Back the Dervish"
  4. Script Author : Scatman
  5. Script Date : 2009.07.27
  6. Zone : The Sprawl
  7. Quest Giver: Liege Aquila
  8. Preceded by: None
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I must defeat eight Dervish crooks.", 8, 100, "I must battle the Dervish to keep them in line.", 611, 1260115, 1260114, 1260102, 1260101, 1260116, 1260098, 1260105, 1260100, 1260096, 1260117, 1260099, 1260089)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_KilledCrooks")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. AddConversationOption(conversation, "I will do so.")
  19. StartConversation(conversation, QuestGiver, Player, "Glad to hear it. Defeat them and return to me for your payment.")
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. end
  23. function Step1_Complete_KilledCrooks(Quest, QuestGiver, Player)
  24. UpdateQuestStepDescription(Quest, 1, "I've defeated the Dervish in battle.")
  25. UpdateQuestTaskGroupDescription(Quest, 1, "I've taught the Dervish a lesson.")
  26. AddQuestStepChat(Quest, 2, "I should report back to Liege Aquila.", 1, "I should report back to Liege Aquila near the gate to the Ruins.", 0, 1260109)
  27. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  28. end
  29. function Quest_Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "I have reported back to Liege Aquila.")
  31. UpdateQuestTaskGroupDescription(Quest, 2, "I reported back to Liege Aquila.")
  32. GiveQuestReward(Quest, Player)
  33. UpdateQuestDescription(Quest, "I fought back against the Dervish in the Sprawl. So far they seem to be contained, but their numbers are significant. I fear this battle will be ongoing.")
  34. end
  35. function Reload(Quest, QuestGiver, Player)
  36. if Step == 1 then
  37. Step1_Complete_KilledCrooks(Quest, QuestGiver, Player)
  38. end
  39. end