9
3

LuciusVulso.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/LuciusVulso.lua
  3. Script Purpose : Lucius Vulso
  4. Script Author : torsten
  5. Script Date : 2022.07.15
  6. Script Notes :
  7. --]]
  8. local CasingtheJoint = 5652
  9. local IntoTheSewersForLucius = 5653
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, CasingtheJoint)
  12. ProvidesQuest(NPC, IntoTheSewersForLucius)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. if not HasQuest(Spawn, CasingtheJoint) and not HasCompletedQuest(Spawn, CasingtheJoint) then
  19. OfferQuest(NPC, Spawn, CasingtheJoint)
  20. end
  21. if HasCompletedQuest(Spawn, CasingtheJoint) then
  22. if not HasQuest(Spawn, IntoTheSewersForLucius) and not HasCompletedQuest(Spawn, IntoTheSewersForLucius) then
  23. OfferQuest(NPC, Spawn, IntoTheSewersForLucius)
  24. end
  25. end
  26. if GetQuestStep(Spawn, CasingtheJoint) == 2 then
  27. SetStepComplete(Spawn, CasingtheJoint, 2)
  28. end
  29. if GetQuestStep(Spawn, IntoTheSewersForLucius) == 2 then
  30. SetStepComplete(Spawn, IntoTheSewersForLucius, 2)
  31. end
  32. RandomGreeting(NPC, Spawn)
  33. end
  34. function RandomGreeting(NPC, Spawn)
  35. local choice = MakeRandomInt(1,1)
  36. if choice == 1 then
  37. PlayFlavor(NPC, "voiceover/english/lucius_vulso/fprt_hood04/100_std_lucius_vulso_hum_m_callout1_96f04ea2.mp3", "What do you need? I've no time for small talk.", "", 1224233, 3736016050, Spawn, 0)
  38. end
  39. end