CharlesArker.lua 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. --[[
  2. Script Name : SpawnScripts/OutpostOverlord/CharlesArker.lua
  3. Script Author : Cynnar
  4. Script Date : 2018.10.14 07:10:58
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn (NPC)
  9. end
  10. function respawn (NPC)
  11. spawn(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. local conversation = CreateConversation()
  16. if HasQuest (Spawn, InTheNameOfPrestige) == 4 then
  17. -- handing the quest
  18. SetStepComplete(Spawn, InTheNameOfPrestige, 4)
  19. else
  20. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/charles_arker/tutorial_island02_evil_revamp/quests/quest_charles_arker/charles_arker001.mp3", "", "nod", 2051119928, 4163051805, Spawn)
  21. AddConversationOption(conversation, "I don't talk to strangers.")
  22. AddConversationOption(conversation, "I'm not a recruit. I volunteered.", "Option1")
  23. StartConversation(conversation, NPC, Spawn, "You're that new recruit I keep hearing about. " .. GetName(Spawn) .. " , isn't it?")
  24. AddConversationOption(conversation, "Not all of them.")
  25. AddConversationOption(conversation, "Yes. This is the message I've managed to put together.", "dlg_1_2")
  26. StartConversation(conversation, NPC, Spawn, "Have you found more of the missing pieces?")
  27. end
  28. function dlg_1_2(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. local conversation = CreateConversation()
  31. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/charles_arker/tutorial_island02_evil_revamp/quests/quest_charles_arker/charles_arker002.mp3", "", "", 1779982844, 2478664547, Spawn)
  32. AddConversationOption(conversation, "Not really.")
  33. AddConversationOption(conversation, "What kind of help do you need?", "dlg_1_3")
  34. StartConversation(conversation, NPC, Spawn, "Your reputation precedes you -- as will mine, someday soon. When I return to Freeport, my prestige will bring honor to my family. I came here to make a name for myself, but it's been difficult to stand out in the crowd. I have a new assignment and it's puzzling me. Would you help me unravel it?")
  35. end
  36. function dlg_1_3(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. local conversation = CreateConversation()
  39. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/charles_arker/tutorial_island02_evil_revamp/quests/quest_charles_arker/charles_arker003.mp3", "", "", 435953835, 2242560449, Spawn)
  40. AddConversationOption(conversation, "Certainly.", "questoffer")
  41. StartConversation(conversation, NPC, Spawn, "There's a lot of undercover work here, which means even if you do well, the higher-ups may not know it's you doing the work. Some of my best work was claimed by someone else and I mean to fix that. Not long ago, I intercepted part of a note one of the Tunarian spies was delivering. They've hidden the remaining pieces. We need to get them all back to learn more of what they're doing.")
  42. end
  43. function dlg_1_4(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. local conversation = CreateConversation()
  46. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/charles_arker/tutorial_island02_evil_revamp/quests/quest_charles_arker/charles_arker004.mp3", "", "", 1870656524, 1643000002, Spawn)
  47. AddConversationOption(conversation, "I'll see what I can find out.", "dlg_1_5")
  48. StartConversation(conversation, NPC, Spawn, "I appreciate it, " .. GetName(Spawn) .. " Whatever glory comes of this, we'll share in the credit. I'm sure this will more than make up for the work I've done that others have taken credit for.")
  49. end
  50. function dlg_1_5(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. local conversation = CreateConversation()
  53. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/charles_arker/tutorial_island02_evil_revamp/quests/quest_charles_arker/charles_arker021.mp3", "", "", 1916109124, 3504506765, Spawn)
  54. AddConversationOption(conversation, "I'll keep that in mind.")
  55. StartConversation(conversation, NPC, Spawn, "A word of warning: be wary of those wood elves. They're more cunning than others may realize.")
  56. end
  57. function Option2(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. local conversation = CreateConversation()
  60. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/charles_arker/tutorial_island02_evil_revamp/quests/quest_charles_arker/charles_arker006.mp3", "", "", 2475145114, 3569833047, Spawn)
  61. AddConversationOption(conversation, "Not at the moment.")
  62. StartConversation(conversation, NPC, Spawn, "The Tunarian note is still incomplete, but this may be enough to advance our prestige, " .. GetName(Spawn) .. ". You know, you're very good at this kind of thing. Tell me, would you be interested in helping me on a more personal level?")
  63. end
  64. function questoffer(NPC, Spawn)
  65. -- Gives a quest after some chat (dlg_1_1>dlg_1_2>dlg_1_3)
  66. FaceTarget(NPC, Spawn)
  67. OfferQuest(NPC, Spawn, 489)
  68. end