Lukur.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : SpawnScripts/SunkenCity_Classic/Lukur.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.11.01 08:11:07
  5. Script Purpose :
  6. :
  7. --]]
  8. local LukursAntiques = 374
  9. require "SpawnScripts/Generic/DialogModule"
  10. function spawn(NPC)
  11. ProvidesQuest(NPC,LukursAntiques)
  12. SetInfoStructString(NPC, "action_state", "tapfoot")
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. Dialog1(NPC, Spawn)
  19. end
  20. function Dialog1(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. Dialog.New(NPC, Spawn)
  23. Dialog.AddDialog("This place is a wellspring for me. Look around! Crates and barrels full of abandoned goods just waiting to be uncovered. There are far too many for me to search alone.")
  24. Dialog.AddVoiceover("voiceover/english/optional1/lukur/fprt_adv01_sunken/lukur000.mp3", 1584752461, 2942049134)
  25. if CanReceiveQuest(Spawn, LukursAntiques) then
  26. Dialog.AddOption("Who are you?", "Dialog2")
  27. elseif GetQuestStep(Spawn, LukursAntiques)==4 then
  28. Dialog.AddOption("I've returned with the masks.", "Dialog3")
  29. end
  30. Dialog.AddOption("I'm not one to be sifting through other people's things.")
  31. Dialog.Start()
  32. end
  33. function Dialog2(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. Dialog.New(NPC, Spawn)
  36. Dialog.AddDialog("My name's Lukur, and I deal antiques. I was told of the riches waiting to be discovered here, but I didn't believe it until I arrived. Will you help me search for some valuables?")
  37. Dialog.AddVoiceover("voiceover/english/optional1/lukur/fprt_adv01_sunken/lukur001.mp3", 3143062912, 3824299878)
  38. Dialog.AddOption("I think I can help you.", "Offer")
  39. Dialog.AddOption("Not right now, sorry.")
  40. Dialog.Start()
  41. end
  42. function Offer(NPC,Spawn)
  43. OfferQuest(NPC,Spawn,LukursAntiques)
  44. end
  45. function Dialog3(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. Dialog.New(NPC, Spawn)
  48. Dialog.AddDialog("Look at the amazing quality of these ancient masks! You did well. Here is your reward.")
  49. Dialog.AddVoiceover("voiceover/english/optional1/lukur/fprt_adv01_sunken/lukur003.mp3", 1196217033, 2873878783)
  50. PlayFlavor(NPC,"","","boggle",0,0,Spawn)
  51. Dialog.AddOption("Thank you.")
  52. Dialog.Start()
  53. SetStepComplete(Spawn,LukursAntiques,4)
  54. end