9
3

GarSmolten.lua 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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 hailed(NPC, Spawn)
  10. FaceTarget(NPC, Spawn)
  11. conversation = CreateConversation()
  12. if HasCompletedQuest(Spawn, HALF_ELF_MENTOR_QUEST_1) then
  13. 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)
  14. elseif HasQuest(Spawn, HALF_ELF_MENTOR_QUEST_1) then
  15. OnHalfElfMentorQuest1(NPC, Spawn, conversation)
  16. else
  17. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/gar_smolten/qey_village05/quests/gar_smolten/gar_smolten001.mp3", "", "", 3482344295, 1155597509, Spawn)
  18. AddConversationOption(conversation, "Nothing, I'm sorry to bother you.")
  19. StartConversation(conversation, NPC, Spawn, "What do ya want?")
  20. end
  21. end
  22. --------------------------------------------------------------------------------------------------------------
  23. -- HALF ELF MENTOR QUEST 1
  24. ---------------------------------------------------------------------------------------------------------------
  25. function OnHalfElfMentorQuest1(NPC, Spawn, conversation)
  26. if GetQuestStep(Spawn, HALF_ELF_MENTOR_QUEST_1) == 1 then
  27. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/gar_smolten/qey_village05/quests/gar_smolten/gar_smolten001.mp3", "", "", 3482344295, 1155597509, Spawn)
  28. AddConversationOption(conversation, "I'd like to offer you some assistance.", "dlg_2_1")
  29. AddConversationOption(conversation, "Nothing, I'm sorry to bother you.")
  30. StartConversation(conversation, NPC, Spawn, "What do ya want?")
  31. elseif GetQuestStep(Spawn, HALF_ELF_MENTOR_QUEST_1) == 2 then
  32. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/gar_smolten/qey_village05/quests/gar_smolten/gar_smolten004.mp3", "", "", 684684730, 866858376, Spawn)
  33. AddConversationOption(conversation, "I know the contents of each box.", "dlg_3_1")
  34. AddConversationOption(conversation, "I'm not done yet.")
  35. StartConversation(conversation, NPC, Spawn, "Well?")
  36. else
  37. 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)
  38. end
  39. end
  40. function dlg_2_1(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. conversation = CreateConversation()
  43. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/gar_smolten/qey_village05/quests/gar_smolten/gar_smolten002.mp3", "", "", 43899483, 1170171752, Spawn)
  44. AddConversationOption(conversation, "I don't need coin, I just noticed you were busy and thought I would be helpful.", "dlg_2_2")
  45. AddConversationOption(conversation, "I'm sorry I offered.")
  46. 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?")
  47. end
  48. function dlg_2_2(NPC, Spawn)
  49. SetStepComplete(Spawn, HALF_ELF_MENTOR_QUEST_1, 1)
  50. FaceTarget(NPC, Spawn)
  51. conversation = CreateConversation()
  52. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/gar_smolten/qey_village05/quests/gar_smolten/gar_smolten003.mp3", "", "", 1809808588, 687928372, Spawn)
  53. AddConversationOption(conversation, "I can do that.", "dlg_2_3")
  54. 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.")
  55. end
  56. function dlg_3_1(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. conversation = CreateConversation()
  59. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/gar_smolten/qey_village05/quests/gar_smolten/gar_smolten004a.mp3", "", "", 1939176087, 251588396, Spawn)
  60. AddConversationOption(conversation, "Carving wood.")
  61. AddConversationOption(conversation, "Clay figures.", "dlg_3_2")
  62. AddConversationOption(conversation, "Bottles.")
  63. AddConversationOption(conversation, "Raisins & dried apricots.")
  64. AddConversationOption(conversation, "Herbs")
  65. StartConversation(conversation, NPC, Spawn, "All right. What is in the box marked carving wood?")
  66. end
  67. function dlg_3_2(NPC, Spawn)
  68. FaceTarget(NPC, Spawn)
  69. conversation = CreateConversation()
  70. AddConversationOption(conversation, "Carving wood.")
  71. AddConversationOption(conversation, "Clay figures.")
  72. AddConversationOption(conversation, "Bottles.")
  73. AddConversationOption(conversation, "Raisins & dried apricots.", "dlg_3_3")
  74. AddConversationOption(conversation, "Herbs")
  75. StartConversation(conversation, NPC, Spawn, "Ok. And what was in the box marked clay figures?")
  76. end
  77. function dlg_3_3(NPC, Spawn)
  78. FaceTarget(NPC, Spawn)
  79. conversation = CreateConversation()
  80. AddConversationOption(conversation, "Carving wood.", "dlg_3_4")
  81. AddConversationOption(conversation, "Clay figures.")
  82. AddConversationOption(conversation, "Bottles.")
  83. AddConversationOption(conversation, "Raisins & dried apricots.")
  84. AddConversationOption(conversation, "Herbs")
  85. StartConversation(conversation, NPC, Spawn, "What about the one marked bottles?")
  86. end
  87. function dlg_3_4(NPC, Spawn)
  88. FaceTarget(NPC, Spawn)
  89. conversation = CreateConversation()
  90. AddConversationOption(conversation, "Carving wood.")
  91. AddConversationOption(conversation, "Clay figures.")
  92. AddConversationOption(conversation, "Bottles.", "dlg_3_5")
  93. AddConversationOption(conversation, "Raisins & dried apricots.")
  94. AddConversationOption(conversation, "Herbs")
  95. StartConversation(conversation, NPC, Spawn, "And the one marked raisins & dried apricots?")
  96. end
  97. function dlg_3_5(NPC, Spawn)
  98. FaceTarget(NPC, Spawn)
  99. conversation = CreateConversation()
  100. AddConversationOption(conversation, "Carving wood.")
  101. AddConversationOption(conversation, "Clay figures.")
  102. AddConversationOption(conversation, "Bottles.")
  103. AddConversationOption(conversation, "Raisins & dried apricots.")
  104. AddConversationOption(conversation, "Herbs", "dlg_3_6")
  105. StartConversation(conversation, NPC, Spawn, "And finally the box marked herbs?")
  106. end
  107. function dlg_3_6(NPC, Spawn)
  108. FaceTarget(NPC, Spawn)
  109. conversation = CreateConversation()
  110. AddConversationOption(conversation, "I'm glad to help.", "GladToHelp")
  111. StartConversation(conversation, NPC, Spawn, "All right. Great this is just the kind of information I needed.")
  112. end
  113. function GladToHelp(NPC, Spawn)
  114. SetStepComplete(Spawn, HALF_ELF_MENTOR_QUEST_1, 2)
  115. FaceTarget(NPC, Spawn)
  116. conversation = CreateConversation()
  117. AddConversationOption(conversation, "You're welcome.")
  118. 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.")
  119. end