9
3

CaptainWarrik.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/CaptainWarrik.lua
  3. Script Author : Zcoretri
  4. Script Date : 2015.07.30
  5. Script Purpose : Captain Warrik dialog
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function respawn(NPC)
  11. spawn(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. conversation = CreateConversation()
  16. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_warrik/tutorial_island02_revamp/trainers/world_interaction/world_int001.mp3", "", "", 204642470, 358524335, Spawn)
  17. AddConversationOption(conversation, "Teach me about interacting with people and objects around Norrath.", "dlg_6_1")
  18. AddConversationOption(conversation, "I'll return for instruction later.")
  19. StartConversation(conversation, NPC, Spawn, "Greetings," .. GetName(Spawn) .. ". You're the new addition to the colony that we've been hearing about. I've been stationed here by the queen to show you ways to interact with the world around you.")
  20. end
  21. function dlg_6_1(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. conversation = CreateConversation()
  24. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_warrik/tutorial_island02_revamp/trainers/world_interaction/world_int002.mp3", "", "", 3266378152, 2419021702, Spawn)
  25. AddConversationOption(conversation, "In what ways can I interact with other player characters?", "dlg_6_2")
  26. AddConversationOption(conversation, "How do I interact with non-player characters?", "dlg_6_5")
  27. AddConversationOption(conversation, "How can I interact with objects in the world?", "dlg_6_10")
  28. AddConversationOption(conversation, "What can I do with items in my inventory?", "dlg_6_13")
  29. AddConversationOption(conversation, "I'll return for instruction later.")
  30. StartConversation(conversation, NPC, Spawn, "You can interact with several types of individuals and items. Among these are other player characters, non-player characters, objects in the world, and items in your inventory.")
  31. end
  32. function dlg_6_2(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. conversation = CreateConversation()
  35. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_warrik/tutorial_island02_revamp/trainers/world_interaction/world_int003.mp3", "", "", 2351145322, 214243520, Spawn)
  36. AddConversationOption(conversation, "How can I tell which actions I can take?", "dlg_6_3")
  37. StartConversation(conversation, NPC, Spawn, "You can perform a number of actions by right-clicking on a nearby player that you see. You can invite them to a group, follow them, talk to them, inspect their equipment, trade with them, and other choices. Some actions can only be taken while you are in a group with them.")
  38. end
  39. function dlg_6_3(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. conversation = CreateConversation()
  42. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_warrik/tutorial_island02_revamp/trainers/world_interaction/world_int004.mp3", "", "", 217492850, 1476210113, Spawn)
  43. AddConversationOption(conversation, "How do I talk to other players?", "dlg_6_4")
  44. StartConversation(conversation, NPC, Spawn, "If one of the right-click choices is grey, it means it is unavailable. You either need to be closer to the other player or be grouped with them.")
  45. end
  46. function dlg_6_4(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. conversation = CreateConversation()
  49. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_warrik/tutorial_island02_revamp/trainers/world_interaction/world_int005.mp3", "", "", 499804299, 1158500700, Spawn)
  50. AddConversationOption(conversation, "How do I interact with non-player characters?", "dlg_6_5")
  51. AddConversationOption(conversation, "How can I interact with objects in the world?", "dlg_6_10")
  52. AddConversationOption(conversation, "What can I do with items in my inventory?", "dlg_6_13")
  53. AddConversationOption(conversation, "I'll return for instruction later.")
  54. StartConversation(conversation, NPC, Spawn, "If you are near another player, you can type something on the command line of your Chat window and press enter. All other nearby players can see this text. To send a private message, right-click on the character and select the 'tell' option, or hit the T key and type their name.")
  55. end
  56. function dlg_6_5(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. conversation = CreateConversation()
  59. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_warrik/tutorial_island02_revamp/trainers/world_interaction/world_int006.mp3", "", "", 887410160, 3920006297, Spawn)
  60. AddConversationOption(conversation, "How do I tell the difference?", "dlg_6_6")
  61. StartConversation(conversation, NPC, Spawn, "There are a variety of non-player characters (NPCs) around Norrath. Some of them are there to talk to or buy from, while others are meant to fight.")
  62. end
  63. function dlg_6_6(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. conversation = CreateConversation()
  66. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_warrik/tutorial_island02_revamp/trainers/world_interaction/world_int007.mp3", "", "", 2117851027, 1566096416, Spawn)
  67. AddConversationOption(conversation, "Are there different ways to interact with a single NPC?", "dlg_6_7")
  68. StartConversation(conversation, NPC, Spawn, "The shape of your mouse pointer when you move it over an NPC indicates the primary means of interaction. If the pointer becomes a speech bubble, you can talk to that NPC. If it becomes crossed swords, you can attack them. If it looks like a stack of coins, that's a merchant.")
  69. end
  70. function dlg_6_7(NPC, Spawn)
  71. FaceTarget(NPC, Spawn)
  72. conversation = CreateConversation()
  73. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_warrik/tutorial_island02_revamp/trainers/world_interaction/world_int008.mp3", "", "", 4204591829, 775598592, Spawn)
  74. AddConversationOption(conversation, "Are there multiple ways to talk to an NPC?", "dlg_6_8")
  75. StartConversation(conversation, NPC, Spawn, "You can see all the ways you can interact with an NPC by right-clicking on it. If an option is grey, you probably need to be closer to it.")
  76. end
  77. function dlg_6_8(NPC, Spawn)
  78. FaceTarget(NPC, Spawn)
  79. conversation = CreateConversation()
  80. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_warrik/tutorial_island02_revamp/trainers/world_interaction/world_int009.mp3", "", "", 3050147178, 1058091559, Spawn)
  81. AddConversationOption(conversation, "How do I go about attacking an NPC?", "dlg_6_9")
  82. StartConversation(conversation, NPC, Spawn, "Well, you're talking to me, so you know at least one way! You can either right-click and select 'hail,' click on them if that is their default action, or target them and hit the H key.")
  83. end
  84. function dlg_6_9(NPC, Spawn)
  85. FaceTarget(NPC, Spawn)
  86. conversation = CreateConversation()
  87. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_warrik/tutorial_island02_revamp/trainers/world_interaction/world_int010.mp3", "", "", 3207862275, 1652184320, Spawn)
  88. AddConversationOption(conversation, "In what ways can I interact with other player characters?", "dlg_6_2")
  89. AddConversationOption(conversation, "How do I interact with non-player characters?", "dlg_6_5")
  90. AddConversationOption(conversation, "How can I interact with objects in the world?", "dlg_6_10")
  91. AddConversationOption(conversation, "What can I do with items in my inventory?", "dlg_6_13")
  92. AddConversationOption(conversation, "I'll return for instruction later.")
  93. StartConversation(conversation, NPC, Spawn, "To learn about combat, talk to Trainer Hayl McGuinness near the western archway. To learn about evaluating your opponents, talk to Trainer Marla Gilliam, who is near Hayl. Both these trainers provide information vital to your success as an adventurer.")
  94. end
  95. function dlg_6_10(NPC, Spawn)
  96. FaceTarget(NPC, Spawn)
  97. conversation = CreateConversation()
  98. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_warrik/tutorial_island02_revamp/trainers/world_interaction/world_int011.mp3", "", "", 986431613, 4262526566, Spawn)
  99. AddConversationOption(conversation, "How do I tell what the glowing object will do?","dlg_6_11")
  100. StartConversation(conversation, NPC, Spawn, "If something glows when you move your mouse over it, you can interact with it. It might be a door or gate that takes you to another location, a book you see on a table, a chest you can loot, or another type of object. Some items only glow if you are on a quest to find them.")
  101. end
  102. function dlg_6_11(NPC, Spawn)
  103. FaceTarget(NPC, Spawn)
  104. conversation = CreateConversation()
  105. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_warrik/tutorial_island02_revamp/trainers/world_interaction/world_int012.mp3", "", "", 281123238, 3770593908, Spawn)
  106. AddConversationOption(conversation, "Can anything bad happen by clicking on an object?", "dlg_6_12")
  107. StartConversation(conversation, NPC, Spawn, "Sometimes you'll receive information on what the object will do when you hold your mouse over it. Other times you will need to right-click on the object to see what action you can take with it.")
  108. end
  109. function dlg_6_12(NPC, Spawn)
  110. FaceTarget(NPC, Spawn)
  111. conversation = CreateConversation()
  112. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_warrik/tutorial_island02_revamp/trainers/world_interaction/world_int013.mp3", "", "", 22184547, 714173495, Spawn)
  113. AddConversationOption(conversation, "In what ways can I interact with other player characters?", "dlg_6_2")
  114. AddConversationOption(conversation, "How do I interact with non-player characters?", "dlg_6_5")
  115. AddConversationOption(conversation, "What can I do with items in my inventory?", "dlg_6_13")
  116. AddConversationOption(conversation, "I'll return for instruction later.")
  117. StartConversation(conversation, NPC, Spawn, "Be wary of clicking on an object when you don't know what it will do, as something unexpected could happen. You might draw the attention of someone who didn't want you to touch it, or might end up somewhere you didn't plan to go.")
  118. end
  119. function dlg_6_13(NPC, Spawn)
  120. FaceTarget(NPC, Spawn)
  121. conversation = CreateConversation()
  122. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_warrik/tutorial_island02_revamp/trainers/world_interaction/world_int014.mp3", "", "", 3003386223, 1374934830, Spawn)
  123. AddConversationOption(conversation, "How do I know what I can do with an item?", "dlg_6_14")
  124. StartConversation(conversation, NPC, Spawn, "Sometimes you'll receive items in your inventory, such as when you complete a quest or loot a chest from a fallen opponent. Other times, you'll receive an item by clicking on a glowing object you see in the world, or that is given to you by another player.")
  125. end
  126. function dlg_6_14(NPC, Spawn)
  127. FaceTarget(NPC, Spawn)
  128. conversation = CreateConversation()
  129. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_warrik/tutorial_island02_revamp/trainers/world_interaction/world_int015.mp3", "", "", 921421095, 934280804, Spawn)
  130. AddConversationOption(conversation, "What are some common things I can do with items?", "dlg_6_15")
  131. StartConversation(conversation, NPC, Spawn, "Open your inventory with the I key, or open up all bags you are carrying by pressing the B key. You can bring up a menu of choices for what you can do with an item by right-clicking on it. Double-clicking the left mouse button on something in your inventory will try to do that item's default action.")
  132. end
  133. function dlg_6_15(NPC, Spawn)
  134. FaceTarget(NPC, Spawn)
  135. conversation = CreateConversation()
  136. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_warrik/tutorial_island02_revamp/trainers/world_interaction/world_int016.mp3", "", "", 3594960522, 2732369829, Spawn)
  137. AddConversationOption(conversation, "What about other types of items?", "dlg_6_16")
  138. StartConversation(conversation, NPC, Spawn, "If the item is a piece of armor or a weapon, you can equip it. If it's a book or a note, you can read it. If it is food or drink, you can consume it. Some items, such as furniture, can be placed while you are inside the house or apartment you own.")
  139. end
  140. function dlg_6_16(NPC, Spawn)
  141. FaceTarget(NPC, Spawn)
  142. conversation = CreateConversation()
  143. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_warrik/tutorial_island02_revamp/trainers/world_interaction/world_int017.mp3", "", "", 1124732255, 409658595, Spawn)
  144. AddConversationOption(conversation, "In what ways can I interact with other player characters?", "dlg_6_2")
  145. AddConversationOption(conversation, "How do I interact with non-player characters?", "dlg_6_5")
  146. AddConversationOption(conversation, "How can I interact with objects in the world?", "dlg_6_10")
  147. AddConversationOption(conversation, "I'll return for instruction later.")
  148. StartConversation(conversation, NPC, Spawn, "Some items in your inventory can give you quests or provide other benefits. Right-click on items in your inventory and select the 'Examine' option to learn more about any item you are carrying.")
  149. end