Waulon.lua 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. --[[
  2. Script Name : SpawnScripts/FarJourneyFreeport/Waulon.lua
  3. Script Author : Cynnar
  4. Script Date : 2019.09.28 03:09:55
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, player)
  12. FaceTarget(NPC, player)
  13. if HasQuest(player, 524) == false or HasCompletedQuest(player, 524) == true then
  14. PlayFlavor(NPC, "voiceover/english/waulon/boat_06p_tutorial02/walon_0_008.mp3", "What? Can't ye see? Busy, away with ye!", "", 1608066875, 70639594)
  15. else
  16. step = GetQuestStep(player, 524)
  17. if step == 1 then
  18. InstructionWindowGoal(player,0)
  19. InstructionWindowClose(player)
  20. Dialog.New(NPC, player)
  21. Dialog.AddDialog("Wot? Oh, hey there, ye' startled me.")
  22. Dialog.AddVoiceover("voiceover/english/waulon/boat_06p_tutorial02/walon_0_001.mp3", 814960513, 2301562586)
  23. Dialog.AddOption("Sorry about that.", "startled_me")
  24. Dialog.Start()
  25. elseif step == 3 then
  26. PlayFlavor(NPC, "voiceover/english/waulon/boat_06p_tutorial02/walon_0_004.mp3", "Where's me hat? Needs me lucky hat!", "", 2688932325, 103225044)
  27. Dialog.New(NPC, player)
  28. Dialog.AddDialog("Ah, me hat! Was worried. See, dis' hat gives me the luck.")
  29. Dialog.AddVoiceover("voiceover/english/waulon/boat_06p_tutorial02/walon_0_005.mp3", 4097259098, 893296183)
  30. Dialog.AddOption("Glad to help!", "returned_hat")
  31. Dialog.Start()
  32. InstructionWindowGoal(player, 0)
  33. end
  34. end
  35. end
  36. function returned_hat(NPC, player)
  37. Dialog.New(NPC, player)
  38. Dialog.AddDialog("Now me is safe, thanks ta' ye. Here, take this charm. Ya' may find a use for it.")
  39. Dialog.AddVoiceover("voiceover/english/waulon/boat_06p_tutorial02/walon_0_006.mp3", 316186630, 2628530085)
  40. Dialog.AddOption("Thanks, Waulon.", "received_charm")
  41. Dialog.Start()
  42. end
  43. function returned_hat(NPC, player)
  44. Dialog.New(NPC, player)
  45. Dialog.AddDialog("Well now, Ingrid o'er there, can show ya' the rest of the ship. Me needs ta' plot the course ta' the isles now.")
  46. Dialog.AddVoiceover("voiceover/english/waulon/boat_06p_tutorial02/walon_0_007.mp3", 1973137904, 2648127610)
  47. Dialog.AddOption("Ok.", "finished_step_three")
  48. Dialog.Start()
  49. end
  50. function finished_step_three(NPC, player)
  51. SetStepComplete(player, 524, 3)
  52. end
  53. function startled_me(NPC, player)
  54. Dialog.New(NPC, player)
  55. Dialog.AddDialog("Can't seem ta' find me hat.")
  56. Dialog.AddVoiceover("voiceover/english/waulon/boat_06p_tutorial02/walon_0_002.mp3", 1759807851, 3940656870)
  57. Dialog.AddOption("Do you need some help?", "help_find_hat")
  58. Dialog.Start()
  59. end
  60. function help_find_hat(NPC, player)
  61. chest = GetRandomSpawnByID(NPC, 270010)
  62. FaceTarget(NPC, chest)
  63. Dialog.New(NPC, player)
  64. Dialog.AddDialog("Sure! Me needs ya' ta' go lookie in them there boxes and if ye' find it, lets me know.")
  65. Dialog.AddVoiceover("voiceover/english/waulon/boat_06p_tutorial02/walon_0_003.mp3", 2072797774, 185252141)
  66. Dialog.AddOption("Ok.", "finished_step_one")
  67. Dialog.Start()
  68. end
  69. function finished_step_one(NPC, player)
  70. InstructionWindowGoal(player, 0)
  71. InstructionWindowClose(player)
  72. SetStepComplete(player, 524, 1)
  73. end
  74. function respawn(NPC)
  75. end