rotting_scum.lua 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. --[[
  2. Script Name : Quests/Darklight/rotting_scum.lua
  3. Script Purpose : Handles the quest, "Rotting Scum"
  4. Script Author : Scatman
  5. Script Date : 2009.02.02
  6. Zone : Darklight Wood
  7. Quest Giver: Ginwyss D'Arkenett
  8. Preceded by: None
  9. Followed by: Picking up Slack (picking_up_slack.lua)
  10. --]]
  11. function Init(Quest)
  12. -- Hammered Steel Necklace
  13. -- Mineralized Guards
  14. -- Fallen Corpse Jerkin
  15. -- Pitted Waraxe
  16. -- Fire Hardened Pike
  17. AddQuestStepKill(Quest, 1, "I need to kill seven fallen rangers.", 7, 100, "Ginwyss D'Arkenett wants the zombies southwest of T'Vatar Post slain.", 611, 340096)
  18. AddQuestStepKill(Quest, 2, "I need to kill seven stout cadavers.", 7, 100, "Ginwyss D'Arkenett wants the zombies southwest of T'Vatar Post slain.", 611, 340098)
  19. AddQuestStepCompleteAction(Quest, 1, "step1_complete_killedRangers")
  20. AddQuestStepCompleteAction(Quest, 2, "step2_complete_killedCadavers")
  21. end
  22. function Accepted(Quest, QuestGiver, Player)
  23. FaceTarget(QuestGiver, Player)
  24. conversation = CreateConversation()
  25. PlayFlavor(QuestGiver, "voiceover/english/neriak/ginwyss_d_arkenett/darklight_wood/tvatar_post/ginwyss/ginwyss006.mp3", "", "", 931914154, 1041693399, Player)
  26. AddConversationOption(conversation, "I will.")
  27. StartConversation(conversation, QuestGiver, Player, "Return to me after you've 'killed' them.")
  28. end
  29. function Declined(Quest, QuestGiver, Player)
  30. end
  31. function step1_complete_killedRangers(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 1, "I have slain the fallen rangers.")
  33. if QuestIsComplete(Player, 88) then
  34. MultipleStepsComplete(Quest, QuestGiver, Player)
  35. end
  36. end
  37. function step2_complete_killedCadavers(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 2, "I have slain the stout cadavers.")
  39. if QuestIsComplete(Player, 88) then
  40. MultipleStepsComplete(Quest, QuestGiver, Player)
  41. end
  42. end
  43. function MultipleStepsComplete(Quest, QuestGiver, Player)
  44. UpdateQuestTaskGroupDescription(Quest, 1, "I have slain the zombies.")
  45. AddQuestStepChat(Quest, 3, "I must speak with Ginwyss D'Arkenette.", 1, "I have slain the zombies and should return to Ginwyss D'Arkenette.", 0, 340110)
  46. AddQuestStepCompleteAction(Quest, 3, "quest_complete")
  47. end
  48. function quest_complete(Quest, QuestGiver, Player)
  49. UpdateQuestDescription(Quest, "I have slain the zombies for Ginwyss D'Arkenette.")
  50. GiveQuestReward(Quest, Player)
  51. end
  52. function Reload(Quest, QuestGiver, Player, Step)
  53. if Step == 1 then
  54. step1_complete_killedRangers(Quest, QuestGiver, Player)
  55. elseif Step == 2 then
  56. step2_complete_killedCadavers(Quest, QuestGiver, Player)
  57. end
  58. end