a_ferocious_inconvenience.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : Quests/Darklight/a_ferocious_inconvenience.lua
  3. Script Purpose : Handles the quest, "A Ferocious Invconvenience"
  4. Script Author : Scatman
  5. Script Date : 2009.02.01
  6. Zone : Darklight Wood
  7. Quest Giver: Jhana Do'Zyth
  8. Preceded by: None
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. -- Legplates of Ability
  13. -- Verdurous Belt
  14. AddQuestStepKill(Quest, 1, "I need to kill the ferocious wolf in western Hate's Envy.", 1, 100, ".", 611, 340094)
  15. AddQuestStepCompleteAction(Quest, 1, "step1_complete_killedWolf")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. conversation = CreateConversation()
  20. PlayFlavor(QuestGiver, "voiceover/english/neriak/jhana_do_zyth/darklight_wood/hates_envy/jhana/jhana004.mp3", "", "", 3733651177, 3084298647, Player)
  21. AddConversationOption(conversation, "All right, I will return once it is slain.", "dlg_3_4")
  22. StartConversation(conversation, QuestGiver, Player, "Tucked away in the western end of Hate's Envy. INSIDE these useless walls. Once it's slain let me know.")
  23. end
  24. function Declined(Quest, QuestGiver, Player)
  25. end
  26. function step1_complete_killedWolf(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 1, "I have slain the ferocious wolf.")
  28. UpdateQuestTaskGroupDescription(Quest, 1, "I have slain the ferocious wolf.")
  29. AddQuestStepChat(Quest, 2, "I need to return to Jhana.", 1, ".", 0, 340071)
  30. AddQuestStepCompleteAction(Quest, 2, "step2_complete_talkedToJhana")
  31. end
  32. function step2_complete_talkedToJhana(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "Jhana cannot pay me and suggests instead that I speak with her mother, Sselnyl.")
  34. UpdateQuestTaskGroupDescription(Quest, 2, "Jhana cannot pay me and suggests instead that I speak with her mother, Sselnyl.")
  35. AddQuestStepChat(Quest, 3, "I need to get my reward from Jhana's mother.", 1, ".", 0, 340087)
  36. AddQuestStepCompleteAction(Quest, 3, "quest_complete")
  37. end
  38. function quest_complete(Quest, QuestGiver, Player)
  39. UpdateQuestDescription(Quest, "I have slain the wolf for Jhana. Her mother paid me for my services.")
  40. GiveQuestReward(Quest, Player)
  41. end
  42. function Reload(Quest, QuestGiver, Player, Step)
  43. if Step == 1 then
  44. step1_complete_killedWolf(Quest, QuestGiver, Player)
  45. elseif Step == 2 then
  46. step2_complete_talkedToJhana(Quest, QuestGiver, Player)
  47. end
  48. end