9
3

OverseerSakkis.lua 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. --[[
  2. Script Name : SpawnScripts/ScaleYard/OverseerSakkis.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.03 07:10:45
  5. Script Purpose : No VOs, so most is fabricated where mentioned
  6. :
  7. --]]
  8. local Welcome = 5863
  9. require "SpawnScripts/Generic/DialogModule"
  10. local CalloutTimer = false
  11. function spawn(NPC)
  12. ProvidesQuest(NPC,Welcome)
  13. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  14. end
  15. function InRange(NPC, Spawn) --Quest Callout
  16. if GetFactionAmount(Spawn,12)<0 then
  17. PlayFlavor(NPC, "", "", "glare", 0, 0, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. if GetRace(Spawn)== 10 or GetRace(Spawn) == 0 then
  20. if CanReceiveQuest(Spawn, Welcome)then
  21. PlayFlavor(NPC,"","Refugees will report to me at once!","wave",850117394,1406850605,Spawn)
  22. elseif CalloutTimer == false then
  23. CalloutTimer = true
  24. AddTimer(NPC,90000,"ResetCallout",1,Spawn)
  25. Talk(NPC,Spawn)
  26. end
  27. elseif CalloutTimer == false then
  28. CalloutTimer = true
  29. AddTimer(NPC,90000,"ResetCallout",1,Spawn)
  30. Talk(NPC,Spawn)
  31. end
  32. end
  33. end
  34. function ResetCallout(NPC,Spawn)
  35. CalloutTimer = false
  36. end
  37. function hailed(NPC, Spawn)
  38. if GetFactionAmount(Spawn,12)<0 then
  39. PlayFlavor(NPC,"","","shame",0,0,Spawn)
  40. else
  41. if GetRace(Spawn)== 10 or GetRace(Spawn) == 0 then
  42. if not HasQuest(Spawn, Welcome) and not HasCompletedQuest(Spawn,Welcome)then --FABRICATED
  43. FaceTarget(NPC, Spawn)
  44. Dialog.New(NPC, Spawn)
  45. Dialog.AddDialog("You there! Sweat... salt... goblin... You have the ssscent of a refugee. The Overlord demands loyalty from all new blood from the isle. You must prove yourself worthy of his power.")
  46. -- Dialog.AddVoiceover("voiceover/english/overseer_travogg/fprt_hood1/overseer_travogg001.mp3", 2748948544, 618605369)
  47. PlayFlavor(NPC,"voiceover/english/voice_emotes/greetings/greetings_1_1028.mp3","","sniff",0,0,Spawn)
  48. Dialog.AddOption("I'm always up for a challenge.","Dialog1")
  49. Dialog.AddOption("I'll be right back.")
  50. Dialog.Start()
  51. else
  52. Talk(NPC,Spawn)
  53. end
  54. else
  55. Talk(NPC,Spawn)
  56. end
  57. end
  58. end
  59. function Talk(NPC,Spawn)
  60. FaceTarget(NPC, Spawn)
  61. local choice = MakeRandomInt(1,2)
  62. if choice == 1 then
  63. PlayFlavor(NPC,"","Refugees will report to me at once!","sniff",850117394,1406850605,Spawn)
  64. else
  65. PlayFlavor(NPC,"","Disturb me again and you will suffer the consequences.","glare",850117394,1406850605,Spawn)
  66. end
  67. end
  68. function respawn(NPC)
  69. spawn(NPC)
  70. end
  71. function Dialog1(NPC, Spawn) --FABRICATED
  72. FaceTarget(NPC, Spawn)
  73. Dialog.New(NPC, Spawn)
  74. Dialog.AddDialog("You survived thusss far, so you at least have a head on your shoulders. This is the City of Freeport. Stay in the Overlord's generous gaze and you'll keep your head where it belongs.")
  75. PlayFlavor(NPC,"","","agree",0,0,Spawn)
  76. -- Dialog.AddVoiceover("voiceover/english/overseer_travogg/fprt_hood1/overseer_travogg002.mp3", 3261798868, 2615741361)
  77. Dialog.AddOption("What do you need from me?", "Dialog2")
  78. Dialog.Start()
  79. end
  80. function Dialog2(NPC, Spawn)
  81. FaceTarget(NPC, Spawn)
  82. Dialog.New(NPC, Spawn)
  83. Dialog.AddDialog("I need nothing from you. You are the one who needs me. The Overlord decreed I give you a house in Scale Yard, home of both Iksar and barbarians. Each time you wake, say a prayer thanking the Overlord for his divine wisdom.")
  84. -- Dialog.AddVoiceover("voiceover/english/overseer_travogg/fprt_hood1/overseer_travogg003.mp3", 2428117614, 1340985853)
  85. PlayFlavor(NPC,"","","no",0,0,Spawn)
  86. Dialog.AddOption("A house? I'd take anything after that boat ride.", "QuestStart")
  87. Dialog.Start()
  88. end
  89. function QuestStart(NPC,Spawn)
  90. FaceTarget(NPC, Spawn)
  91. OfferQuest(NPC,Spawn,Welcome)
  92. end