CaptainPinious.lua 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. --[[
  2. Script Name: Captain Pinious.lua
  3. Script Purpose: General Introduction
  4. Script Author: John Adams
  5. Script Date: 2008.09.06
  6. Script Notes: Auto-Generated Conversation from PacketParser Data
  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. if HasQuest(Spawn, 54) and GetQuestStep(Spawn, 54) == 4 then
  17. AddConversationOption(conversation, "Have you met Charles Arker? He's a well-known fellow.", "CharlesArker")
  18. end
  19. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_pinious/tutorial_island02_evil_revamp/trainers/world_interaction/capt_pinious001.mp3", "", "", 846615498, 3873495514, Spawn)
  20. AddConversationOption(conversation, "Teach me about interacting with people and objects around Norrath.", "TeachMeInteracting")
  21. AddConversationOption(conversation, "I'll return for instruction later.")
  22. StartConversation(conversation, NPC, Spawn, "Hello there, " .. GetName(Spawn) .. ". So you're the new addition to the outpost that we've been hearing about. I've been stationed here by the Overlord to instruct you in ways that you can interact with the world around you.")
  23. end
  24. function TeachMeInteracting(NPC, Spawn)
  25. conversation = CreateConversation()
  26. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_pinious/tutorial_island02_evil_revamp/trainers/world_interaction/capt_pinious002.mp3", "", "", 2903161190, 2453753160, Spawn)
  27. AddConversationOption(conversation, "In what ways can I interact with other player characters?", "WaysToInteract")
  28. AddConversationOption(conversation, "How do I interact with non-player characters?", "NPCInteract")
  29. AddConversationOption(conversation, "How can I interact with objects in the world?", "ObjectInteract")
  30. AddConversationOption(conversation, "What can I do with items in my inventory?", "Inventory")
  31. AddConversationOption(conversation, "I'll return for instruction later.")
  32. StartConversation(conversation, NPC, Spawn, "There are several types of individuals and items you can interact with. Among these are other player characters, non-player characters, objects in the world, and items in your inventory.")
  33. end
  34. function WaysToInteract(NPC, Spawn)
  35. conversation = CreateConversation()
  36. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_pinious/tutorial_island02_evil_revamp/trainers/world_interaction/capt_pinious003.mp3", "", "", 3452718562, 2616705077, Spawn)
  37. AddConversationOption(conversation, "How can I tell which actions I can take?", "WhatActions")
  38. 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're in a group with them.")
  39. end
  40. function WhatActions(NPC, Spawn)
  41. conversation = CreateConversation()
  42. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_pinious/tutorial_island02_evil_revamp/trainers/world_interaction/capt_pinious004.mp3", "", "", 2909488415, 579153552, Spawn)
  43. AddConversationOption(conversation, "How do I talk to other players?", "TalkToPlayers")
  44. StartConversation(conversation, NPC, Spawn, "If one of the right-click choices is grey, it means it's unavailable. You either need to be closer to the other player or be grouped with them.")
  45. end
  46. function TalkToPlayers(NPC, Spawn)
  47. conversation = CreateConversation()
  48. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_pinious/tutorial_island02_evil_revamp/trainers/world_interaction/capt_pinious005.mp3", "", "", 1528548512, 277398920, Spawn)
  49. AddConversationOption(conversation, "How do I interact with non-player characters?", "NPCInteract")
  50. AddConversationOption(conversation, "How can I interact with objects in the world?", "ObjectInteract")
  51. AddConversationOption(conversation, "What can I do with items in my inventory?", "Inventory")
  52. AddConversationOption(conversation, "I'll return for instruction later.")
  53. StartConversation(conversation, NPC, Spawn, "If you're 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.")
  54. end
  55. function NPCInteract(NPC, Spawn)
  56. conversation = CreateConversation()
  57. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_pinious/tutorial_island02_evil_revamp/trainers/world_interaction/capt_pinious006.mp3", "", "", 662332133, 1635440695, Spawn)
  58. AddConversationOption(conversation, "How do I tell the difference?", "TellTheDifference")
  59. 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.")
  60. end
  61. function TellTheDifference(NPC, Spawn)
  62. conversation = CreateConversation()
  63. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_pinious/tutorial_island02_evil_revamp/trainers/world_interaction/capt_pinious007.mp3", "", "", 3296094991, 894278121, Spawn)
  64. AddConversationOption(conversation, "Are there different ways to interact with a single NPC?", "SingleNPC")
  65. 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.")
  66. end
  67. function SingleNPC(NPC, Spawn)
  68. conversation = CreateConversation()
  69. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_pinious/tutorial_island02_evil_revamp/trainers/world_interaction/capt_pinious008.mp3", "", "", 394706450, 3452025444, Spawn)
  70. AddConversationOption(conversation, "How do I talk to other players?", "TalkToNPCs")
  71. AddConversationOption(conversation, "DEV: THIS QUESTION SEEMS WRONG? Should be Talk To NPC based on next sequence.")
  72. 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.")
  73. end
  74. function TalkToNPCs(NPC, Spawn)
  75. conversation = CreateConversation()
  76. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_pinious/tutorial_island02_evil_revamp/trainers/world_interaction/capt_pinious009.mp3", "", "", 3974625037, 2019991574, Spawn)
  77. AddConversationOption(conversation, "How do I go about attacking an NPC?", "AttackNPC")
  78. 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's their default action, or target them and hit the H key.")
  79. end
  80. function AttackNPC(NPC, Spawn)
  81. conversation = CreateConversation()
  82. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_pinious/tutorial_island02_evil_revamp/trainers/world_interaction/capt_pinious010.mp3", "", "", 454006131, 3919416269, Spawn)
  83. AddConversationOption(conversation, "In what ways can I interact with other player characters?", "WaysToInteract")
  84. AddConversationOption(conversation, "How can I interact with objects in the world?", "ObjectInteract")
  85. AddConversationOption(conversation, "What can I do with items in my inventory?", "Inventory")
  86. AddConversationOption(conversation, "I'll return for instruction later.")
  87. StartConversation(conversation, NPC, Spawn, "To learn about combat, talk to Trainer Darg Frostwind near the western archway. To learn about evaluating your opponents, talk to Trainer Anna Winston, who is near Darg. Both these trainers provide information vital to your success as an adventurer.")
  88. end
  89. function ObjectInteract(NPC, Spawn)
  90. conversation = CreateConversation()
  91. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_pinious/tutorial_island02_evil_revamp/trainers/world_interaction/capt_pinious011.mp3", "", "", 3997858624, 220413119, Spawn)
  92. AddConversationOption(conversation, "How do I tell what the glowing object will do?", "GlowingObjects")
  93. 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 glow only if you're on a quest to find them.")
  94. end
  95. function GlowingObjects(NPC, Spawn)
  96. conversation = CreateConversation()
  97. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_pinious/tutorial_island02_evil_revamp/trainers/world_interaction/capt_pinious012.mp3", "", "", 157757148, 1267818422, Spawn)
  98. AddConversationOption(conversation, "Can anything bad happen by clicking on an object?", "VeryBadThings")
  99. 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 perform with it.")
  100. end
  101. function VeryBadThings(NPC, Spawn)
  102. conversation = CreateConversation()
  103. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_pinious/tutorial_island02_evil_revamp/trainers/world_interaction/capt_pinious013.mp3", "", "", 2171077809, 1456782467, Spawn)
  104. AddConversationOption(conversation, "In what ways can I interact with other player characters?", "WaysToInteract")
  105. AddConversationOption(conversation, "How do I interact with non-player characters?", "NPCInteract")
  106. AddConversationOption(conversation, "How can I interact with objects in the world?", "ObjectInteract")
  107. AddConversationOption(conversation, "What can I do with items in my inventory?", "Inventory")
  108. AddConversationOption(conversation, "I'll return for instruction later.")
  109. StartConversation(conversation, NPC, Spawn, "Be careful about clicking on an object when you don't know what it will do, as something unexpected might 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 be.")
  110. end
  111. function Inventory(NPC, Spawn)
  112. conversation = CreateConversation()
  113. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_pinious/tutorial_island02_evil_revamp/trainers/world_interaction/capt_pinious014.mp3", "", "", 3800117344, 3288637503, Spawn)
  114. AddConversationOption(conversation, "How do I know what I can do with an item?", "Item")
  115. 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.")
  116. end
  117. function Item(NPC, Spawn)
  118. conversation = CreateConversation()
  119. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_pinious/tutorial_island02_evil_revamp/trainers/world_interaction/capt_pinious015.mp3", "", "", 1253051107, 1099351530, Spawn)
  120. AddConversationOption(conversation, "What are some common things I can do with items?", "CommonThings")
  121. 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.")
  122. end
  123. function CommonThings(NPC, Spawn)
  124. conversation = CreateConversation()
  125. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_pinious/tutorial_island02_evil_revamp/trainers/world_interaction/capt_pinious016.mp3", "", "", 3814807765, 2564531807, Spawn)
  126. AddConversationOption(conversation, "What about other types of items?", "TypesOfItems")
  127. 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 note, you can read it. If it's food or drink, you can consume it. Some items, such as furniture, can be placed while you're inside your house or apartment.")
  128. end
  129. function TypesOfItems(NPC, Spawn)
  130. conversation = CreateConversation()
  131. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_pinious/tutorial_island02_evil_revamp/trainers/world_interaction/capt_pinious017.mp3", "", "", 1882449239, 3035449116, Spawn)
  132. AddConversationOption(conversation, "In what ways can I interact with other player characters?", "WaysToInteract")
  133. AddConversationOption(conversation, "How do I interact with non-player characters?", "NPCInteract")
  134. AddConversationOption(conversation, "How can I interact with objects in the world?", "ObjectInteract")
  135. AddConversationOption(conversation, "I'll return for instruction later.")
  136. 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're carrying.")
  137. end
  138. function CharlesArker(NPC, Spawn)
  139. SetStepComplete(Spawn, 54, 4)
  140. FaceTarget(NPC, Spawn)
  141. conversation = CreateConversation()
  142. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/captain_pinious/tutorial_island02_evil_revamp/trainers/world_interaction/capt_pinious018.mp3", "", "", 1766847422, 3271708837, Spawn)
  143. AddConversationOption(conversation, "Thanks anyway, Captain.")
  144. StartConversation(conversation, NPC, Spawn, "I've met many great heroes of the Overlord since arriving at the outpost, but I can't recall anyone by that name.")
  145. end