AssassinVamir.lua 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. --[[
  2. Script Name : AssassinVamir.lua
  3. Script Purpose : Handles the spawn script for Assasin Vamir in the Outpost of the Overlord.
  4. Script Author : Scatman (Updated by Cynnar 2018.10.14)
  5. Script Date : 2008.12.28
  6. Script Notes :
  7. --]]
  8. local HawkBait = 8060
  9. local Preventative_Maintenance = 365
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, Preventative_Maintenance)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. conversation = CreateConversation()
  16. if HasQuest(Spawn, 54) and GetQuestStep(Spawn, 54) == 8 then
  17. AddConversationOption(conversation, "Can you tell me about Charles Arker?", "CharlesArker")
  18. end
  19. if HasCompletedQuest(Spawn, Preventative_Maintenance) then
  20. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/assassin_vamir/tutorial_island02_evil_revamp/quests/citizenship/assassinvamir/assassinvamir010.mp3", "", "", 81913167, 2035244707, Spawn)
  21. AddConversationOption(conversation, "I need more mole rats!", "MoreRats")
  22. AddConversationOption(conversation, "Goodbye.")
  23. StartConversation(conversation, NPC, Spawn, "The Tunarians won't have many animals to train because of you. Nice works! Return to me if you ever needs more mole rats.")
  24. elseif HasQuest(Spawn, Preventative_Maintenance) then
  25. if GetQuestStep(Spawn, Preventative_Maintenance) == 1 then
  26. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/assassin_vamir/tutorial_island02_evil_revamp/quests/citizenship/assassinvamir/assassinvamir001.mp3", "", "", 2097737223, 719705804, Spawn)
  27. AddConversationOption(conversation, "And you want me to...?", "WantMeTo")
  28. AddConversationOption(conversation, "I'll come back later.")
  29. StartConversation(conversation, NPC, Spawn, "Hellos " .. GetName(Spawn) .. ", Tayil sent word you were comings. I's been scouting out the nearby areas, trying to get a better feels of what we're up against. Beastmasters these Tunarians are, training the wild animals of the island to fight for them!")
  30. elseif GetQuestStep(Spawn, Preventative_Maintenance) == 2 then
  31. AddConversationOption(conversation, "Okay, I'll be back.")
  32. StartConversation(conversation, NPC, Spawn, "North up the slope into the Wilderwood the bears are, or west in Cliffdiver Canyon. Kills them and return when you are done.")
  33. elseif GetQuestStep(Spawn, Preventative_Maintenance) == 3 then
  34. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/assassin_vamir/tutorial_island02_evil_revamp/quests/citizenship/assassinvamir/assassinvamir005.mp3", "", "", 1066150974, 809725343, Spawn)
  35. AddConversationOption(conversation, "How do I do it?", "HowDoIDoIt")
  36. AddConversationOption(conversation, "I don't have the time right now.")
  37. StartConversation(conversation, NPC, Spawn, "The bears are dead? Good. Nows for a tricky task, so pay attention! The hawks you will now hunt reside high on the cliffs in Cliffdiver Canyon to the west of here. Untils now, we've been unable to get to them.")
  38. elseif GetQuestStep(Spawn, Preventative_Maintenance) == 4 then
  39. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/assassin_vamir/tutorial_island02_evil_revamp/quests/citizenship/assassinvamir/assassinvamir007.mp3", "", "", 4047853205, 3078826387, Spawn)
  40. if not HasItem(Spawn, 10582) then
  41. AddConversationOption(conversation, "I need more mole rats!", "MoreRats")
  42. end
  43. AddConversationOption(conversation, "Okay, I'll keep trying.")
  44. StartConversation(conversation, NPC, Spawn, "Examine and then release the mole rats from your inventory when you thinks you are in a good position to lure down the hawks in Cliffdiver Canyon to the west. Then dispose of the hawks.")
  45. elseif GetQuestStep(Spawn, Preventative_Maintenance) == 5 then
  46. SetStepComplete(Spawn, Preventative_Maintenance, 5)
  47. SummonItem(Player, 1027)
  48. while HasItem(Spawn, HawkBait) do
  49. RemoveItem(Spawn, HawkBait)
  50. end
  51. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/assassin_vamir/tutorial_island02_evil_revamp/quests/citizenship/assassinvamir/assassinvamir009.mp3", "", "", 2286682451, 2625576756, Spawn)
  52. AddConversationOption(conversation, "Thank you.")
  53. StartConversation(conversation, NPC, Spawn, "Excellent job! I think we's done a good job stoppings any new recruits for the Tunarians. Here, this note was just delivered to us. I believe it is from Tayl.")
  54. end
  55. else
  56. AddConversationOption(conversation, "Very well.")
  57. StartConversation(conversation, NPC, Spawn, "I'm not ready for you yet, adventurer. Speak with Tayil N'Velex back at the outpost to prepare yourself for my tasks.")
  58. end
  59. end
  60. function respawn(NPC)
  61. spawn(NPC)
  62. end
  63. function WantMeTo(NPC, Spawn)
  64. conversation = CreateConversation()
  65. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/assassin_vamir/tutorial_island02_evil_revamp/quests/citizenship/assassinvamir/assassinvamir002.mp3", "", "", 1076416759, 1314405932, Spawn)
  66. AddConversationOption(conversation, "Where are these animals?", "WhereAnimals")
  67. StartConversation(conversation, NPC, Spawn, "We's gonna cut off their resources to weaken them in the long terms, settings up our major attack after they are weakened. If we take out their picks of the wild animals, they'll have nothing to train.")
  68. end
  69. function WhereAnimals(NPC, Spawn)
  70. SetStepComplete(Spawn, Preventative_Maintenance, 1)
  71. conversation = CreateConversation()
  72. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/assassin_vamir/tutorial_island02_evil_revamp/quests/citizenship/assassinvamir/assassinvamir003.mp3", "", "", 165936416, 810751258, Spawn)
  73. AddConversationOption(conversation, "The bears are mine!")
  74. StartConversation(conversation, NPC, Spawn, "They trains the bears, hawks, and wolves on the island. The wolves are a bits too deep to touch now, but the bears and hawks are nearby so we starts with those. First, head north up the slope into the Wilderwood or west into Cliffdiver Canyon and lay down some bears. Returns when you are done.")
  75. end
  76. function HowDoIDoIt(NPC, Spawn)
  77. SetStepComplete(Spawn, Preventative_Maintenance, 3)
  78. conversation = CreateConversation()
  79. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/assassin_vamir/tutorial_island02_evil_revamp/quests/citizenship/assassinvamir/assassinvamir006.mp3", "", "", 3805307037, 1537181172, Spawn)
  80. AddConversationOption(conversation, "Dinner is served!")
  81. StartConversation(conversation, NPC, Spawn, "The cliffdiver hawks perch high up and watch for foods to attack below. I's got some food for them right here, hahahaha! Take these mole rats and when you think you are in a good position below the hawks, examine them in your inventory and release one. Return if you needs more.")
  82. end
  83. function MoreRats(NPC, Spawn)
  84. FaceTarget(NPC, Spawn)
  85. conversation = CreateConversation()
  86. -- summon more hawk bait
  87. SummonItem(Spawn, HawkBait)
  88. SummonItem(Spawn, HawkBait)
  89. SummonItem(Spawn, HawkBait)
  90. SummonItem(Spawn, HawkBait)
  91. SummonItem(Spawn, HawkBait)
  92. AddConversationOption(conversation, "Dinner is served!")
  93. StartConversation(conversation, NPC, Spawn, "Here is some more of the little pudgies! Have fun.")
  94. end
  95. function CharlesArker(NPC, Spawn)
  96. SetStepComplete(Spawn, 54, 8)
  97. FaceTarget(NPC, Spawn)
  98. conversation = CreateConversation()
  99. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/assassin_vamir/tutorial_island02_evil_revamp/quests/citizenship/assassinvamir/assassinvamir012.mp3", "", "", 906369529, 2540359356, Spawn)
  100. AddConversationOption(conversation, "Uh...yeah. Thanks for your time.")
  101. StartConversation(conversation, NPC, Spawn, "Is he that guy with the bad comb-over?")
  102. end
  103. --[[
  104. function dlg_5_1(NPC, Spawn)
  105. FaceTarget(NPC, Spawn)
  106. conversation = CreateConversation()
  107. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/assassin_vamir/tutorial_island02_evil_revamp/quests/citizenship/assassinvamir/assassinvamir008.mp3", "", "", 1715782563, 1719955679, Spawn)
  108. AddConversationOption(conversation, "Thanks.")
  109. StartConversation(conversation, NPC, Spawn, "Here is the note.")
  110. end
  111. function dlg_11_1(NPC, Spawn)
  112. FaceTarget(NPC, Spawn)
  113. conversation = CreateConversation()
  114. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  115. AddConversationOption(conversation, "Dinner is served!", "dlg_11_2")
  116. StartConversation(conversation, NPC, Spawn, "Here is some mores of the little pudgies! Have fun.")
  117. end
  118. function dlg_46_1(NPC, Spawn)
  119. FaceTarget(NPC, Spawn)
  120. conversation = CreateConversation()
  121. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/assassin_vamir/tutorial_island02_evil_revamp/quests/citizenship/assassinvamir/assassinvamir010.mp3", "", "", 81913167, 2035244707, Spawn)
  122. AddConversationOption(conversation, "What can you tell me about Charles Arker?", "dlg_46_2")
  123. AddConversationOption(conversation, "I need more mole rats!")
  124. AddConversationOption(conversation, "I need the note Tayil wanted you to give me.")
  125. AddConversationOption(conversation, "Goodbye.")
  126. StartConversation(conversation, NPC, Spawn, "The Tunarians won't have many animals to train because of you. Nice works! Return to me if you ever needs more mole rats.")
  127. end
  128. --]]