SiricusCalventius.lua 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/SiricusCalventius.lua
  3. Script Purpose : Siricus Calventius
  4. Script Author : torsten\\Dorbin
  5. Script Date : 2022.07.17
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local SiricusandtheMilitia = 5663
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, SiricusandtheMilitia)
  12. SetPlayerProximityFunction(NPC, 8, "InRange", "LeaveRange")
  13. SetTempVariable(NPC,"CalloutTimer","false")
  14. SetInfoStructString(NPC, "action_state", "artificing_idle")
  15. end
  16. function InRange(NPC,Spawn)
  17. if CanReceiveQuest(Spawn,SiricusandtheMilitia) and GetTempVariable(NPC,"CalloutTimer") ~= "true" then
  18. SetTempVariable(NPC,"CalloutTimer","true")
  19. FaceTarget(NPC,Spawn)
  20. PlayFlavor(NPC, "voiceover/english/siricus_calventius/fprt_hood04/100_std_siricus_calventius_hum_m_callout1_12a2e93c.mp3", "How dare you enter my house, scoundrel! This time you're not destroying my figurines!", "shakefist", 2618163617, 4254987101, Spawn, 0)
  21. AddTimer(NPC,45000,"ResetCallout",1,Spawn)
  22. elseif HasCompletedQuest(Spawn,SiricusandtheMilitia) and GetTempVariable(NPC,"CalloutTimer") ~= "true" then
  23. SetTempVariable(NPC,"CalloutTimer","true")
  24. FaceTarget(NPC,Spawn)
  25. PlayFlavor(NPC, "voiceover/english/siricus_calventius/fprt_hood04/100_std_siricus_calventius_hum_m_multhail1_577c7e4c.mp3", "Get out of my house! I'm calling the Militia!", "glare", 1299689554, 3591558619, Spawn, 0)
  26. AddTimer(NPC,45000,"ResetCallout",1,Spawn)
  27. end
  28. end
  29. function ResetCallout(NPC,Spawn)
  30. SetTempVariable(NPC,"CalloutTimer","false")
  31. end
  32. function respawn(NPC)
  33. spawn(NPC)
  34. end
  35. function hailed(NPC, Spawn)
  36. if GetQuestStep(Spawn, SiricusandtheMilitia)>=1 then
  37. Dialog_Wait(NPC, Spawn)
  38. else
  39. Dialog1(NPC, Spawn)
  40. end
  41. end
  42. function Offer(NPC, Spawn)
  43. OfferQuest(NPC, Spawn, SiricusandtheMilitia)
  44. end
  45. function Dialog_Wait(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. Dialog.New(NPC, Spawn)
  48. Dialog.AddDialog("So, did my application go through? It's been weeks! I must know! Please hurry and find Sentius!")
  49. Dialog.AddVoiceover("voiceover/english/siricus_calventius/fprt_hood04/std_siricus_calventius.mp3", 0, 0)
  50. if GetQuestStep(Spawn,SiricusandtheMilitia) ==2 then
  51. Dialog.AddOption("Sentius said he's still working on it but it will take time.", "Dialog4")
  52. else
  53. Dialog.AddOption("I'm still looking for him.")
  54. end
  55. Dialog.Start()
  56. end
  57. function Dialog1(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. Dialog.New(NPC, Spawn)
  60. Dialog.AddDialog("Get out of my house, before I call the Militia and tell them you attacked me!")
  61. Dialog.AddVoiceover("voiceover/english/siricus_calventius/fprt_hood04/std_siricus_calventius.mp3", 606767278, 3005517410)
  62. if CanReceiveQuest(Spawn,SiricusandtheMilitia) then
  63. Dialog.AddOption("I'm not here to hurt you.", "Dialog2")
  64. elseif GetQuestStep(Spawn,SiricusandtheMilitia) ==2 then
  65. Dialog.AddOption("Sentius said he's still working on it but it will take time.", "Dialog4")
  66. end
  67. Dialog.AddOption("Alright! I'm going.")
  68. Dialog.Start()
  69. end
  70. function Dialog2(NPC, Spawn)
  71. FaceTarget(NPC, Spawn)
  72. Dialog.New(NPC, Spawn)
  73. Dialog.AddDialog("That's what you guys said last time, then you destroyed my glass figurines! By your looks I bet you're one of Manius Galla's guys. What are you going to break now?! ")
  74. Dialog.AddVoiceover("voiceover/english/siricus_calventius/fprt_hood04/quests/siricuscalventius/siricus_x1_initial.mp3", 541429721, 1155169623)
  75. PlayFlavor(NPC, "", "", "cringe", 0, 0, Spawn, 0)
  76. Dialog.AddOption("Seriously, I'm not here to hurt you.", "Dialog3")
  77. Dialog.AddOption("You most likely deserved it, you snivelling fool.","Fool")
  78. Dialog.Start()
  79. end
  80. function Fool(NPC, Spawn)
  81. FaceTarget(NPC, Spawn)
  82. PlayFlavor(NPC, "voiceover/english/siricus_calventius/fprt_hood04/100_std_siricus_calventius_hum_m_multhail1_577c7e4c.mp3", "Get out of my house! I'm calling the Militia!", "point", 1299689554, 3591558619, Spawn, 0)
  83. end
  84. function Dialog3(NPC, Spawn)
  85. FaceTarget(NPC, Spawn)
  86. Dialog.New(NPC, Spawn)
  87. Dialog.AddDialog("Really? Please, accept my apology. I thought you were with Manius. Just for fun, he sends his guys here to rough me up. In fact, I'm paying my way through the Freeport Militia. One day I'll take pleasure in arresting that tyrant for his cruelty. Hey, would you do me a favor and ask my friend how my bribe is coming along?")
  88. Dialog.AddVoiceover("voiceover/english/siricus_calventius/fprt_hood04/quests/siricuscalventius/siricus_x1_initial2.mp3", 1937410613, 2279067190)
  89. PlayFlavor(NPC, "", "", "sigh", 0, 0, Spawn, 0)
  90. Dialog.AddOption("Sure. Why not.", "Offer")
  91. Dialog.AddOption("Nope. You should learn your place!","Fool")
  92. Dialog.Start()
  93. end
  94. function Dialog4(NPC, Spawn)
  95. FaceTarget(NPC, Spawn)
  96. Dialog.New(NPC, Spawn)
  97. Dialog.AddDialog("Oh no. I've waited several weeks now ... Gosh, I didn't know the Militia had such a long waiting list. I guess I have no choice but to wait. Thank you for your help, good friend. ")
  98. Dialog.AddVoiceover("voiceover/english/siricus_calventius/fprt_hood04/quests/siricuscalventius/siricus_x1_finish.mp3", 1070794522, 2366770692)
  99. PlayFlavor(NPC, "", "", "pout", 0, 0, Spawn, 0)
  100. Dialog.AddOption("Yeah, good luck with that.")
  101. Dialog.Start()
  102. SetStepComplete(Spawn,SiricusandtheMilitia,2)
  103. end