9
3

SorcererOofala.lua 9.1 KB

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