SorcererOofala.lua 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. --[[
  2. Script Name : SorcererOofala script
  3. Script Purpose : Quest, Conversations.
  4. Script Author : Unknown, premierio015
  5. Script Date : 2020.04.11
  6. Script Notes :
  7. Modified Date : 2020.04.10
  8. Modiefied by : premierio015 & Dorbin
  9. Modified Notes : Added missing VoiceOvers and Anims
  10. These are just suggested functions to get you started. Edit as needed.
  11. --]]
  12. local TheSourceOfEvil = 164
  13. function spawn(NPC)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. if HasCompletedQuest(Spawn, TheSourceOfEvil) then
  22. StavesHere(NPC, Spawn)
  23. elseif HasQuest(Spawn, TheSourceOfEvil) then
  24. if GetQuestStep(Spawn, TheSourceOfEvil) == 1 then
  25. LoveThisJob(NPC, Spawn)
  26. elseif GetQuestStep(Spawn, TheSourceOfEvil) == 2 then
  27. KeepLooking(NPC, Spawn)
  28. elseif GetQuestStep(Spawn, TheSourceOfEvil) == 3 then
  29. CausedAnUproar(NPC, Spawn)
  30. elseif GetQuestStep(Spawn, TheSourceOfEvil) == 4 then
  31. INeedToStayBack(NPC, Spawn)
  32. elseif GetQuestStep(Spawn, TheSourceOfEvil) == 5 then
  33. WhatAFight(NPC, Spawn)
  34. else
  35. StavesHere(NPC, Spawn)
  36. end
  37. else
  38. NoAssignments(NPC, Spawn)
  39. end
  40. end
  41. function NoAssignments(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. conversation = CreateConversation()
  44. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala012.mp3", "", "no", 643282183, 3968003647, Spawn)
  45. AddConversationOption(conversation, "Very well.")
  46. StartConversation(conversation, NPC, Spawn, "I do not have any assignments for you right now. Speak with Murrar Shar outside of Myrrin's Tower at the center of the colony. He should have some work for you.")
  47. end
  48. ---------------------------------------------------------------------------------------------------------------------
  49. -- QUEST 5
  50. ---------------------------------------------------------------------------------------------------------------------
  51. function LoveThisJob(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. conversation = CreateConversation()
  54. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala001.mp3", "", "chuckle", 3877143308, 4000536977, Spawn)
  55. AddConversationOption(conversation, "Great like you I guess.", "GreatLikeYou")
  56. AddConversationOption(conversation, "I don't have time for this.")
  57. StartConversation(conversation, NPC, Spawn, "Boom! I love this job! Someday I'll be the greatest wizard in all of Qeynos. And you, " .. GetName(Spawn) .. ", what do you aspire to be?")
  58. end
  59. function GreatLikeYou(NPC, Spawn)
  60. FaceTarget(NPC, Spawn)
  61. conversation = CreateConversation()
  62. -- display a different message is the player is an Erudite (3)
  63. if GetRace(Spawn) == 3 then
  64. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala003.mp3", "", "ponder", 2241109918, 2606755898, Spawn)
  65. AddConversationOption(conversation, "I'm all ears.", "YouNeedMyHelp")
  66. StartConversation(conversation, NPC, Spawn, "It is possible. I would never doubt a fellow Erudite's journey to greatness. Well let's start now, I can use your help.")
  67. else
  68. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala002.mp3", "", "ponder", 4176331969, 1953264521, Spawn)
  69. AddConversationOption(conversation, "You need my help?", "YouNeedMyHelp")
  70. StartConversation(conversation, NPC, Spawn, "It is possible, but unlikely. I've got the edge of course, being an Erudite. But let's put that behind us, since I suppose I need your help.")
  71. end
  72. end
  73. function YouNeedMyHelp(NPC, Spawn)
  74. FaceTarget(NPC, Spawn)
  75. conversation = CreateConversation()
  76. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala004.mp3", "", "sigh", 2866793980, 3810777786, Spawn)
  77. AddConversationOption(conversation, "Go on.", "GoOn")
  78. StartConversation(conversation, NPC, Spawn, "Well I need to stay here and guard the camp, but I need you to venture into the Abandoned Village. The goblins have revealed some disturbing news. A few survived and made it into our camp here, but the rest were consumed by a mysterious fog.")
  79. end
  80. function GoOn(NPC, Spawn)
  81. FaceTarget(NPC, Spawn)
  82. conversation = CreateConversation()
  83. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala005.mp3", "", "nod", 973060911, 209786157, Spawn)
  84. AddConversationOption(conversation, "So you want me to destroy these totems?", "DestroyTotems")
  85. AddConversationOption(conversation, "I can't do that right now.")
  86. StartConversation(conversation, NPC, Spawn, "Apparently some mysterious totems appeared throughout the village and spewed a fog that enveloped it. It appears that only a few survived, and the rest were turned into... the living dead.")
  87. end
  88. function DestroyTotems(NPC, Spawn)
  89. SetStepComplete(Spawn, TheSourceOfEvil, 1)
  90. FaceTarget(NPC, Spawn)
  91. conversation = CreateConversation()
  92. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala006.mp3", "", "nod", 4222023563, 856617808, Spawn)
  93. AddConversationOption(conversation, "I will hunt the totems.")
  94. StartConversation(conversation, NPC, Spawn, "Exactly. Clear them away from the village and maybe it will help lead us to the source of the evil.")
  95. end
  96. function KeepLooking(NPC, Spawn)
  97. FaceTarget(NPC, Spawn)
  98. conversation = CreateConversation()
  99. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala007.mp3", "", "point", 3408827694, 4109110029, Spawn)
  100. AddConversationOption(conversation, "I'll keep looking.")
  101. StartConversation(conversation, NPC, Spawn, "Keep looking for those totems. They should be on the outskirts of the Sapswill tents.")
  102. end
  103. function CausedAnUproar(NPC, Spawn)
  104. FaceTarget(NPC, Spawn)
  105. conversation = CreateConversation()
  106. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala008.mp3", "", "nod", 4250133850, 1269094283, Spawn)
  107. AddConversationOption(conversation, "By me? Aren't you the great wizard?", "GreatWizard")
  108. StartConversation(conversation, NPC, Spawn, "Wow, you really caused an uproar! Removing those totems must have angered whatever sinister force is behind all this. An evil champion has shown his face and must be dealt with. The Dark Blademaster must be defeated!")
  109. end
  110. function GreatWizard(NPC, Spawn)
  111. SetStepComplete(Spawn, TheSourceOfEvil, 3)
  112. FaceTarget(NPC, Spawn)
  113. conversation = CreateConversation()
  114. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala014.mp3", "", "shrug", 767847484, 3041386379, Spawn)
  115. AddConversationOption(conversation, "I guess I'll take care of it.")
  116. StartConversation(conversation, NPC, Spawn, "Well, if Murrar had sent me to take out the Blademaster, it would be done already. My orders are to protect the camp here, at which I am doing a superb job. Enough debate. Destroy the Blademaster!")
  117. end
  118. function INeedToStayBack(NPC, Spawn)
  119. FaceTarget(NPC, Spawn)
  120. conversation = CreateConversation()
  121. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala009.mp3", "", "scold", 1026592002, 1487748487, Spawn)
  122. AddConversationOption(conversation, "Sheesh!")
  123. StartConversation(conversation, NPC, Spawn, "I need to stay back and guard the camp. Get rid of the Dark Blademaster!")
  124. end
  125. function WhatAFight(NPC, Spawn)
  126. FaceTarget(NPC, Spawn)
  127. conversation = CreateConversation()
  128. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala010.mp3", "", "nod", 1430233881, 2273383755, Spawn)
  129. AddConversationOption(conversation, "Should I report back to Murrar?", "ReportBack")
  130. AddConversationOption(conversation, "Not right now.")
  131. StartConversation(conversation, NPC, Spawn, "What a fight that was! For a moment there, I thought I would need to step in and help you. The Blademaster's insignia is very disturbing. I should have known Freeport was involved in this corruption somehow! We must act quickly if we are to stop the evil.")
  132. end
  133. function ReportBack(NPC, Spawn)
  134. SetStepComplete(Spawn, TheSourceOfEvil, 5)
  135. FaceTarget(NPC, Spawn)
  136. conversation = CreateConversation()
  137. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala013.mp3", "", "frustrated", 911037523, 2792380927, Spawn)
  138. AddConversationOption(conversation, "I'll head to the High Chieftain.")
  139. StartConversation(conversation, NPC, Spawn, "There's no time! Our forward scouts report that High Chieftain Grexx is still alive and holding off the invasion from his tree house to the east. You must go talk to him before it's too late!")
  140. end
  141. function StavesHere(NPC, Spawn)
  142. FaceTarget(NPC, Spawn)
  143. conversation = CreateConversation()
  144. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala011.mp3", "", "nod", 2191225450, 1589931900, Spawn)
  145. AddConversationOption(conversation, "I'll keep that in mind.")
  146. StartConversation(conversation, NPC, Spawn, "If you ever need them, my guardian staves will be here.")
  147. end
  148. --[[ raw_conversations
  149. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quest/citizenship_sorcerer_oofala_staffkill_5b312f60.mp3", "Ha! Did you see that?", "chuckle", 3419630960, 667923165, Spawn)
  150. --]]