TrainerChalciceZZylZarin.lua 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. --[[
  2. Script Name : SpawnScripts/Darklight/TrainerChalciceZZylZarin.lua
  3. Script Purpose : Trainer Chalcice Z'Zyl'Zarin <Knowledge of Repairs and Banking>
  4. Script Author : John Adams
  5. Script Date : 2009.01.31
  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. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1047.mp3", "", "", 0, 0, Spawn)
  22. AddConversationOption(conversation, "Tell me about banking.", "dlg_3_1")
  23. AddConversationOption(conversation, "Tell me about mending items.")
  24. AddConversationOption(conversation, "I'll return for training later.")
  25. StartConversation(conversation, NPC, Spawn, "I can explain the finer points of banking and mending to you if you like. Would you care to hear about either?")
  26. if convo==8 then
  27. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1047.mp3", "", "", 0, 0, Spawn)
  28. AddConversationOption(conversation, "Tell me about banking.", "dlg_8_1")
  29. AddConversationOption(conversation, "Tell me about mending items.")
  30. AddConversationOption(conversation, "I'll return for training later.")
  31. StartConversation(conversation, NPC, Spawn, "I can explain the finer points of banking and mending to you if you like. Would you care to hear about either?")
  32. end
  33. end
  34. function dlg_3_1(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. conversation = CreateConversation()
  37. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  38. AddConversationOption(conversation, "How do I open my bank?", "dlg_3_2")
  39. StartConversation(conversation, NPC, Spawn, "You may already have an account set up. Go see Gultrin Y'Oussiryn to access your account. You can access your bank account from cities allied with Neriak as well.")
  40. end
  41. function dlg_3_2(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. conversation = CreateConversation()
  44. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  45. AddConversationOption(conversation, "How do I make deposits and withdrawals?", "dlg_3_3")
  46. AddConversationOption(conversation, "I'll return for training later.")
  47. StartConversation(conversation, NPC, Spawn, "Inside the bank, your mouse pointer will turn into a dial icon when hovered over a banker. Just click on the banker to open your bank window. You'll see twelve general slots and eight 'shared' slots. You can put bags or containers in your bank to increase the number of available slots.")
  48. end
  49. function dlg_3_3(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. conversation = CreateConversation()
  52. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  53. AddConversationOption(conversation, "What are 'shared' bank slots?", "dlg_3_4")
  54. StartConversation(conversation, NPC, Spawn, "Coins and items can be dragged from your inventory to the bank window. To drag one item from a stack, hold down the Ctrl key as you drag it. To drag a certain number of coins or items, hold down the Shift key and drag, then enter the quantity.")
  55. end
  56. function dlg_3_4(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. conversation = CreateConversation()
  59. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  60. AddConversationOption(conversation, "Any other banking facts I should know?", "dlg_3_5")
  61. StartConversation(conversation, NPC, Spawn, "Items (but not coin) placed in your shared slots can be accessed by other characters on your account that are of the same alignment. Lore and No-Trade items cannot be put into the shared slots.")
  62. end
  63. function dlg_3_5(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. conversation = CreateConversation()
  66. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  67. AddConversationOption(conversation, "I want to learn about mending items.", "dlg_3_6")
  68. AddConversationOption(conversation, "I'll return for training later.")
  69. StartConversation(conversation, NPC, Spawn, "If you choose to join a guild made up of your fellow players one day, you can access your guild bank by right-clicking on a banker and selecting 'Guild Bank.'")
  70. end
  71. function dlg_3_6(NPC, Spawn)
  72. FaceTarget(NPC, Spawn)
  73. conversation = CreateConversation()
  74. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  75. AddConversationOption(conversation, "Tell me about banking.", "dlg_3_7")
  76. AddConversationOption(conversation, "I'll return for training later.")
  77. StartConversation(conversation, NPC, Spawn, "Your weapons and armor wear down when you die during combat. When they are down to zero durability, you no longer receive any benefit from them. You can visit a mender to get them repaired.")
  78. end
  79. function dlg_8_1(NPC, Spawn)
  80. FaceTarget(NPC, Spawn)
  81. conversation = CreateConversation()
  82. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  83. AddConversationOption(conversation, "How do I open my bank?", "dlg_8_2")
  84. StartConversation(conversation, NPC, Spawn, "You may already have an account set up. Go see Gultrin Y'Oussiryn to access your account. You can access your bank account from cities allied with Neriak as well.")
  85. end
  86. function dlg_8_2(NPC, Spawn)
  87. FaceTarget(NPC, Spawn)
  88. conversation = CreateConversation()
  89. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  90. AddConversationOption(conversation, "How do I make deposits and withdrawals?", "dlg_8_3")
  91. AddConversationOption(conversation, "I'll return for training later.")
  92. StartConversation(conversation, NPC, Spawn, "Inside the bank, your mouse pointer will turn into a dial icon when hovered over a banker. Just click on the banker to open your bank window. You'll see twelve general slots and eight 'shared' slots. You can put bags or containers in your bank to increase the number of available slots.")
  93. end
  94. function dlg_8_3(NPC, Spawn)
  95. FaceTarget(NPC, Spawn)
  96. conversation = CreateConversation()
  97. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  98. AddConversationOption(conversation, "What are 'shared' bank slots?", "dlg_8_4")
  99. StartConversation(conversation, NPC, Spawn, "Coins and items can be dragged from your inventory to the bank window. To drag one item from a stack, hold down the Ctrl key as you drag it. To drag a certain number of coins or items, hold down the Shift key and drag, then enter the quantity.")
  100. end
  101. function dlg_8_4(NPC, Spawn)
  102. FaceTarget(NPC, Spawn)
  103. conversation = CreateConversation()
  104. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  105. AddConversationOption(conversation, "Any other banking facts I should know?", "dlg_8_5")
  106. StartConversation(conversation, NPC, Spawn, "Items (but not coin) placed in your shared slots can be accessed by other characters on your account that are of the same alignment. Lore and No-Trade items cannot be put into the shared slots.")
  107. end
  108. function dlg_8_5(NPC, Spawn)
  109. FaceTarget(NPC, Spawn)
  110. conversation = CreateConversation()
  111. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  112. AddConversationOption(conversation, "I want to learn about mending items.", "dlg_8_6")
  113. AddConversationOption(conversation, "I'll return for training later.")
  114. StartConversation(conversation, NPC, Spawn, "If you choose to join a guild made up of your fellow players one day, you can access your guild bank by right-clicking on a banker and selecting 'Guild Bank.'")
  115. end
  116. function dlg_8_6(NPC, Spawn)
  117. FaceTarget(NPC, Spawn)
  118. conversation = CreateConversation()
  119. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  120. AddConversationOption(conversation, "Tell me about banking.", "dlg_8_7")
  121. AddConversationOption(conversation, "I'll return for training later.")
  122. StartConversation(conversation, NPC, Spawn, "Your weapons and armor wear down when you die during combat. When they are down to zero durability, you no longer receive any benefit from them. You can visit a mender to get them repaired.")
  123. end