Valik.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --[[
  2. Script Name : SpawnScripts/FarJourneyFreeport/Valik.lua
  3. Script Author : Cynnar
  4. Script Date : 2019.05.19 10:05:23
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, 5000, "ValikMove")
  10. end
  11. function ValikMove(NPC, Spawn)
  12. MoveToLocation(NPC, -4.17, -2.02, -1.52, 2)
  13. MoveToLocation(NPC, -5.37, -1.97, -4.22, 2)
  14. MoveToLocation(NPC, -6.39, -1.81, -3.96, 2)
  15. AddTimer(NPC, 30000, "ValikMove_2")
  16. end
  17. function ValikMove_2(NPC, Spawn)
  18. MoveToLocation(NPC, -4.17, -2.02, -1.52, 2)
  19. MoveToLocation(NPC, -6.62, -1.82, 5.12, 2)
  20. AddTimer(NPC, 30000, "ValikMove")
  21. end
  22. function hailed(NPC, Spawn)
  23. choice = math.random(0, 1)
  24. FaceTarget(NPC, Spawn)
  25. if choice == 1 then
  26. PlayFlavor(NPC, "voiceover/english/valik/boat_06p_tutorial02/001_refugee_valik_002_eaf98080.mp3", "I can't wait to reach the island, dry land and dry food. Fish is only good for a while, even for a Kerran.", "", 1919549905, 2798982211)
  27. else
  28. PlayFlavor(NPC, "voiceover/english/valik/boat_06p_tutorial02/001_refugee_valik_003_96415f8d.mp3", "I hear the Island of Refuge is the home of the Far Seas Trading Company. Maybe I will be able to find some work there.", "", 2997651561, 1452360635)
  29. end
  30. end
  31. function respawn(NPC)
  32. end