Lukur.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : SpawnScripts/SunkenCity/Lukur.lua
  3. Script Purpose : Lukur <General Goods>
  4. Script Author : jakejp
  5. Script Date : 2018.12.27 (16.7.2022 by Torsten)
  6. Script Notes :
  7. --]]
  8. local LukursAntiques = 374
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, LukursAntiques)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. if not HasCompletedQuest(Spawn, LukursAntiques) then
  19. if HasQuest(Spawn, LukursAntiques) then
  20. if GetQuestStep(Spawn, LukursAntiques) == 4 then
  21. AddConversationOption(conversation, "I've returned with the masks.", "dlg_12_1")
  22. end
  23. else
  24. AddConversationOption(conversation, "Who are you?", "dlg_4_1")
  25. end
  26. end
  27. PlayFlavor(NPC, "voiceover/english/optional1/lukur/fprt_adv01_sunken/lukur000.mp3", "", "", 1584752461, 2942049134, Spawn)
  28. AddConversationOption(conversation, "I'm not one to be sifting through other people's things.")
  29. StartConversation(conversation, NPC, Spawn, "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.")
  30. end
  31. function dlg_4_1(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. conversation = CreateConversation()
  34. PlayFlavor(NPC, "voiceover/english/optional1/lukur/fprt_adv01_sunken/lukur001.mp3", "", "", 3143062912, 3824299878, Spawn)
  35. AddConversationOption(conversation, "I think I can help you.", "OfferQuest1")
  36. AddConversationOption(conversation, "Not right now, sorry.")
  37. StartConversation(conversation, NPC, Spawn, "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?")
  38. end
  39. function dlg_12_1(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. conversation = CreateConversation()
  42. SetStepComplete(Spawn, LukursAntiques, 4)
  43. PlayFlavor(NPC, "voiceover/english/optional1/lukur/fprt_adv01_sunken/lukur003.mp3", "", "", 1196217033, 2873878783, Spawn)
  44. AddConversationOption(conversation, "Thank you. ", "dlg_12_2")
  45. StartConversation(conversation, NPC, Spawn, "Look at the amazing quality of these ancient masks! You did well. Here is your reward.")
  46. end
  47. function OfferQuest1(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. OfferQuest(NPC, Spawn, LukursAntiques)
  50. end