CiceroPuer.lua 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. --[[
  2. Script Name : SpawnScripts/SerpentSewer/CiceroPuer.lua
  3. Script Author : premierio015
  4. Script Date : 2020.06.16 02:06:24
  5. Script Purpose :
  6. :
  7. --]]
  8. local MurkwaterUniform = 568
  9. local BackAndForth = 569
  10. function spawn(NPC)
  11. SetPlayerProximityFunction(NPC, 15, "InRange", "LeaveRange", Spawn)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. if not HasQuest(Spawn, MurkwaterUniform) and not HasCompletedQuest(Spawn, MurkwaterUniform) then
  16. conversation = CreateConversation()
  17. PlayFlavor(NPC, "voiceover/english/cicero_puer/fprt_sewer02/ciceropuer001.mp3", "", "", 1054243120, 2058857995, Spawn)
  18. AddConversationOption(conversation, "Help with what?", "DLG_01")
  19. AddConversationOption(conversation, "I'd rather not.")
  20. StartConversation(conversation, NPC, Spawn, "Say, I've never seen you down here before. Perhaps you would help me? Yes, yes?")
  21. elseif HasQuest(Spawn, MurkwaterUniform) then
  22. conversation = CreateConversation()
  23. PlayFlavor(NPC, "voiceover/english/cicero_puer/fprt_sewer02/ciceropuer004.mp3", "", "", 1197336558, 2528909446, Spawn)
  24. AddConversationOption(conversation, "Don't worry, I'm on it.")
  25. StartConversation(conversation, NPC, Spawn, "Why have you come back? I can't do anything until I get those clothes. Hurry up, okay?")
  26. elseif GetQuestStep(Spawn, MurkwaterUniform) == 7 then
  27. conversation = CreateConversation()
  28. PlayFlavor(NPC, "voiceover/english/cicero_puer/fprt_sewer02/ciceropuer003.mp3", "", "", 1619221767, 2009652220, Spawn)
  29. AddConversationOption(conversation, "Enjoy. I know I will.", "DLG_03")
  30. StartConversation(conversation, NPC, Spawn, "Oh, these are nice. Very nice, not much blood either, easy to clean and mend. They won't notice me. I'll blend right in. Here, here take your pay, yes, yes!")
  31. elseif GetQuestStep(Spawn, BackAndForth) == 1 then
  32. PlayFlavor(NPC, "voiceover/english/cicero_puer/fprt_sewer02/ciceropuer009.mp3", "", "", 4089303557, 564249076, Spawn)
  33. AddConversationOption(conversation, "Okay. Okay.")
  34. StartConversation(conversation, NPC, Spawn, "Hey!? Why are you bothering me again? Don't you have a gnome to get rid of?")
  35. elseif GetQuestStep(Spawn, BackAndForth) == 2 then
  36. PlayFlavor(NPC, "voiceover/english/cicero_puer/fprt_sewer02/ciceropuer010.mp3", "", "", 2785075465, 962834238, Spawn)
  37. AddConversationOption(conversation, "Are you trying to double cross me?", "DLG_05")
  38. StartConversation(conversation, NPC, Spawn, "He's dead!? He's dead! Oh this is a good day. Now I do as I promise and tell you where secret place is. First you must take this letter to Tula Mawh. She will let you know where secret place is.")
  39. elseif GetQuestStep(Spawn, BackAndForth) == 4 then
  40. PlayFlavor(NPC, "voiceover/english/cicero_puer/fprt_sewer02/ciceropuer011.mp3", "", "", 1287078860, 595779054, Spawn)
  41. AddConversationOption(conversation, "Where is the Serpent's Lair?", "DLG_06")
  42. StartConversation(conversation, NPC, Spawn, "Don't be mad! I've been expecting you. I'm sorry I had to tricks you like that. I just couldn't give her the letter myself. She said she'd gut me and use my intestines for sausage lining if I ever spoke to her again.")
  43. elseif HasCompletedQuest(Spawn, BackAndForth) then
  44. PlayFlavor(NPC, "voiceover/english/cicero_puer/fprt_sewer02/quests/qst_cicero_puer_cicero_puer_x1_completed_5d529d35.mp3", "You want to know something else?", "", 3223009092, 3169840791, Spawn)
  45. end
  46. end
  47. function DLG_01 (NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. conversation = CreateConversation()
  50. PlayFlavor(NPC, "voiceover/english/cicero_puer/fprt_sewer02/ciceropuer005.mp3", "", "", 3626061103, 4170093704, Spawn)
  51. AddConversationOption(conversation, "Alright.", "Offer")
  52. AddConversationOption(conversation, "Forget it.")
  53. StartConversation(conversation, NPC, Spawn, "Yes, yes indeed! I need a disguise. Don't ask why; I won't tell, but I need the clothes the Murkwaters wear. You will help me, yes, yes? I will pay you good, yes!")
  54. end
  55. function DLG_03(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. conversation = CreateConversation()
  58. PlayFlavor(NPC, "voiceover/english/cicero_puer/fprt_sewer02/ciceropuer008.mp3", "", "", 2535742005, 2630595560, Spawn)
  59. AddConversationOption(conversation, "continue", "DLG_04")
  60. AddConversationOption(conversation, "I've done enough for you.")
  61. StartConversation(conversation, NPC, Spawn, "You helped me out pretty good yes, yes. I'm a little bits in your debt. I tell you what. You help me with one more thing and I tell you where big fight is. Lots of pockets to rummage through for trinkets and coin.")
  62. end
  63. function DLG_04(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. OfferQuest(NPC, Spawn, BackAndForth)
  66. conversation = CreateConversation()
  67. PlayFlavor(NPC, "voiceover/english/cicero_puer/fprt_sewer02/ciceropuer015.mp3", "", "", 12463198, 1073441697, Spawn)
  68. AddConversationOption(conversation, "Yeah I'll do it.")
  69. StartConversation(conversation, NPC, Spawn, "It's a secret place you won't find unless I tell you how. Lots of treasure to be found. What do you say? Just find Crazy Peepers the gnome and kill him. He's always causing me big troubles. Gnomes and big trouble go hand and hand.")
  70. end
  71. function DLG_05(NPC,Spawn)
  72. FaceTarget(NPC, Spawn)
  73. conversation = CreateConversation()
  74. PlayFlavor(NPC, "voiceover/english/cicero_puer/fprt_sewer02/ciceropuer014.mp3", "", "", 4039402189, 2999879858, Spawn)
  75. AddConversationOption(conversation, "Okay, we'll see.")
  76. StartConversation(conversation, NPC, Spawn, "No, no! Letter tells Tula to tell you where the Serpent's Lair is. No lies, no doubles cross, you can trust me. I'm in your debt, kind of.")
  77. end
  78. function DLG_06(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. conversation = CreateConversation()
  81. SetStepComplete(Spawn, BackAndForth, 4)
  82. PlayFlavor(NPC, "voiceover/english/cicero_puer/fprt_sewer02/ciceropuer012.mp3", "", "", 714658674, 870149810, Spawn)
  83. AddConversationOption(conversation, "You can tell me I won't forget.", "DLG_07")
  84. StartConversation(conversation, NPC, Spawn, "I tell you! I tell you! Don't be mad. The entrance to the Serpent's Lair is ... wait I have better idea. I write it down for you. ...Oh? I used my last bit of paper for Tula.")
  85. end
  86. function DLG_07(NPC, Spawn)
  87. FaceTarget(NPC, Spawn)
  88. conversation = CreateConversation()
  89. PlayFlavor(NPC, "voiceover/english/cicero_puer/fprt_sewer02/ciceropuer013.mp3", "", "", 2676633634, 2389717505, Spawn)
  90. AddConversationOption(conversation, "We'll see?")
  91. StartConversation(conversation, NPC, Spawn, "Yes, yes! It is in a large room just south of the east sewer exit. I promise, you'll find it. You'll see.")
  92. end
  93. function Offer(NPC, Spawn)
  94. FaceTarget(NPC, Spawn)
  95. OfferQuest(NPC, Spawn, MurkwaterUniform)
  96. end
  97. function respawn(NPC)
  98. spawn(NPC)
  99. end
  100. function InRange(NPC, Spawn)
  101. FaceTarget(NPC, Spawn)
  102. if not HasQuest(Spawn, MurkwaterUniform) and not HasCompletedQuest(Spawn, MurkwaterUniform) then
  103. PlayFlavor(NPC, "voiceover/english/cicero_puer/fprt_sewer02/quests/qst_cicero_puer_aoi_unfamiliar_acdcfaef.mp3", "Who are you? Come closer and identify yourself.", "", 3773783330, 3612041605, Spawn)
  104. elseif HasCompletedQuest(Spawn, MurkwaterUniform) then
  105. PlayFlavor(NPC, "voiceover/english/cicero_puer/fprt_sewer02/quests/qst_cicero_puer_cicero_puer_x1_completed_5d529d35.mp3", "You want to know something else?", "", 3223009092, 3169840791, Spawn)
  106. end
  107. end
  108. function LeaveRange(NPC, Spawn)
  109. end