9
3

GibrienMarsden.lua 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. --[[
  2. Script Name : SpawnScripts/GreaterFaydark/GibrienMarsden.lua
  3. Script Purpose : Gibrien Marsden <Assistant City Registrar>
  4. Script Author : John Adams
  5. Script Date : 2009.03.01
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. end
  16. function LeaveRange(NPC, Spawn)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. choice = math.random(1,2)
  22. if choice == 1 then
  23. PlayFlavor(NPC, "", "Glad to see you around.", "", 1689589577, 4560189, Spawn)
  24. elseif choice == 2 then
  25. PlayFlavor(NPC, "", "Good day to live in the trees.", "", 1689589577, 4560189, Spawn)
  26. else
  27. end
  28. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1022.mp3", "", "", 0, 0, Spawn)
  29. AddConversationOption(conversation, "I'm interested in becoming a citizen of Kelethin.", "dlg_57_1")
  30. AddConversationOption(conversation, "I'd like to work on my citizenship with Kelethin.")
  31. AddConversationOption(conversation, "Have I proven my worth to Kelethin yet?")
  32. AddConversationOption(conversation, "Nothing right now, thanks.")
  33. StartConversation(conversation, NPC, Spawn, "What would you like more information about?")
  34. if convo==58 then
  35. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1022.mp3", "", "", 0, 0, Spawn)
  36. AddConversationOption(conversation, "I'm interested in becoming a citizen of Kelethin.", "dlg_58_1")
  37. AddConversationOption(conversation, "I'd like to work on my citizenship with Kelethin.")
  38. AddConversationOption(conversation, "Have I proven my worth to Kelethin yet?")
  39. AddConversationOption(conversation, "Nothing right now, thanks.")
  40. StartConversation(conversation, NPC, Spawn, "What would you like more information about?")
  41. end
  42. if convo==59 then
  43. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1022.mp3", "", "", 0, 0, Spawn)
  44. AddConversationOption(conversation, "I'm interested in becoming a citizen of Kelethin.", "dlg_59_1")
  45. AddConversationOption(conversation, "I'd like to work on my citizenship with Kelethin.")
  46. AddConversationOption(conversation, "Have I proven my worth to Kelethin yet?")
  47. AddConversationOption(conversation, "Nothing right now, thanks.")
  48. StartConversation(conversation, NPC, Spawn, "What would you like more information about?")
  49. end
  50. if convo==60 then
  51. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1022.mp3", "", "", 0, 0, Spawn)
  52. AddConversationOption(conversation, "I'm interested in becoming a citizen of Kelethin.", "dlg_60_1")
  53. AddConversationOption(conversation, "I'd like to work on my citizenship with Kelethin.")
  54. AddConversationOption(conversation, "Have I proven my worth to Kelethin yet?")
  55. AddConversationOption(conversation, "Nothing right now, thanks.")
  56. StartConversation(conversation, NPC, Spawn, "What would you like more information about?")
  57. end
  58. if convo==61 then
  59. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1022.mp3", "", "", 0, 0, Spawn)
  60. AddConversationOption(conversation, "I'm interested in becoming a citizen of Kelethin.", "dlg_61_1")
  61. AddConversationOption(conversation, "I'd like to work on my citizenship with Kelethin.")
  62. AddConversationOption(conversation, "Have I proven my worth to Kelethin yet?")
  63. AddConversationOption(conversation, "Nothing right now, thanks.")
  64. StartConversation(conversation, NPC, Spawn, "What would you like more information about?")
  65. end
  66. if convo==62 then
  67. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1022.mp3", "", "", 0, 0, Spawn)
  68. AddConversationOption(conversation, "I'd like to work on my citizenship with Kelethin.", "dlg_62_1")
  69. AddConversationOption(conversation, "Have I proven my worth to Kelethin yet?")
  70. AddConversationOption(conversation, "Nothing right now, thanks.")
  71. StartConversation(conversation, NPC, Spawn, "What would you like more information about?")
  72. end
  73. if convo==63 then
  74. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1022.mp3", "", "", 0, 0, Spawn)
  75. AddConversationOption(conversation, "I'd like to work on my citizenship with Kelethin.", "dlg_63_1")
  76. AddConversationOption(conversation, "Have I proven my worth to Kelethin yet?")
  77. AddConversationOption(conversation, "Nothing right now, thanks.")
  78. StartConversation(conversation, NPC, Spawn, "What would you like more information about?")
  79. end
  80. end
  81. function dlg_57_1(NPC, Spawn)
  82. FaceTarget(NPC, Spawn)
  83. conversation = CreateConversation()
  84. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  85. AddConversationOption(conversation, "How do I do that?")
  86. StartConversation(conversation, NPC, Spawn, "Hmm...let me see. Yes, it looks as though you've been doing quite a number of hours of community service for Kelethin. Congratulations, .. GetName(Spawn) .. . You now have the right to apply with Queen Amree for citizenship!")
  87. end
  88. function dlg_58_1(NPC, Spawn)
  89. FaceTarget(NPC, Spawn)
  90. conversation = CreateConversation()
  91. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  92. AddConversationOption(conversation, "Nevermind, I changed my mind.", "dlg_58_2")
  93. StartConversation(conversation, NPC, Spawn, "Are you now? There are a couple of administrative tasks we need to take care of before you can get started. First off, where are you currently considered a citizen? Or are you currently in exile?")
  94. end
  95. function dlg_59_1(NPC, Spawn)
  96. FaceTarget(NPC, Spawn)
  97. conversation = CreateConversation()
  98. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  99. AddConversationOption(conversation, "All right.")
  100. AddConversationOption(conversation, "I need to take care of something else first.", "dlg_59_2")
  101. StartConversation(conversation, NPC, Spawn, "The first thing Queen Amree requests is that you familiarize yourself with the community before you make any commitments that you cannot reverse. Please speak with Nimess Sessi, a courtier in the Royal Court. He only speaks Faerlie, so before you speak with him, if you haven't done so already Miella Maarsitotts will teach you.")
  102. end
  103. function dlg_60_1(NPC, Spawn)
  104. FaceTarget(NPC, Spawn)
  105. conversation = CreateConversation()
  106. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  107. AddConversationOption(conversation, "How do I do that?")
  108. StartConversation(conversation, NPC, Spawn, "Hmm...let me see. Yes, it looks as though you've been doing quite a number of hours of community service for Kelethin. Congratulations, .. GetName(Spawn) .. . You now have the right to apply with Queen Amree for citizenship!")
  109. end
  110. function dlg_60_2(NPC, Spawn)
  111. FaceTarget(NPC, Spawn)
  112. conversation = CreateConversation()
  113. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  114. AddConversationOption(conversation, "That sounds great!", "dlg_60_3")
  115. StartConversation(conversation, NPC, Spawn, "It's very simple, really. The Queen will ask you some questions to ascertain your sincerity about making this commitment and then she'll conduct the ceremony herself!")
  116. end
  117. function dlg_61_1(NPC, Spawn)
  118. FaceTarget(NPC, Spawn)
  119. conversation = CreateConversation()
  120. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  121. AddConversationOption(conversation, "All right.")
  122. AddConversationOption(conversation, "I need to take care of something else first.", "dlg_61_2")
  123. StartConversation(conversation, NPC, Spawn, "The first thing Queen Amree requests is that you familiarize yourself with the community before you make any commitments that you cannot reverse. Please speak with Nimess Sessi, a courtier in the Royal Court. He only speaks Faerlie, so before you speak with him, if you haven't done so already Miella Maarsitotts will teach you.")
  124. end
  125. function dlg_61_2(NPC, Spawn)
  126. FaceTarget(NPC, Spawn)
  127. conversation = CreateConversation()
  128. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  129. AddConversationOption(conversation, "I'll be back.", "dlg_61_3")
  130. StartConversation(conversation, NPC, Spawn, "Come back once you've done as he recommends and we can get you started on your community tasks.")
  131. end
  132. function dlg_62_1(NPC, Spawn)
  133. FaceTarget(NPC, Spawn)
  134. conversation = CreateConversation()
  135. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  136. AddConversationOption(conversation, "All right.", "dlg_62_2")
  137. AddConversationOption(conversation, "I need to take care of something else first.")
  138. StartConversation(conversation, NPC, Spawn, "The first thing Queen Amree requests is that you familiarize yourself with the community before you make any commitments that you cannot reverse. Please speak with Nimess Sessi, a courtier in the Royal Court. He only speaks Faerlie, so before you speak with him, if you haven't done so already Miella Maarsitotts will teach you.")
  139. end
  140. function dlg_62_2(NPC, Spawn)
  141. FaceTarget(NPC, Spawn)
  142. conversation = CreateConversation()
  143. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  144. AddConversationOption(conversation, "I'll be back.", "dlg_62_3")
  145. StartConversation(conversation, NPC, Spawn, "Come back once you've done as he recommends and we can get you started on your community tasks.")
  146. end
  147. function dlg_63_1(NPC, Spawn)
  148. FaceTarget(NPC, Spawn)
  149. conversation = CreateConversation()
  150. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  151. AddConversationOption(conversation, "How do I do that?")
  152. StartConversation(conversation, NPC, Spawn, "Hmm...let me see. Yes, it looks as though you've been doing quite a number of hours of community service for Kelethin. Congratulations, .. GetName(Spawn) .. . You now have the right to apply with Queen Amree for citizenship!")
  153. end
  154. function dlg_63_2(NPC, Spawn)
  155. FaceTarget(NPC, Spawn)
  156. conversation = CreateConversation()
  157. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  158. AddConversationOption(conversation, "That sounds great!", "dlg_63_3")
  159. StartConversation(conversation, NPC, Spawn, "It's very simple, really. The Queen will ask you some questions to ascertain your sincerity about making this commitment and then she'll conduct the ceremony herself!")
  160. end
  161. function dlg_63_3(NPC, Spawn)
  162. FaceTarget(NPC, Spawn)
  163. conversation = CreateConversation()
  164. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  165. AddConversationOption(conversation, "Thanks!", "dlg_63_4")
  166. StartConversation(conversation, NPC, Spawn, "Best of luck to you, .. GetName(Spawn) .. . Welcome to Kelethin!")
  167. end
  168. --[[ raw_conversations
  169. PlayFlavor(NPC, "", "Glad to see you around.", "", 1689589577, 4560189, Spawn)
  170. PlayFlavor(NPC, "", "Good day to live in the trees.", "", 1689589577, 4560189, Spawn)
  171. --]]