looking_for_work_is_hard_work.lua 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. --[[
  2. Script Name : Quests/Nettleville/looking_for_work_is_hard_work.lua
  3. Script Purpose : Handles the quest, "Looking for Work is Hard Work"
  4. Script Author : Scatman
  5. Script Date : 2009.08.10
  6. Zone : Nettleville
  7. Quest Giver: Helain Conyers
  8. Preceded by: Wind Blown Brell Serilis (wind_blown_brell_serilis.lua)
  9. Followed by: Crate and Barrel (crate_and_barrel.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I should find Amazu Kharliko hanging out in Market Row near the bank.", 1, "I should find her friends within Nettleville.", 0, 2330015)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_TalkedToAmazu")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/helain_conyers/qey_village01/helainconyers023.mp3", "", "", 455340576, 611384116, Player)
  19. AddConversationOption(conversation, "Good day to you!")
  20. StartConversation(conversation, QuestGiver, Player, "I do not have anything for you to do, but perhaps others do! Amazu Kharliko, Andret Surtees, Bahati Linnxar, and Laudine Shardalow are great friends of mine. I suggest you speak to each of them. May Quellious bless your journey, mighty one!")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Step1_Complete_TalkedToAmazu(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "Amazu Kharliko did not have anything for me to do.")
  26. AddQuestStepChat(Quest, 2, "Andret Surtees can be found with the scribes in the northern most building.", 1, "I should find her friends within Nettleville.", 0, 2330035)
  27. AddQuestStepCompleteAction(Quest, 2, "Step2_Complete_TalkedToAndret")
  28. end
  29. function Step2_Complete_TalkedToAndret(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "Andret Surtees didn't have any work for me, either.")
  31. AddQuestStepChat(Quest, 3, "The armorsmith building in the southeast corner is where I can find Bahati Linnxar.", 1, "I should find her friends within Nettleville.", 0, 2330040)
  32. AddQuestStepCompleteAction(Quest, 3, "Step3_Complete_TalkedToBahati")
  33. end
  34. function Step3_Complete_TalkedToBahati(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 3, "I wasn't able to find work with Bahati Linnxar.")
  36. AddQuestStepChat(Quest, 4, "Luadine Shardalow should be found at the bank in the southwest building.", 1, "I should find her friends within Nettleville.", 0, 2330013)
  37. AddQuestStepCompleteAction(Quest, 4, "Step4_Complete_TalkedToLuadine")
  38. end
  39. function Step4_Complete_TalkedToLuadine(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 4, "None of Helain's friends had work for me, but Luadine has a lead for me.")
  41. UpdateQuestTaskGroupDescription(Quest, 1, "None of Helain's friends had work for me, but Luadine has a lead for me.")
  42. AddQuestStepChat(Quest, 5, "Luadine Shardalow has sent me to speak with Johfrit Gythell.", 1, "He is in the southern area of town, near The Golden Scabbard armoy.", 0, 2330033)
  43. AddQuestStepCompleteAction(Quest, 5, "Quest_Complete")
  44. end
  45. function Quest_Complete(Quest, QuestGiver, Player)
  46. UpdateQuestDescription(Quest, "None of Helain's friends had work for me, but Luadine had a lead for me.")
  47. GiveQuestReward(Quest, Player)
  48. end
  49. function Reload(Quest, QuestGiver, Player, Step)
  50. if Step == 1 then
  51. Step1_Complete_TalkedToAmazu(Quest, QuestGiver, Player)
  52. elseif Step == 2 then
  53. Step2_Complete_TalkedToAndret(Quest, QuestGiver, Player)
  54. elseif Step == 3 then
  55. Step3_Complete_TalkedToBahati(Quest, QuestGiver, Player)
  56. elseif Step == 4 then
  57. Step4_Complete_TalkedToLuadine(Quest, QuestGiver, Player)
  58. end
  59. end