9
3

SirTatters.lua 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. --[[
  2. Script Name : SpawnScripts/EnchantedLands/SirTatters.lua
  3. Script Purpose : Sir Tatters
  4. Script Author : Cynnar
  5. Script Date : 2015.02.24
  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, "", "", "", 0, 0, Spawn)
  22. AddConversationOption(conversation, "What village? ", "dlg_1_1")
  23. AddConversationOption(conversation, "I am not going to get into a conversation with a scarecrow. Farewell. ")
  24. StartConversation(conversation, NPC, Spawn, "Greetings, traveler! As sole defender of this humble village, I welcome you. ")
  25. if convo==2 then
  26. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  27. AddConversationOption(conversation, "Consider the mission a success. ", "dlg_2_1")
  28. AddConversationOption(conversation, "I need to return to the field of battle. Farewell.")
  29. StartConversation(conversation, NPC, Spawn, "You've returned from the wilds and from the horrors of battle! Did you damage the enemy and force them to take note of the far reaching might of this village?")
  30. end
  31. if convo==3 then
  32. PlayFlavor(NPC, "voiceover/english/optional1/sir_tatters/enchanted/sir_tatters008.mp3", "", "", 3671903342, 783233779, Spawn)
  33. AddConversationOption(conversation, "I am off to do my duty.", "dlg_3_1")
  34. StartConversation(conversation, NPC, Spawn, "What! Back already? Will you let evil overrun this land by shirking your duties? Get out there and do what must be done.")
  35. end
  36. if convo==55 then
  37. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  38. AddConversationOption(conversation, "What village? ", "dlg_55_1")
  39. AddConversationOption(conversation, "I am not going to get into a conversation with a scarecrow. Farewell. ")
  40. StartConversation(conversation, NPC, Spawn, "Greetings, traveler! As sole defender of this humble village, I welcome you. ")
  41. end
  42. if convo==56 then
  43. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  44. AddConversationOption(conversation, "What village? ", "dlg_56_1")
  45. AddConversationOption(conversation, "I am not going to get into a conversation with a scarecrow. Farewell. ")
  46. StartConversation(conversation, NPC, Spawn, "Greetings, traveler! As sole defender of this humble village, I welcome you. ")
  47. end
  48. if convo==57 then
  49. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  50. AddConversationOption(conversation, "What village? ", "dlg_57_1")
  51. AddConversationOption(conversation, "I am not going to get into a conversation with a scarecrow. Farewell. ")
  52. StartConversation(conversation, NPC, Spawn, "Greetings, traveler! As sole defender of this humble village, I welcome you. ")
  53. end
  54. if convo==58 then
  55. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  56. AddConversationOption(conversation, "What village? ", "dlg_58_1")
  57. AddConversationOption(conversation, "I am not going to get into a conversation with a scarecrow. Farewell. ")
  58. StartConversation(conversation, NPC, Spawn, "Greetings, traveler! As sole defender of this humble village, I welcome you. ")
  59. end
  60. if convo==59 then
  61. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  62. AddConversationOption(conversation, "What village? ", "dlg_59_1")
  63. AddConversationOption(conversation, "I am not going to get into a conversation with a scarecrow. Farewell. ")
  64. StartConversation(conversation, NPC, Spawn, "Greetings, traveler! As sole defender of this humble village, I welcome you. ")
  65. end
  66. if convo==60 then
  67. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  68. AddConversationOption(conversation, "What village? ", "dlg_60_1")
  69. AddConversationOption(conversation, "I am not going to get into a conversation with a scarecrow. Farewell. ")
  70. StartConversation(conversation, NPC, Spawn, "Greetings, traveler! As sole defender of this humble village, I welcome you. ")
  71. end
  72. if convo==61 then
  73. PlayFlavor(NPC, "voiceover/english/optional1/sir_tatters/enchanted/sir_tatters008.mp3", "", "", 3671903342, 783233779, Spawn)
  74. AddConversationOption(conversation, "I am off to do my duty.", "dlg_61_1")
  75. StartConversation(conversation, NPC, Spawn, "What! Back already? Will you let evil overrun this land by shirking your duties? Get out there and do what must be done.")
  76. end
  77. end
  78. function dlg_1_1(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. conversation = CreateConversation()
  81. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  82. AddConversationOption(conversation, "Can I help?", "dlg_1_2")
  83. AddConversationOption(conversation, "I don't talk to delusional scarecrows. Farewell. ")
  84. StartConversation(conversation, NPC, Spawn, "Have you lost your mind to the mists! I admit we are a small village. So many of the meek have fallen prey to the evil denizens, plucked away while I slumbered! I am amazed that you even breached the wall of evil that surrounds us. But you are here now, but have no fear, Sir Tatters will not let this village fall to evil! Never! ")
  85. end
  86. function dlg_1_2(NPC, Spawn)
  87. FaceTarget(NPC, Spawn)
  88. conversation = CreateConversation()
  89. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  90. AddConversationOption(conversation, "How can I help you?", "dlg_1_3")
  91. AddConversationOption(conversation, "I am afraid I can't help just yet. Farewell.")
  92. StartConversation(conversation, NPC, Spawn, "I appreciate the offer, traveler, but the defense of this village is my duty charged to me by the call of the creator. If you seek to help, you can aid me. ")
  93. end
  94. function dlg_1_3(NPC, Spawn)
  95. FaceTarget(NPC, Spawn)
  96. conversation = CreateConversation()
  97. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  98. AddConversationOption(conversation, "I am capable of repelling the enemy. ", "dlg_1_4")
  99. AddConversationOption(conversation, "I cannot quest for you right now. Farewell.")
  100. StartConversation(conversation, NPC, Spawn, "As you can see, there are few people left for me to protect and since the demise of the creator, no one has been around to direct the engineering of new village walls to keep the evil denizens from entering and devouring the remaining populace. ")
  101. end
  102. function dlg_1_4(NPC, Spawn)
  103. FaceTarget(NPC, Spawn)
  104. conversation = CreateConversation()
  105. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  106. AddConversationOption(conversation, "Okay. I will go lessen the threat. ", "dlg_1_5")
  107. AddConversationOption(conversation, "I cannot quest for you right now. Farewell.")
  108. StartConversation(conversation, NPC, Spawn, "I am the chosen defender of the people! The creator did not stuff you full of straw and slap a pumpkin on your neck! No, no, no. I need you to infiltrate the land of our enemy and lessen their threat. That is your duty.")
  109. end
  110. function dlg_1_5(NPC, Spawn)
  111. FaceTarget(NPC, Spawn)
  112. conversation = CreateConversation()
  113. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  114. AddConversationOption(conversation, "Farewell.", "dlg_1_6")
  115. StartConversation(conversation, NPC, Spawn, "That is the spirit. I would do it myself, but to step away from here would be disobeying the creator's orders. No one shall pluck the residents from this village not while Sir Tatters is on watch!")
  116. end
  117. function dlg_2_1(NPC, Spawn)
  118. FaceTarget(NPC, Spawn)
  119. conversation = CreateConversation()
  120. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  121. AddConversationOption(conversation, "What is your command?", "dlg_2_2")
  122. AddConversationOption(conversation, "Forget it. I am not taking orders from a pumpkin on a stick.")
  123. StartConversation(conversation, NPC, Spawn, "Have at thee foul villains! You have served the village well. And your service is still desired. We shall show the enemy what for!")
  124. end
  125. function dlg_2_2(NPC, Spawn)
  126. FaceTarget(NPC, Spawn)
  127. conversation = CreateConversation()
  128. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  129. AddConversationOption(conversation, "What should I do? ", "dlg_2_3")
  130. AddConversationOption(conversation, "I am not ready to venture into goblin country. Farewell.")
  131. StartConversation(conversation, NPC, Spawn, "Deep beyond the great gates and far to the north, rests my faithful squire Rustbucket. I sent him into the heart of goblin country to spy upon the vile fiends who dare to pluck the villagers. Rustbucket has yet to report back. I fear the worst.")
  132. end
  133. function dlg_2_3(NPC, Spawn)
  134. FaceTarget(NPC, Spawn)
  135. conversation = CreateConversation()
  136. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  137. AddConversationOption(conversation, "Does he need my help?", "dlg_2_4")
  138. AddConversationOption(conversation, "I am not ready to venture into goblin country. Farewell.")
  139. StartConversation(conversation, NPC, Spawn, "I sent my squire to infiltrate the goblin base near the brook. The goblins overtook one of the creator's laboratories and it's there that Rustbucket was sent to gather information under the slyest of disguises. ")
  140. end
  141. function dlg_2_4(NPC, Spawn)
  142. FaceTarget(NPC, Spawn)
  143. conversation = CreateConversation()
  144. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  145. AddConversationOption(conversation, "What culprit?", "dlg_2_5")
  146. AddConversationOption(conversation, "I cannot quest for you right now. Farewell.")
  147. StartConversation(conversation, NPC, Spawn, "There is only so much my faithful squire Rustbucket can do. Mute since birth and weak as a jinglejam root, he is not fit enough to survive beyond our border, but you are from the outlands. You can reach him and discover the culprit's name.")
  148. end
  149. function dlg_2_5(NPC, Spawn)
  150. FaceTarget(NPC, Spawn)
  151. conversation = CreateConversation()
  152. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  153. AddConversationOption(conversation, "What did the goblin look like? ", "dlg_2_6")
  154. AddConversationOption(conversation, "I cannot quest for you right now. Farewell.")
  155. StartConversation(conversation, NPC, Spawn, "A goblin infiltrator crept upon the village in my slumber and swiped from me a large clump of my stuffing. I would have cut the villain in two if Squire Rustbucket was not paralyzed with fear. Poor chap was unable to wake me. Blast you, foul burglar!!")
  156. end
  157. function dlg_2_6(NPC, Spawn)
  158. FaceTarget(NPC, Spawn)
  159. conversation = CreateConversation()
  160. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  161. AddConversationOption(conversation, "I'll go speak with Squire Rustbucket.", "dlg_2_7")
  162. StartConversation(conversation, NPC, Spawn, "Did you not hear, traveler? I was in slumber! Squire Rustbucket was sent to discover the name and whereabouts of the burglar. Perhaps you can force the words from Rustbucket. Now stand back! Sir Tatters is on watch! Beware all you evildoers!")
  163. end