SighardSayer.lua 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. --[[
  2. Script Name : SpawnScripts/Antonica/SighardSayer.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.06.27 06:06:38
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local AFrontiersladysTask = 5528
  10. local Sayer = 5812
  11. function spawn(NPC)
  12. ProvidesQuest(NPC,Sayer)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. Dialog.New(NPC, Spawn)
  17. Dialog.AddDialog("Welcome, welcome. Please look about. Speak to my merchants; they're quite helpful.")
  18. Dialog.AddVoiceover("voiceover/english/sighard_sayer/antonica/sighardsayer000.mp3", 2370903667, 1889747783)
  19. PlayFlavor(NPC,"","","hello",0,0,Spawn)
  20. if GetQuestStep(Spawn, AFrontiersladysTask) == 1 then
  21. Dialog.AddOption("Dancer sent this message to you.", "Option1")
  22. end
  23. if CanReceiveQuest(Spawn, Sayer) then
  24. Dialog.AddOption("How have you been, Mr. Sayer? ", "Quest1")
  25. elseif GetQuestStep(Spawn, Sayer) == 5 then
  26. Dialog.AddOption("I delivered the goods, Mr. Sayer. ", "Dialog2")
  27. end
  28. Dialog.AddOption("Thank you. I shall look around.")
  29. Dialog.Start()
  30. end
  31. function Option1(NPC, Spawn)
  32. SetStepComplete(Spawn, AFrontiersladysTask, 1)
  33. FaceTarget(NPC, Spawn)
  34. Dialog.New(NPC, Spawn)
  35. Dialog.AddDialog("Ah! Dancer the frontiersman ... er ... I mean frontierslady as she says. Here, here. This is for her, an arrow like few others, an arrow she is expecting. ")
  36. Dialog.AddVoiceover("voiceover/english/sighard_sayer/antonica/sighardsayer001.mp3", 226640630, 2449088928)
  37. PlayFlavor(NPC,"","","agree",0,0,Spawn)
  38. Dialog.AddOption("I shall see that she gets the arrow. ")
  39. Dialog.Start()
  40. end
  41. function Quest1(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. Dialog.New(NPC, Spawn)
  44. Dialog.AddDialog("Yes! You're Dancer's courier. If she's not got ya running around all of Antonica, I sure could use your legs. ")
  45. Dialog.AddVoiceover("voiceover/english/sighard_sayer/antonica/sighardsayer002.mp3", 4166112879, 2639972315)
  46. PlayFlavor(NPC,"","","smile",0,0,Spawn)
  47. Dialog.AddOption("Sure, Mr. Sayer.", "Quest2")
  48. Dialog.AddOption("Sorry Mr. Sayer. I have to go.")
  49. Dialog.Start()
  50. end
  51. function Quest2(NPC, Spawn)
  52. OfferQuest(NPC,Spawn,Sayer)
  53. end
  54. function Dialog2(NPC, Spawn)
  55. SetStepComplete(Spawn, Sayer, 5)
  56. FaceTarget(NPC, Spawn)
  57. Dialog.New(NPC, Spawn)
  58. Dialog.AddDialog("Quit callin' me Mr. Sayer. Makes me feel as old as Overlord of Freeport! Here's a bit of coin for your tired feet. Maybe we can work together again.")
  59. Dialog.AddVoiceover("voiceover/english/sighard_sayer/antonica/sighardsayer004.mp3", 3771968860, 1623839270)
  60. PlayFlavor(NPC,"","","glare",0,0,Spawn)
  61. Dialog.AddOption("Thank you, Mr. Sayer.","Pout")
  62. Dialog.Start()
  63. end
  64. function Pout(NPC, Spawn)
  65. PlayFlavor(NPC,"","","frustrated",0,0,Spawn)
  66. end
  67. function respawn(NPC)
  68. spawn(NPC)
  69. end