9
3

CharlesArkerNook.lua 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. --[[
  2. Script Name : SpawnScripts/OutpostOverlord/CharlesArkerNook.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.05.19 04:05:26
  5. Script Purpose :
  6. :
  7. --]]
  8. local TheTunarianPlot = 491
  9. function spawn(NPC)
  10. AddSpawnAccess(NPC, NPC)
  11. SetPlayerProximityFunction(NPC, 10, "SpawnAccess", "SpawnAccess")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function SpawnAccess(NPC, Spawn)
  17. if GetQuestStep(Spawn, TheTunarianPlot) == 6 then
  18. AddSpawnAccess(NPC, Spawn)
  19. elseif GetQuestStep(Spawn, TheTunarianPlot) == 7 then
  20. RemoveSpawnAccess(NPC, Spawn)
  21. end
  22. end
  23. function hailed(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. local conversation = CreateConversation()
  26. if GetQuestStep(Spawn, TheTunarianPlot) == 7 then
  27. PlayFlavor(NPC, "", "", "hello", 0, 0, Spawn)
  28. else
  29. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/charles_arker/tutorial_island02_evil_revamp/quests/quest_charles_arker/charles_arker015.mp3", "", "beckon", 211277175, 1991489725, Spawn)
  30. AddConversationOption(conversation, "Except for the pieces I gave you earlier.", "dlg_01")
  31. AddConversationOption(conversation, "I don't know what you mean.")
  32. StartConversation(conversation, NPC, Spawn, "That note...do you have all of it?")
  33. end
  34. end
  35. function dlg_01(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. local conversation = CreateConversation()
  38. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/charles_arker/tutorial_island02_evil_revamp/quests/quest_charles_arker/charles_arker016.mp3", "", "", 3260893813, 1611040301, Spawn)
  39. AddConversationOption(conversation, "Aha! So you killed her.", "dlg_02")
  40. StartConversation(conversation, NPC, Spawn, "Good. I wrote this note -- that's probably what puzzled you. It contained a hidden message to Laena. I was...planning to meet her secretly.Then I realized how foolish that would be,but I had already sent her the note.")
  41. end
  42. function dlg_02(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. local conversation = CreateConversation()
  45. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/charles_arker/tutorial_island02_evil_revamp/quests/quest_charles_arker/charles_arker017.mp3", "", "no", 3523349076, 951813783, Spawn)
  46. AddConversationOption(conversation, "So you killed him?", "dlg_03")
  47. StartConversation(conversation, NPC, Spawn, "By the Overlord, no! I waited for her here, as pre-arranged. She did not come and next thing you know, one of the other men gave me part of the note and told me to investigate the Tunarians. I couldn't tell if he knew my secret or not.")
  48. end
  49. function dlg_03(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. local conversation = CreateConversation()
  52. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/charles_arker/tutorial_island02_evil_revamp/quests/quest_charles_arker/charles_arker018.mp3", "", "frustrated", 1033892853, 1591130234, Spawn)
  53. AddConversationOption(conversation, "Then who killed Laena?", "dlg_04")
  54. StartConversation(conversation, NPC, Spawn, "What is it with you and killing? No! I was grateful for the chance to find the rest of my note and destroy it before anyone else realized I had signed it! I thought Laena might still have the rest of it...and you proved that she at least had some of it still.")
  55. end
  56. function dlg_04(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. SetStepComplete(Spawn, TheTunarianPlot, 6)
  59. local conversation = CreateConversation()
  60. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/charles_arker/tutorial_island02_evil_revamp/quests/quest_charles_arker/charles_arker019.mp3", "", "", 3736842700, 1947055506, Spawn)
  61. AddConversationOption(conversation, "I'll take care of this.")
  62. StartConversation(conversation, NPC, Spawn, "Perhaps a jealous lover, or maybe she was torn apart by the wilderbears. You must keep this secret. My family will never understand the...indiscretion...I showed. Nothing happened between Laena and me, so it's best forgotten. Get rid of these scraps for me. I must go back before I'm missed.")
  63. end