9
3

FestusSeptimius.lua 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/FestusSeptimius.lua
  3. Script Purpose : Festus Septimius
  4. Script Author : torsten
  5. Script Date : 2022.07.15
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local BottlesOfBeerInMyHand = 5649
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, BottlesOfBeerInMyHand)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. if not HasQuest(Spawn, BottlesOfBeerInMyHand) and not HasCompletedQuest(Spawn, BottlesOfBeerInMyHand) then
  18. Dialog2(NPC, Spawn)
  19. elseif GetQuestStep(Spawn, BottlesOfBeerInMyHand) == 2 then
  20. SetStepComplete(Spawn, BottlesOfBeerInMyHand, 2)
  21. --Dialog6(NPC, Spawn)
  22. end
  23. end
  24. function Dialog1(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. Dialog.New(NPC, Spawn)
  27. Dialog.AddDialog("I need gritty sand to craft glass. Glass made from beach sand is too sturdy, so I must use my old standby - crab gizzard sand. Go to the Sunken City and find some bulky crabs. Kill them, open up their gizzards, and sift out the sand. Return with the gritty sand from several crabs and I'll pay you for your work.")
  28. Dialog.AddVoiceover("voiceover/english/festus_septimus/fprt_hood04/quests/festusseptimus/festus_x1_accept.mp3", 395004029, 46881327)
  29. Dialog.AddOption("I'll go get some for you.")
  30. Dialog.Start()
  31. OfferQuest(NPC, Spawn, BottlesOfBeerInMyHand)
  32. end
  33. function Dialog2(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. Dialog.New(NPC, Spawn)
  36. Dialog.AddDialog("This glass is all hand blown and custom made. If you break it, then I break something of yours, got it?")
  37. Dialog.AddVoiceover("voiceover/english/festus_septimus/fprt_hood04/std_festus_septimius.mp3", 692395193, 2329059486)
  38. Dialog.AddOption("What would you do if I broke all of them?", "Dialog3")
  39. Dialog.AddOption("I'll be careful.")
  40. Dialog.Start()
  41. end
  42. function Dialog3(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. Dialog.New(NPC, Spawn)
  45. Dialog.AddDialog("Ha ha! Good luck, buddy. I'd like to see you try and break my sturdy glassware! Now, instead of throwing back and forth useless threats, how 'bout I hire you? I need someone with your attitude. Are you willing to do some hunting?")
  46. Dialog.AddVoiceover("voiceover/english/festus_septimus/fprt_hood04/quests/festusseptimus/festus_x1_initial.mp3", 2997850121, 1619430784)
  47. Dialog.AddOption("What did you have in mind?", "Dialog1")
  48. Dialog.AddOption("No, I'm not.")
  49. Dialog.Start()
  50. end