9
3

SorcererOofala.lua 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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
  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 prespawn(NPC)
  14. AddSpawnProximity(NPC,2530018,0,15,"InRange","OutRange")
  15. end
  16. function spawn(NPC)
  17. prespawn(NPC)
  18. end
  19. function respawn(NPC)
  20. spawn(NPC)
  21. end
  22. function InRange(NPC,Spawn)
  23. Shout(NPC,"In Range 1")
  24. Shout(Spawn,"Also n Range 2")
  25. end
  26. function OutRange(NPC,Spawn)
  27. Shout(NPC,"Out of Range 1")
  28. Shout(Spawn,"Out of Range 2")
  29. end
  30. function hailed(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. conversation = CreateConversation()
  33. if HasCompletedQuest(Spawn, TheSourceOfEvil) then
  34. StavesHere(NPC, Spawn)
  35. elseif HasQuest(Spawn, TheSourceOfEvil) then
  36. if GetQuestStep(Spawn, TheSourceOfEvil) == 1 then
  37. LoveThisJob(NPC, Spawn)
  38. elseif GetQuestStep(Spawn, TheSourceOfEvil) == 2 then
  39. KeepLooking(NPC, Spawn)
  40. elseif GetQuestStep(Spawn, TheSourceOfEvil) == 3 then
  41. CausedAnUproar(NPC, Spawn)
  42. elseif GetQuestStep(Spawn, TheSourceOfEvil) == 4 then
  43. INeedToStayBack(NPC, Spawn)
  44. elseif GetQuestStep(Spawn, TheSourceOfEvil) == 5 then
  45. WhatAFight(NPC, Spawn)
  46. else
  47. StavesHere(NPC, Spawn)
  48. end
  49. else
  50. NoAssignments(NPC, Spawn)
  51. end
  52. end
  53. function NoAssignments(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. conversation = CreateConversation()
  56. AddConversationOption(conversation, "Very well.")
  57. 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.")
  58. end
  59. ---------------------------------------------------------------------------------------------------------------------
  60. -- QUEST 5
  61. ---------------------------------------------------------------------------------------------------------------------
  62. function LoveThisJob(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. conversation = CreateConversation()
  65. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala001.mp3", "", "chuckle", 3877143308, 4000536977, Spawn)
  66. AddConversationOption(conversation, "Great like you I guess.", "GreatLikeYou")
  67. AddConversationOption(conversation, "I don't have time for this.")
  68. 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?")
  69. end
  70. function GreatLikeYou(NPC, Spawn)
  71. FaceTarget(NPC, Spawn)
  72. conversation = CreateConversation()
  73. -- display a different message is the player is an Erudite (3)
  74. if GetRace(Spawn) == 3 then
  75. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala003.mp3", "", "ponder", 2241109918, 2606755898, Spawn)
  76. AddConversationOption(conversation, "I'm all ears.", "YouNeedMyHelp")
  77. 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.")
  78. else
  79. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala002.mp3", "", "ponder", 4176331969, 1953264521, Spawn)
  80. AddConversationOption(conversation, "You need my help?", "YouNeedMyHelp")
  81. 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.")
  82. end
  83. end
  84. function YouNeedMyHelp(NPC, Spawn)
  85. FaceTarget(NPC, Spawn)
  86. conversation = CreateConversation()
  87. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala004.mp3", "", "sigh", 2866793980, 3810777786, Spawn)
  88. AddConversationOption(conversation, "Go on.", "GoOn")
  89. 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.")
  90. end
  91. function GoOn(NPC, Spawn)
  92. FaceTarget(NPC, Spawn)
  93. conversation = CreateConversation()
  94. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala005.mp3", "", "nod", 973060911, 209786157, Spawn)
  95. AddConversationOption(conversation, "So you want me to destroy these totems?", "DestroyTotems")
  96. AddConversationOption(conversation, "I can't do that right now.")
  97. 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.")
  98. end
  99. function DestroyTotems(NPC, Spawn)
  100. SetStepComplete(Spawn, TheSourceOfEvil, 1)
  101. FaceTarget(NPC, Spawn)
  102. conversation = CreateConversation()
  103. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala006.mp3", "", "nod", 4222023563, 856617808, Spawn)
  104. AddConversationOption(conversation, "I will hunt the totems.")
  105. StartConversation(conversation, NPC, Spawn, "Exactly. Clear them away from the village and maybe it will help lead us to the source of the evil.")
  106. end
  107. function KeepLooking(NPC, Spawn)
  108. FaceTarget(NPC, Spawn)
  109. conversation = CreateConversation()
  110. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala007.mp3", "", "point", 3408827694, 4109110029, Spawn)
  111. AddConversationOption(conversation, "I'll keep looking.")
  112. StartConversation(conversation, NPC, Spawn, "Keep looking for those totems. They should be on the outskirts of the Sapswill tents.")
  113. end
  114. function CausedAnUproar(NPC, Spawn)
  115. FaceTarget(NPC, Spawn)
  116. conversation = CreateConversation()
  117. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala008.mp3", "", "nod", 4250133850, 1269094283, Spawn)
  118. AddConversationOption(conversation, "By me? Aren't you the great wizard?", "GreatWizard")
  119. 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!")
  120. end
  121. function GreatWizard(NPC, Spawn)
  122. SetStepComplete(Spawn, TheSourceOfEvil, 3)
  123. FaceTarget(NPC, Spawn)
  124. conversation = CreateConversation()
  125. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala014.mp3", "", "shrug", 767847484, 3041386379, Spawn)
  126. AddConversationOption(conversation, "I guess I'll take care of it.")
  127. 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!")
  128. end
  129. function INeedToStayBack(NPC, Spawn)
  130. FaceTarget(NPC, Spawn)
  131. conversation = CreateConversation()
  132. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala009.mp3", "", "scold", 1026592002, 1487748487, Spawn)
  133. AddConversationOption(conversation, "Sheesh!")
  134. StartConversation(conversation, NPC, Spawn, "I need to stay back and guard the camp. Get rid of the Dark Blademaster!")
  135. end
  136. function WhatAFight(NPC, Spawn)
  137. FaceTarget(NPC, Spawn)
  138. conversation = CreateConversation()
  139. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala010.mp3", "", "nod", 1430233881, 2273383755, Spawn)
  140. AddConversationOption(conversation, "Should I report back to Murrar?", "ReportBack")
  141. AddConversationOption(conversation, "Not right now.")
  142. 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.")
  143. end
  144. function ReportBack(NPC, Spawn)
  145. SetStepComplete(Spawn, TheSourceOfEvil, 5)
  146. FaceTarget(NPC, Spawn)
  147. conversation = CreateConversation()
  148. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala013.mp3", "", "frustrated", 911037523, 2792380927, Spawn)
  149. AddConversationOption(conversation, "I'll head to the High Chieftain.")
  150. 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!")
  151. end
  152. function StavesHere(NPC, Spawn)
  153. FaceTarget(NPC, Spawn)
  154. conversation = CreateConversation()
  155. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sorcerer_oofala/tutorial_island02_revamp/quests/citizenship/sorcereroofala/sorcereroofala011.mp3", "", "nod", 2191225450, 1589931900, Spawn)
  156. AddConversationOption(conversation, "I'll keep that in mind.")
  157. StartConversation(conversation, NPC, Spawn, "If you ever need them, my guardian staves will be here.")
  158. end
  159. --[[ raw_conversations
  160. 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)
  161. --]]