9
3

GarSmolten.lua 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. --[[
  2. Script Name : SpawnScripts/WillowWood/GarSmolten.lua
  3. Script Purpose : Gar Smolten
  4. Script Author : Scatman
  5. Script Date : 2009.09.20
  6. Script Notes :
  7. --]]
  8. local HALF_ELF_MENTOR_QUEST_1 = 218
  9. function Spawn(NPC)
  10. SetInfoStructString(NPC, "action_state", "tapfoot")
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. conversation = CreateConversation()
  15. if HasCompletedQuest(Spawn, HALF_ELF_MENTOR_QUEST_1) then
  16. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/gar_smolten/qey_village05/qst_gar_complete_b4152fba.mp3", "Hey, thanks again. You should sell your services as stress reduction, hah hah!", "", 3420795836, 3895976815, Spawn)
  17. elseif HasQuest(Spawn, HALF_ELF_MENTOR_QUEST_1) then
  18. OnHalfElfMentorQuest1(NPC, Spawn, conversation)
  19. else
  20. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/gar_smolten/qey_village05/quests/gar_smolten/gar_smolten001.mp3", "", "", 3482344295, 1155597509, Spawn)
  21. AddConversationOption(conversation, "Nothing, I'm sorry to bother you.")
  22. StartConversation(conversation, NPC, Spawn, "What do ya want?")
  23. end
  24. end
  25. --------------------------------------------------------------------------------------------------------------
  26. -- HALF ELF MENTOR QUEST 1
  27. ---------------------------------------------------------------------------------------------------------------
  28. function OnHalfElfMentorQuest1(NPC, Spawn, conversation)
  29. if GetQuestStep(Spawn, HALF_ELF_MENTOR_QUEST_1) == 1 then
  30. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/gar_smolten/qey_village05/quests/gar_smolten/gar_smolten001.mp3", "", "", 3482344295, 1155597509, Spawn)
  31. AddConversationOption(conversation, "I'd like to offer you some assistance.", "dlg_2_1")
  32. AddConversationOption(conversation, "Nothing, I'm sorry to bother you.")
  33. StartConversation(conversation, NPC, Spawn, "What do ya want?")
  34. elseif GetQuestStep(Spawn, HALF_ELF_MENTOR_QUEST_1) == 2 then
  35. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/gar_smolten/qey_village05/quests/gar_smolten/gar_smolten004.mp3", "", "", 684684730, 866858376, Spawn)
  36. AddConversationOption(conversation, "I know the contents of each box.", "dlg_3_1")
  37. AddConversationOption(conversation, "I'm not done yet.")
  38. StartConversation(conversation, NPC, Spawn, "Well?")
  39. else
  40. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/gar_smolten/qey_village05/qst_gar_complete_b4152fba.mp3", "Hey, thanks again. You should sell your services as stress reduction, hah hah!", "", 3420795836, 3895976815, Spawn)
  41. end
  42. end
  43. function dlg_2_1(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. conversation = CreateConversation()
  46. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/gar_smolten/qey_village05/quests/gar_smolten/gar_smolten002.mp3", "", "", 43899483, 1170171752, Spawn)
  47. AddConversationOption(conversation, "I don't need coin, I just noticed you were busy and thought I would be helpful.", "dlg_2_2")
  48. AddConversationOption(conversation, "I'm sorry I offered.")
  49. StartConversation(conversation, NPC, Spawn, "For coin, no doubt. Down on your luck, are ya? That's not surprising. Too proud to ask for a handout, eh?")
  50. end
  51. function dlg_2_2(NPC, Spawn)
  52. SetStepComplete(Spawn, HALF_ELF_MENTOR_QUEST_1, 1)
  53. FaceTarget(NPC, Spawn)
  54. conversation = CreateConversation()
  55. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/gar_smolten/qey_village05/quests/gar_smolten/gar_smolten003.mp3", "", "", 1809808588, 687928372, Spawn)
  56. AddConversationOption(conversation, "I can do that.", "dlg_2_3")
  57. StartConversation(conversation, NPC, Spawn, "Ah, well that's certainly a nice deal on my part. Sure, you can help, but let's not pretend I believe you're that altruistic. Some kids ran by a few minutes ago and changed all the labels on these boxes. Now I have no idea which ones are properly labeled. If you could check each box and let me know if it's properly labeled that would be helpful.")
  58. end
  59. function dlg_3_1(NPC, Spawn)
  60. FaceTarget(NPC, Spawn)
  61. conversation = CreateConversation()
  62. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/gar_smolten/qey_village05/quests/gar_smolten/gar_smolten004a.mp3", "", "", 1939176087, 251588396, Spawn)
  63. AddConversationOption(conversation, "Carving wood.")
  64. AddConversationOption(conversation, "Clay figures.", "dlg_3_2")
  65. AddConversationOption(conversation, "Bottles.")
  66. AddConversationOption(conversation, "Raisins & dried apricots.")
  67. AddConversationOption(conversation, "Herbs")
  68. StartConversation(conversation, NPC, Spawn, "All right. What is in the box marked carving wood?")
  69. end
  70. function dlg_3_2(NPC, Spawn)
  71. FaceTarget(NPC, Spawn)
  72. conversation = CreateConversation()
  73. AddConversationOption(conversation, "Carving wood.")
  74. AddConversationOption(conversation, "Clay figures.")
  75. AddConversationOption(conversation, "Bottles.")
  76. AddConversationOption(conversation, "Raisins & dried apricots.", "dlg_3_3")
  77. AddConversationOption(conversation, "Herbs")
  78. StartConversation(conversation, NPC, Spawn, "Ok. And what was in the box marked clay figures?")
  79. end
  80. function dlg_3_3(NPC, Spawn)
  81. FaceTarget(NPC, Spawn)
  82. conversation = CreateConversation()
  83. AddConversationOption(conversation, "Carving wood.", "dlg_3_4")
  84. AddConversationOption(conversation, "Clay figures.")
  85. AddConversationOption(conversation, "Bottles.")
  86. AddConversationOption(conversation, "Raisins & dried apricots.")
  87. AddConversationOption(conversation, "Herbs")
  88. StartConversation(conversation, NPC, Spawn, "What about the one marked bottles?")
  89. end
  90. function dlg_3_4(NPC, Spawn)
  91. FaceTarget(NPC, Spawn)
  92. conversation = CreateConversation()
  93. AddConversationOption(conversation, "Carving wood.")
  94. AddConversationOption(conversation, "Clay figures.")
  95. AddConversationOption(conversation, "Bottles.", "dlg_3_5")
  96. AddConversationOption(conversation, "Raisins & dried apricots.")
  97. AddConversationOption(conversation, "Herbs")
  98. StartConversation(conversation, NPC, Spawn, "And the one marked raisins & dried apricots?")
  99. end
  100. function dlg_3_5(NPC, Spawn)
  101. FaceTarget(NPC, Spawn)
  102. conversation = CreateConversation()
  103. AddConversationOption(conversation, "Carving wood.")
  104. AddConversationOption(conversation, "Clay figures.")
  105. AddConversationOption(conversation, "Bottles.")
  106. AddConversationOption(conversation, "Raisins & dried apricots.")
  107. AddConversationOption(conversation, "Herbs", "dlg_3_6")
  108. StartConversation(conversation, NPC, Spawn, "And finally the box marked herbs?")
  109. end
  110. function dlg_3_6(NPC, Spawn)
  111. FaceTarget(NPC, Spawn)
  112. conversation = CreateConversation()
  113. AddConversationOption(conversation, "I'm glad to help.", "GladToHelp")
  114. StartConversation(conversation, NPC, Spawn, "All right. Great this is just the kind of information I needed.")
  115. end
  116. function GladToHelp(NPC, Spawn)
  117. SetStepComplete(Spawn, HALF_ELF_MENTOR_QUEST_1, 2)
  118. FaceTarget(NPC, Spawn)
  119. conversation = CreateConversation()
  120. AddConversationOption(conversation, "You're welcome.")
  121. StartConversation(conversation, NPC, Spawn, "Well that's a relief, I was afraid I'd never get around to checking those boxes. You're a quick worker. I'm sorry about snappin' at ya earlier, I get like that from time to time. I was just stressed over those mischievous kids, among other things. Thanks for the help.")
  122. end