CitizenNibaOuz.lua 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. --[[
  2. Script Name : SpawnScripts/TimorousDeep/CitizenNibaOuz.lua
  3. Script Purpose : Citizen Niba'Ouz
  4. Script Author : John Adams
  5. Script Date : 2009.02.06
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. QUEST_FROM_TAROCHE = 109
  9. QUEST_1 = 110
  10. QUEST_2 = 111
  11. function spawn(NPC)
  12. ProvidesQuest(NPC, QUEST_1)
  13. ProvidesQuest(NPC, QUEST_2)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. if HasQuest(Spawn, QUEST_FROM_TAROCHE) and GetQuestStep(Spawn, QUEST_FROM_TAROCHE) == 1 then
  22. AddConversationOption(conversation, "I have some special bait from Taroche Dry'Zok.", "dlg_7_1")
  23. end
  24. if HasCompletedQuest(Spawn, QUEST_1) then
  25. if HasCompletedQuest(Spawn, QUEST_2) then
  26. PlayFlavor(NPC, "voiceover/english/rok_questvo/citizen_niba_ouz/_exp04/exp04_rgn_timorous_deep/chrykori_tie/qst_nibaouz_done_one_6b94b330.mp3", "I'll find the Gorger some day.", "", 3567000296, 2773766764, Spawn)
  27. elseif HasQuest(Spawn, QUEST_2) then
  28. DidYouCatchOneyet(NPC, Spawn, conversation)
  29. else
  30. DidYouCatchThem(NPC, Spawn, conversation)
  31. end
  32. elseif HasQuest(Spawn, QUEST_1) then
  33. DidYouCatchThem(NPC, Spawn, conversation)
  34. else
  35. if GetLevel(Spawn) < 3 then
  36. PlayFlavor(NPC, "voiceover/english/rok_questvo/citizen_niba_ouz/_exp04/exp04_rgn_timorous_deep/chrykori_tie/qst_nibaouz_done_one_6b94b330.mp3", "I'll find the Gorger some day.", "", 3567000296, 2773766764, Spawn)
  37. else
  38. Hello(NPC, Spawn, conversation)
  39. end
  40. end
  41. end
  42. -----------------------------------------------------------------------------------------------
  43. -- QUEST FROM TAROCHE
  44. -----------------------------------------------------------------------------------------------
  45. function dlg_7_1(NPC, Spawn)
  46. SetStepComplete(Spawn, QUEST_FROM_TAROCHE, 1)
  47. FaceTarget(NPC, Spawn)
  48. conversation = CreateConversation()
  49. PlayFlavor(NPC, "voiceover/english/rok_questvo/citizen_niba_ouz/_exp04/exp04_rgn_timorous_deep/chrykori_tie/nibaouz/nibaouz001.mp3", "", "", 2125587846, 3993478301, Spawn)
  50. if HasCompletedQuest(Spawn, QUEST_1) then
  51. AddConversationOption(conversation, "You're welcome.")
  52. else
  53. AddConversationOption(conversation, "So, what are you doing?", "dlg_6_1")
  54. end
  55. StartConversation(conversation, NPC, Spawn, "Ah, great! Thank you. That Dry'Zok... always out to make something new.")
  56. end
  57. -----------------------------------------------------------------------------------------------
  58. -- QUEST 1
  59. -----------------------------------------------------------------------------------------------
  60. function Hello(NPC, Spawn, conversation)
  61. PlayFlavor(NPC, "voiceover/english/rok_questvo/citizen_niba_ouz/_exp04/exp04_rgn_timorous_deep/chrykori_tie/nibaouz/nibaouz000.mp3", "", "", 1938772074, 3162234637, Spawn)
  62. AddConversationOption(conversation, "What are you doing?", "dlg_6_1")
  63. AddConversationOption(conversation, "Got to go, bye.")
  64. StartConversation(conversation, NPC, Spawn, "Hello.")
  65. end
  66. function dlg_6_1(NPC, Spawn)
  67. FaceTarget(NPC, Spawn)
  68. conversation = CreateConversation()
  69. PlayFlavor(NPC, "voiceover/english/rok_questvo/citizen_niba_ouz/_exp04/exp04_rgn_timorous_deep/chrykori_tie/nibaouz/nibaouz002.mp3", "", "", 2083730614, 3398082717, Spawn)
  70. AddConversationOption(conversation, "Sure, I'll help.", "OfferQuest1")
  71. StartConversation(conversation, NPC, Spawn, "Merely fishing. I was stationed here once, some time ago, and the fishing was ... well it wasn't necessarily the best place to fish, but it was good enough for me to come back. The fish bite at a pace I am comfortable with. I also sell the Chrykori saltfins I catch for a bit of coin. Would you care to help me catch some? It is really quite relaxing.")
  72. end
  73. function OfferQuest1(NPC, Spawn)
  74. FaceTarget(NPC, Spawn)
  75. OfferQuest(NPC, Spawn, QUEST_1)
  76. end
  77. function DidYouCatchThem(NPC, Spawn, conversation)
  78. PlayFlavor(NPC, "voiceover/english/rok_questvo/citizen_niba_ouz/_exp04/exp04_rgn_timorous_deep/chrykori_tie/nibaouz/nibaouz004.mp3", "", "", 2669727388, 3701951147, Spawn)
  79. if (HasCompletedQuest(Spawn, QUEST_1) and not HasCompletedQuest(Spawn, QUEST_2)) or (HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 2) then
  80. AddConversationOption(conversation, "Yes, I did.", "dlg_7_2")
  81. else
  82. AddConversationOption(conversation, "Not yet.")
  83. end
  84. StartConversation(conversation, NPC, Spawn, "Did you catch them?")
  85. end
  86. function dlg_7_2(NPC, Spawn)
  87. if HasQuest(Spawn, QUEST_1) then
  88. SetStepComplete(Spawn, QUEST_1, 2)
  89. end
  90. FaceTarget(NPC, Spawn)
  91. conversation = CreateConversation()
  92. PlayFlavor(NPC, "voiceover/english/rok_questvo/citizen_niba_ouz/_exp04/exp04_rgn_timorous_deep/chrykori_tie/nibaouz/nibaouz002.mp3", "", "", 2083730614, 3398082717, Spawn)
  93. AddConversationOption(conversation, "Sure, I'll help.", "OfferQuest2")
  94. StartConversation(conversation, NPC, Spawn, "Merely fishing. I was stationed here once, some time ago, and the fishing was ... well it wasn't necessarily the best place to fish, but it was good enough for me to come back. The fish bite at a pace I am comfortable with. I also sell the Chrykori saltfins I catch for a bit of coin. Would you care to help me catch some? It is really quite relaxing.")
  95. end
  96. -----------------------------------------------------------------------------------------------
  97. -- QUEST 2
  98. -----------------------------------------------------------------------------------------------
  99. function OfferQuest2(NPC, Spawn)
  100. FaceTarget(NPC, Spawn)
  101. OfferQuest(NPC, Spawn, QUEST_2)
  102. end
  103. function DidYouCatchOneyet(NPC, Spawn, conversation)
  104. PlayFlavor(NPC, "voiceover/english/rok_questvo/citizen_niba_ouz/_exp04/exp04_rgn_timorous_deep/chrykori_tie/nibaouz/nibaouz007.mp3", "", "", 3134955716, 150731510, Spawn)
  105. if HasQuest(Spawn, QUEST_2) and GetQuestStep(Spawn, QUEST_2) == 2 then
  106. AddConversationOption(conversation, "Yes.", "dlg_10_1")
  107. else
  108. AddConversationOption(conversation, "Not yet.")
  109. end
  110. StartConversation(conversation, NPC, Spawn, "Did you catch one yet?")
  111. end
  112. function dlg_10_1(NPC, Spawn)
  113. if HasQuest(Spawn, QUEST_2) then
  114. SetStepComplete(Spawn, QUEST_2, 2)
  115. end
  116. FaceTarget(NPC, Spawn)
  117. conversation = CreateConversation()
  118. PlayFlavor(NPC, "voiceover/english/rok_questvo/citizen_niba_ouz/_exp04/exp04_rgn_timorous_deep/chrykori_tie/nibaouz/nibaouz008.mp3", "", "", 3504914136, 1012324265, Spawn)
  119. AddConversationOption(conversation, "You're welcome.")
  120. StartConversation(conversation, NPC, Spawn, "Nice work! You're a natural. Maybe some day you'll even fish up the biggest bull of them all, Vethka the Gorger. I first saw him when I was originally stationed here, and none have yet managed to catch him. Since then he's stolen my bait a number of times. If you find him... let me know. Anyway, thank you for your help.")
  121. end