9
3

Waulon.lua 3.0 KB

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