Waulon.lua 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/Waulon.lua
  3. Script Author : Zcoretri
  4. Script Date : 2015.07.27
  5. Script Purpose : Waulon dialog
  6. Modified Date : 20.04.03
  7. Modified by : premierio015
  8. Notes : Added animations
  9. --]]
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. math.randomseed(os.time())
  18. voice = math.random(1,2)
  19. emote = math.random(1,3)
  20. if voice == 1 then
  21. PlayFlavor(NPC, "voiceover/english/waulon/boat_06p_tutorial02/walon_0_004.mp3", "Where's me hat? Needs me lucky hat!", "", 2688932325, 103225044, Spawn)
  22. else
  23. PlayFlavor(NPC, "voiceover/english/waulon/boat_06p_tutorial02/walon_0_008.mp3", "What? Can't you see? Busy, away with ye!", "", 1608066875, 70639594, Spawn)
  24. end
  25. if emote == 1 then
  26. PlayAnimation(NPC, 11682)
  27. elseif emote == 2 then
  28. PlayAnimation(NPC, 11882)
  29. else
  30. PlayAnimation(NPC, 12285)
  31. end
  32. end