MarcusCantarius.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/MarcusCantarius.lua
  3. Script Purpose : Marcus Cantarius
  4. Script Author : torsten
  5. Script Date : 2022.07.16
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local MarcusMonumentalHatred = 5659
  10. local DeliverHelptoJanusFieri = 5660
  11. function spawn(NPC)
  12. ProvidesQuest(NPC, MarcusMonumentalHatred)
  13. ProvidesQuest(NPC, DeliverHelptoJanusFieri)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function hailed(NPC, Spawn)
  19. if not HasQuest(Spawn, MarcusMonumentalHatred) and not HasCompletedQuest(Spawn, MarcusMonumentalHatred) then
  20. OfferQuest(NPC, Spawn, MarcusMonumentalHatred)
  21. end
  22. if HasCompletedQuest(Spawn, MarcusMonumentalHatred) then
  23. if not HasQuest(Spawn, DeliverHelptoJanusFieri) and not HasCompletedQuest(Spawn, DeliverHelptoJanusFieri) then
  24. OfferQuest(NPC, Spawn, DeliverHelptoJanusFieri)
  25. end
  26. end
  27. if GetQuestStep(Spawn, MarcusMonumentalHatred) == 2 then
  28. SetStepComplete(Spawn, MarcusMonumentalHatred, 2)
  29. end
  30. Dialog1(NPC, Spawn)
  31. end
  32. function Dialog1(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. Dialog.New(NPC, Spawn)
  35. Dialog.AddDialog("I've dedicated my life to eradicating the dervishes.")
  36. Dialog.AddVoiceover("voiceover/english/marcus_cantarius/fprt_hood04/quests/marcuscantarius/marcuscantarius001.mp3", 1085537039, 2873606329)
  37. Dialog.AddOption("I'll keep that in mind. ")
  38. Dialog.Start()
  39. end