9
3

Valik.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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,26000,"waypoints")
  10. end
  11. function hailed(NPC, Spawn)
  12. choice = math.random(0, 1)
  13. FaceTarget(NPC, Spawn)
  14. if choice == 1 then
  15. 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)
  16. else
  17. 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)
  18. end
  19. end
  20. function waypoints2(NPC)
  21. if GetSpawn(NPC, 270011) ~= nil and IsAlive(GetSpawn(NPC, 270008))== true or GetSpawn(NPC, 270011) == nil and IsAlive(GetSpawn(NPC, 270008))== false then
  22. MoveToLocation(NPC, -4.09, -2.03, -1.27, 2, 0)
  23. MoveToLocation(NPC, -4.22, -2.06, 2.78, 2, 0)
  24. MoveToLocation(NPC, -6.62, -1.82, 5.12, 2)
  25. MoveToLocation(NPC, -6.62, -1.82, 5.12, 2)
  26. SetHeading(NPC,130)
  27. end
  28. AddTimer(NPC,26000,"waypoints")
  29. end
  30. function waypoints(NPC)
  31. if GetSpawn(NPC, 270011) ~= nil and IsAlive(GetSpawn(NPC, 270008))== true or GetSpawn(NPC, 270011) == nil and IsAlive(GetSpawn(NPC, 270008))== false then
  32. MoveToLocation(NPC, -4.64, -2.05, 2.64, 2)
  33. MoveToLocation(NPC, -4.29, -2.03, -0.88, 2)
  34. MoveToLocation(NPC, -6.34, -1.81, -3.6, 2)
  35. SetHeading(NPC,-4)
  36. end
  37. AddTimer(NPC,26000,"waypoints2")
  38. end
  39. function respawn(NPC)
  40. end