MardypPrunt.lua 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. --[[
  2. Script Name : SpawnScripts/Ruins/MardypPrunt.lua
  3. Script Purpose : Mardyp Prunt
  4. Script Author : Scatman
  5. Script Date : 2009.07.28
  6. Script Notes :
  7. --]]
  8. local QUEST_1 = 265
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, QUEST_1)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. RandomVoiceOver(NPC, Spawn)
  19. if HasCompletedQuest(Spawn, QUEST_1) then
  20. PlayFlavor(NPC, "", "Making fang dust harder than Mardyp thought!", "", 1689589577, 4560189, Spawn)
  21. elseif HasQuest(Spawn, QUEST_1) then
  22. OnQuest1(NPC, Spawn, conversation)
  23. else
  24. RespectEnemies(NPC, Spawn, conversation)
  25. end
  26. end
  27. function RandomVoiceOver(NPC, Spawn)
  28. local choice = math.random(1, 3)
  29. if choice == 1 then
  30. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1056.mp3", "", "", 0, 0, Spawn)
  31. elseif choice == 2 then
  32. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1056.mp3", "", "", 0, 0, Spawn)
  33. elseif choice == 3 then
  34. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1056.mp3", "", "", 0, 0, Spawn)
  35. end
  36. end
  37. ---------------------------------------------------------------------------------------
  38. -- QUEST 1
  39. ---------------------------------------------------------------------------------------
  40. function RespectEnemies(NPC, Spawn, conversation)
  41. AddConversationOption(conversation, "What?", "dlg_4_1")
  42. AddConversationOption(conversation, "Whatever.")
  43. StartConversation(conversation, NPC, Spawn, "Respect enemies!")
  44. end
  45. function dlg_4_1(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. conversation = CreateConversation()
  48. AddConversationOption(conversation, "Oh.", "dlg_4_2")
  49. StartConversation(conversation, NPC, Spawn, "If enemies strong, respect them!")
  50. end
  51. function dlg_4_2(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. conversation = CreateConversation()
  54. AddConversationOption(conversation, "How can I help?", "dlg_4_3")
  55. StartConversation(conversation, NPC, Spawn, "Orc strong! Not THAT strong, but strong enough for respect! Mardyp talk to friend in Big Bend. Friend tell Mardyp that something in orc tusks make orcs more fierce, more strong! Mardyp killing orcs fine, but crushing fangs to eat takes time. You help Mardyp?")
  56. end
  57. function dlg_4_3(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. conversation = CreateConversation()
  60. AddConversationOption(conversation, "Ok, I'll collect some fangs.", "dlg_4_4")
  61. StartConversation(conversation, NPC, Spawn, "Get more fangs while Mardyp crush ones I already have. All orcs have fangs. Mardyp need 20!")
  62. end
  63. function dlg_4_4(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. conversation = CreateConversation()
  66. AddConversationOption(conversation, "I'll go get your fangs.", "OfferQuest1")
  67. StartConversation(conversation, NPC, Spawn, "Good! Mardyp go back to crushing.")
  68. end
  69. function OfferQuest1(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. OfferQuest(NPC, Spawn, QUEST_1)
  72. end
  73. function OnQuest1(NPC, Spawn, conversation)
  74. if GetQuestStep(Spawn, QUEST_1) == 2 then
  75. AddConversationOption(conversation, "Here you go.", "dlg_6_1")
  76. else
  77. AddConversationOption(conversation, "Not et.")
  78. end
  79. StartConversation(conversation, NPC, Spawn, "Orc fangs?")
  80. end
  81. function dlg_6_1(NPC, Spawn)
  82. SetStepComplete(Spawn, QUEST_1, 2)
  83. FaceTarget(NPC, Spawn)
  84. conversation = CreateConversation()
  85. AddConversationOption(conversation, "Well, good luck with that.")
  86. StartConversation(conversation, NPC, Spawn, "Good! Mardyp very happy! Soon Mardyp make these into soup or drink or something! Unless that too much work, then Mardyp just eat it.")
  87. end
  88. -- JA: new raw data collected
  89. --[[
  90. function hailed(NPC, Spawn)
  91. FaceTarget(NPC, Spawn)
  92. conversation = CreateConversation()
  93. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1056.mp3", "", "", 0, 0, Spawn)
  94. AddConversationOption(conversation, "What?", "dlg_4_1")
  95. AddConversationOption(conversation, "Whatever.")
  96. StartConversation(conversation, NPC, Spawn, "Respect enemies!")
  97. if convo==5 then
  98. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1056.mp3", "", "", 0, 0, Spawn)
  99. AddConversationOption(conversation, "What?", "dlg_5_1")
  100. AddConversationOption(conversation, "Whatever.")
  101. StartConversation(conversation, NPC, Spawn, "Respect enemies!")
  102. end
  103. if convo==6 then
  104. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1056.mp3", "", "", 0, 0, Spawn)
  105. AddConversationOption(conversation, "Here you go.", "dlg_6_1")
  106. StartConversation(conversation, NPC, Spawn, "Orc fangs?")
  107. end
  108. end
  109. function dlg_4_1(NPC, Spawn)
  110. FaceTarget(NPC, Spawn)
  111. conversation = CreateConversation()
  112. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  113. AddConversationOption(conversation, "Oh.", "dlg_4_2")
  114. StartConversation(conversation, NPC, Spawn, "If enemies strong, respect them!")
  115. end
  116. function dlg_4_2(NPC, Spawn)
  117. FaceTarget(NPC, Spawn)
  118. conversation = CreateConversation()
  119. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  120. AddConversationOption(conversation, "How can I help?", "dlg_4_3")
  121. StartConversation(conversation, NPC, Spawn, "Orc strong! Not THAT strong, but strong enough for respect! Mardyp talk to friend in Big Bend. Friend tell Mardyp that something in orc tusks make orcs more fierce, more strong! Mardyp killing orcs fine, but crushing fangs to eat takes time. You help Mardyp?")
  122. end
  123. function dlg_4_3(NPC, Spawn)
  124. FaceTarget(NPC, Spawn)
  125. conversation = CreateConversation()
  126. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  127. AddConversationOption(conversation, "Ok, I'll collect some fangs.", "dlg_4_4")
  128. StartConversation(conversation, NPC, Spawn, "Get more fangs while Mardyp crush ones I already have. All orcs have fangs. Mardyp need 20!")
  129. end
  130. function dlg_4_4(NPC, Spawn)
  131. FaceTarget(NPC, Spawn)
  132. conversation = CreateConversation()
  133. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  134. AddConversationOption(conversation, "I'll go get your fangs.", "dlg_4_5")
  135. StartConversation(conversation, NPC, Spawn, "Good! Mardyp go back to crushing.")
  136. end
  137. function dlg_5_1(NPC, Spawn)
  138. FaceTarget(NPC, Spawn)
  139. conversation = CreateConversation()
  140. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  141. AddConversationOption(conversation, "Oh.", "dlg_5_2")
  142. StartConversation(conversation, NPC, Spawn, "If enemies strong, respect them!")
  143. end
  144. function dlg_5_2(NPC, Spawn)
  145. FaceTarget(NPC, Spawn)
  146. conversation = CreateConversation()
  147. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  148. AddConversationOption(conversation, "How can I help?", "dlg_5_3")
  149. StartConversation(conversation, NPC, Spawn, "Orc strong! Not THAT strong, but strong enough for respect! Mardyp talk to friend in Big Bend. Friend tell Mardyp that something in orc tusks make orcs more fierce, more strong! Mardyp killing orcs fine, but crushing fangs to eat takes time. You help Mardyp?")
  150. end
  151. function dlg_5_3(NPC, Spawn)
  152. FaceTarget(NPC, Spawn)
  153. conversation = CreateConversation()
  154. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  155. AddConversationOption(conversation, "Ok, I'll collect some fangs.", "dlg_5_4")
  156. StartConversation(conversation, NPC, Spawn, "Get more fangs while Mardyp crush ones I already have. All orcs have fangs. Mardyp need 20!")
  157. end
  158. function dlg_5_4(NPC, Spawn)
  159. FaceTarget(NPC, Spawn)
  160. conversation = CreateConversation()
  161. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  162. AddConversationOption(conversation, "I'll go get your fangs.", "dlg_5_5")
  163. StartConversation(conversation, NPC, Spawn, "Good! Mardyp go back to crushing.")
  164. end
  165. function dlg_6_1(NPC, Spawn)
  166. FaceTarget(NPC, Spawn)
  167. conversation = CreateConversation()
  168. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  169. AddConversationOption(conversation, "Well, good luck with that.", "dlg_6_2")
  170. StartConversation(conversation, NPC, Spawn, "Good! Mardyp very happy! Soon Mardyp make these into soup or drink or something! Unless that too much work, then Mardyp just eat it.")
  171. end
  172. --]]
  173. --[[ raw_conversations
  174. PlayFlavor(NPC, "", "Making fang dust harder than Mardyp thought!", "", 1689589577, 4560189, Spawn)
  175. --]]