9
3

aFieldInvestigator.lua 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. --[[
  2. Script Name : SpawnScripts/OutpostOverlord/aFieldInvestigator.lua
  3. Script Author : premierio015
  4. Script Date : 2020.05.19 10:05:44
  5. Script Purpose : Zherran Tzizzink Investigator dialogue
  6. :
  7. --]]
  8. local TheTunarianPlot = 491
  9. local CheckingOnCharles = 492
  10. function spawn(NPC)
  11. AddSpawnAccess(NPC, NPC)
  12. SetPlayerProximityFunction(NPC, 15, "SpawnAccess", "SpawnAccess")
  13. end
  14. function SpawnAccess(NPC, Spawn)
  15. if HasCompletedQuest(Spawn, TheTunarianPlot) then
  16. AddSpawnAccess(NPC, Spawn)
  17. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/a_field_investigator/tutorial_island02_evil_revamp/quest/quest_zherran_tzizzink_callout_c03cb9c5.mp3", "You! I saw you put something into the fire! Come here!", "beckon", 1912960740, 848089373, Spawn)
  18. end
  19. if HasCompletedQuest(Spawn, CheckingOnCharles) then
  20. RemoveSpawnAccess(NPC, Spawn)
  21. end
  22. end
  23. function hailed(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. local conversation = CreateConversation()
  26. if HasQuest(Spawn, CheckingOnCharles) and GetQuestStep(Spawn, CheckingOnCharles) == 9 then
  27. AddConversationOption(conversation, "Good news: no one has even heard of Charles Arker.", "dlg_04")
  28. end
  29. if HasQuest(Spawn, CheckingOnCharles) then
  30. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/a_field_investigator/tutorial_island02_evil_revamp/quests/quest_zherran_tzizzink/zherran_tzizzink005.mp3", "", "", 2545265170, 1627911122, Spawn)
  31. AddConversationOption(conversation, "Not much.")
  32. StartConversation(conversation, NPC, Spawn, "What have you discovered?")
  33. end
  34. if not HasQuest(Spawn, CheckingOnCharles) and not HasCompletedQuest(Spawn, CheckingOnCharles) then
  35. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/a_field_investigator/tutorial_island02_evil_revamp/quests/quest_zherran_tzizzink/zherran_tzizzink001.mp3", "", "", 365850280, 1133468256, Spawn)
  36. AddConversationOption(conversation, "What are you talking about?", "dlg_01")
  37. AddConversationOption(conversation, "I don't know what you're talking about.")
  38. StartConversation(conversation, NPC, Spawn, "The fire burns hot, hiding all tracesss of what's inssside.")
  39. if HasCompletedQuest(Spawn, CheckingOnCharles) then
  40. PlayFlavor(NPC, "", "", "hello", 0 , 0, Spawn)
  41. end
  42. end
  43. end
  44. function dlg_01(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. local conversation = CreateConversation()
  47. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/a_field_investigator/tutorial_island02_evil_revamp/quests/quest_zherran_tzizzink/zherran_tzizzink002.mp3", "", "", 3815675891, 3542744928, Spawn)
  48. AddConversationOption(conversation, "What of it?", "dlg_02")
  49. StartConversation(conversation, NPC, Spawn, "Just curious. I know you've been ssssseen ssspeaking with Charlesss Arker lately.")
  50. end
  51. function dlg_02(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. local conversation = CreateConversation()
  54. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/a_field_investigator/tutorial_island02_evil_revamp/quests/quest_zherran_tzizzink/zherran_tzizzink003.mp3", "", "", 2101302763, 2956830664, Spawn)
  55. AddConversationOption(conversation, "That depends.", "dlg_03")
  56. StartConversation(conversation, NPC, Spawn, "Defiant, aren't we? Well, ".. GetName(Spawn) .. " -- don't look so surprised, of course I know your name -- there are those who would like more information about Mr. Arker's activites. I am Field Investigator Zherran Tzizzink. Can you help me?")
  57. end
  58. function dlg_03(NPC, Spawn)
  59. FaceTarget(NPC, Spawn)
  60. local conversation = CreateConversation()
  61. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/a_field_investigator/tutorial_island02_evil_revamp/quests/quest_zherran_tzizzink/zherran_tzizzink004.mp3", "", "", 2748771750, 3991197872, Spawn)
  62. AddConversationOption(conversation, "I'll ssee...see what I can do.", "quest")
  63. AddConversationOption(conversation, "I'm not interested.")
  64. StartConversation(conversation, NPC, Spawn, "This task is not too difficult. His fiancee's family would like ssome information. Casually chat up some of the other Freeportians around here to see if any of them say anything. Complete this task and you will be rewarded.")
  65. end
  66. function dlg_04(NPC, Spawn)
  67. FaceTarget(NPC, Spawn)
  68. SetStepComplete(Spawn, CheckingOnCharles, 9)
  69. local conversation = CreateConversation()
  70. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/a_field_investigator/tutorial_island02_evil_revamp/quests/quest_zherran_tzizzink/zherran_tzizzink006.mp3", "", "", 1284325078, 382481848, Spawn)
  71. AddConversationOption(conversation, "Couldn't happen to a nicer guy.")
  72. StartConversation(conversation, NPC, Spawn, "Interesting. Charles had been sending word that he is very popular and renowned for his exploits. Well, I suppose a little bragging beats a little infidelity. The marriage will proceed as planned.")
  73. end
  74. function quest(NPC, Spawn)
  75. FaceTarget(NPC, Spawn)
  76. OfferQuest(NPC, Spawn, CheckingOnCharles)
  77. local conversation = CreateConversation()
  78. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/a_field_investigator/tutorial_island02_evil_revamp/quests/quest_zherran_tzizzink/zherran_tzizzink007.mp3", "", "", 1860903025, 3285043812, Spawn)
  79. AddConversationOption(conversation, "I'll be back.")
  80. StartConversation(conversation, NPC, Spawn, "Exssssss-cellent.")
  81. end
  82. function discover(NPC, Spawn)
  83. FaceTarget(NPC, Spawn)
  84. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/a_field_investigator/tutorial_island02_evil_revamp/quests/quest_zherran_tzizzink/zherran_tzizzink005.mp3", "", "", 2545265170, 1627911122, Spawn)
  85. AddConversationOption(conversation, "Not much.")
  86. StartConversation(conversation, NPC, Spawn, "What have you discovered?")
  87. end
  88. function respawn(NPC)
  89. spawn(NPC)
  90. end