VarkoriRizLul.lua 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. --[[
  2. Script Name : SpawnScripts/TimorousDeep/VarkoriRizLul.lua
  3. Script Purpose : Varkori Riz'Lul <Chrykori Village Chef>
  4. Script Author : John Adams
  5. Script Date : 2009.02.10
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. QUEST_1 = 117
  9. QUEST_2 = 118
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, QUEST_1)
  12. ProvidesQuest(NPC, QUEST_2)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. conversation = CreateConversation()
  20. if HasCompletedQuest(Spawn, QUEST_1) then
  21. if HasCompletedQuest(Spawn, QUEST_2) then
  22. Say(NPC, "The eggs are perfect, thank you!", Spawn)
  23. elseif HasQuest(Spawn, QUEST_2) then
  24. DidYouGetTheEggs(NPC, Spawn, conversation)
  25. else
  26. DidYouGetTheMeat(NPC, Spawn, conversation)
  27. end
  28. elseif HasQuest(Spawn, QUEST_1) then
  29. DidYouGetTheMeat(NPC, Spawn, conversation)
  30. else
  31. Greetings(NPC, Spawn, conversation)
  32. end
  33. end
  34. ---------------------------------------------------------------------------------------------
  35. -- QUEST 1
  36. ---------------------------------------------------------------------------------------------
  37. function Greetings(NPC, Spawn, conversation)
  38. PlayFlavor(NPC, "voiceover/english/rok_questvo/varkori_riz_lul/_exp04/exp04_rgn_timorous_deep/chrykori_tie/rizlul/rizlul000.mp3", "", "", 3836480267, 1980361866, Spawn)
  39. AddConversationOption(conversation, "Yes, I can help.", "OfferQuest1")
  40. StartConversation(conversation, NPC, Spawn, "Greetings, " .. GetName(Spawn) .. ". Welcome to Chrykori Village. I am Varkori Riz'Lul. It is my task to prepare food for this entire island... with a little help from Taroche Dry'Zok. Though Taroche is helpful, he doesn't quite have the zest for gathering provisions that I wish for in an assistant. Would you care to help me gather some more supplies? I need briny lizard meat from the Timeworn Pools to the west.")
  41. end
  42. function OfferQuest1(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. OfferQuest(NPC, Spawn, QUEST_1)
  45. end
  46. function DidYouGetTheMeat(NPC, Spawn, conversation)
  47. PlayFlavor(NPC, "voiceover/english/rok_questvo/varkori_riz_lul/_exp04/exp04_rgn_timorous_deep/chrykori_tie/rizlul/rizlul002.mp3", "", "", 1914925436, 868661066, Spawn)
  48. if (HasCompletedQuest(Spawn, QUEST_1) and not HasCompletedQuest(Spawn, QUEST_2)) or (HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 2) then
  49. AddConversationOption(conversation, "Yes, here you are.", "dlg_27_1")
  50. else
  51. AddConversationOption(conversation, "Not yet.")
  52. end
  53. StartConversation(conversation, NPC, Spawn, "Did you get the meat?")
  54. end
  55. function dlg_27_1(NPC, Spawn)
  56. if HasQuest(Spawn, QUEST_1) then
  57. SetStepComplete(Spawn, QUEST_1, 2)
  58. end
  59. FaceTarget(NPC, Spawn)
  60. conversation = CreateConversation()
  61. PlayFlavor(NPC, "voiceover/english/rok_questvo/varkori_riz_lul/_exp04/exp04_rgn_timorous_deep/chrykori_tie/rizlul/rizlul003.mp3", "", "", 965153171, 3611885529, Spawn)
  62. AddConversationOption(conversation, "Sure, I can help.", "dlg_27_2")
  63. StartConversation(conversation, NPC, Spawn, "Wonderful. Please know that I appreciate this. Would you care to help me out once again? Taroche is still preoccupied with his... 'art.'")
  64. end
  65. ---------------------------------------------------------------------------------------------
  66. -- QUEST 2
  67. ---------------------------------------------------------------------------------------------
  68. function dlg_27_2(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. conversation = CreateConversation()
  71. PlayFlavor(NPC, "voiceover/english/rok_questvo/varkori_riz_lul/_exp04/exp04_rgn_timorous_deep/chrykori_tie/rizlul/rizlul004.mp3", "", "", 25576661, 1619798182, Spawn)
  72. AddConversationOption(conversation, "All right, I'll go get some.", "OfferQuest2")
  73. StartConversation(conversation, NPC, Spawn, "Splendid. There are tortoise nests in the dunes to the west. I'd like you to go gather some of their eggs and bring them back to me; they're packed full of nutrients! Much heartier than stuffed grit gorger claws.")
  74. end
  75. function OfferQuest2(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. OfferQuest(NPC, Spawn, QUEST_2)
  78. end
  79. function dlg_25_1(NPC, Spawn)
  80. FaceTarget(NPC, Spawn)
  81. conversation = CreateConversation()
  82. PlayFlavor(NPC, "voiceover/english/rok_questvo/varkori_riz_lul/_exp04/exp04_rgn_timorous_deep/chrykori_tie/rizlul/rizlul001.mp3", "", "", 1972473001, 1216175625, Spawn)
  83. AddConversationOption(conversation, "I will get the lizard meat.", "dlg_25_2")
  84. StartConversation(conversation, NPC, Spawn, "Great, thank you. I'd send Taroche, but every time I try to send him out, he tells me he's perfecting his stuffed grit gorger claw recipe. Hmph! One meaningless soldier tells him they're the best thing he's ever tasted, and now Taroche just won't let it go. He seems to believe he's some sort of culinary genius, but I don't have the heart to tell him he was bred without taste buds.")
  85. end
  86. function DidYouGetTheEggs(NPC, Spawn, conversation)
  87. PlayFlavor(NPC, "voiceover/english/rok_questvo/varkori_riz_lul/_exp04/exp04_rgn_timorous_deep/chrykori_tie/rizlul/rizlul006.mp3", "", "", 3179652377, 1025718617, Spawn)
  88. if HasQuest(Spawn, QUEST_2) and GetQuestStep(Spawn, QUEST_2) == 2 then
  89. AddConversationOption(conversation, "Yes I did.", "dlg_29_1")
  90. else
  91. AddConversationOption(conversation, "Not yet.")
  92. end
  93. StartConversation(conversation, NPC, Spawn, "Did you get the eggs?")
  94. end
  95. function dlg_29_1(NPC, Spawn)
  96. SetStepComplete(Spawn, QUEST_2, 2)
  97. FaceTarget(NPC, Spawn)
  98. conversation = CreateConversation()
  99. PlayFlavor(NPC, "voiceover/english/rok_questvo/varkori_riz_lul/_exp04/exp04_rgn_timorous_deep/chrykori_tie/rizlul/rizlul007.mp3", "", "", 2978812462, 2156563259, Spawn)
  100. AddConversationOption(conversation, "You're welcome.")
  101. StartConversation(conversation, NPC, Spawn, "Ah, excellent. You have done a lot for the inhabitants of this island, " .. GetName(Spawn) .. ". If they can't eat, they can't very well fight! Thank you for your work.")
  102. end