9
3

Lukur.lua 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : SpawnScripts/SunkenCity/Lukur.lua
  3. Script Purpose : Lukur <General Goods>
  4. Script Author : jakejp
  5. Script Date : 2018.12.27
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local QUEST_1 = 374
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, QUEST_1)
  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, QUEST_1) then
  19. if HasQuest(Spawn, QUEST_1) then
  20. if GetQuestStep(Spawn, QUEST_1) == 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. PlayFlavor(NPC, "voiceover/english/optional1/lukur/fprt_adv01_sunken/lukur003.mp3", "", "", 1196217033, 2873878783, Spawn)
  43. AddConversationOption(conversation, "Thank you. ", "dlg_12_2")
  44. StartConversation(conversation, NPC, Spawn, "Look at the amazing quality of these ancient masks! You did well. Here is your reward.")
  45. end
  46. function OfferQuest1(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. OfferQuest(NPC, Spawn, QUEST_1)
  49. end