9
3

Vim.lua 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/Vim.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.04 12:09:11
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. waypoints(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. choice = math.random(1,3)
  17. if choice == 1 then
  18. PlayFlavor(NPC, "voiceover/english/merchant_vim/boat_06p_tutorial02/020_merchant_vim_hail_187fc6bb.mp3", "I am busy right now...", "no", 1835666244, 487490745, Spawn)
  19. elseif choice == 2 then
  20. PlayFlavor(NPC, "voiceover/english/merchant_vim/boat_06p_tutorial02/020_merchant_vim_hail_481beac8.mp3", "I love traveling the seas... Oh! Did you need something?", "sniff", 2187888771, 2112320089, Spawn)
  21. else
  22. PlayFlavor(NPC, "voiceover/english/merchant_vim/boat_06p_tutorial02/020_merchant_vim_hail_6c0c3c22.mp3", "The Far Journey is a beautiful ship, ain't she?", "smirk", 139722646, 2672074756, Spawn)
  23. end
  24. end
  25. function waypoints(NPC)
  26. MovementLoopAddLocation(NPC, -22.05, -6.35, 57.98, 2, 35)
  27. MovementLoopAddLocation(NPC, -24.85, -6.35, 54.26, 2, 0)
  28. MovementLoopAddLocation(NPC, -23.39, -6.35, 51.23, 2, 35)
  29. MovementLoopAddLocation(NPC, -22.68, -6.35, 49.75, 2, 0)
  30. MovementLoopAddLocation(NPC, -28.69, -6.35, 50.27, 2, 0)
  31. MovementLoopAddLocation(NPC, -33.83, -6.35, 51.68, 2, 35)
  32. MovementLoopAddLocation(NPC, -28.29, -6.35, 52.99, 2, 0)
  33. MovementLoopAddLocation(NPC, -26.26, -6.35, 53.6, 2, 0)
  34. MovementLoopAddLocation(NPC, -24.91, -6.35, 56.69, 2, 0)
  35. MovementLoopAddLocation(NPC, -24.06, -6.35, 58.33, 2, 0)
  36. MovementLoopAddLocation(NPC, -23.76, -6.35, 60.97, 2, 35)
  37. MovementLoopAddLocation(NPC, -21.76, -6.35, 61.27, 2, 0)
  38. MovementLoopAddLocation(NPC, -19.9, -6.35, 58.1, 2, 0)
  39. MovementLoopAddLocation(NPC, -22.38, -6.35, 49.08, 2, 35)
  40. MovementLoopAddLocation(NPC, -21.27, -6.35, 49.97, 2, 0)
  41. end