arat.lua 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : SpawnScripts/Baubbleshire/arat.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.09 09:01:22
  5. Script Purpose : Waypoint Path for rat.lua
  6. :
  7. --]]
  8. function spawn(NPC)
  9. waypoints(NPC)
  10. squeal(NPC, Spawn)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. end
  15. function respawn(NPC, Spawn)
  16. end
  17. function squeal (NPC, Spawn)
  18. PlayFlavor(NPC, "", "", "sotb_batsqueak2_sound", 0, 0)
  19. end
  20. function waypoints(NPC)
  21. MovementLoopAddLocation(NPC, 940.53, -18.02, -440.77, 2, 2)
  22. MovementLoopAddLocation(NPC, 940.53, -18.02, -440.77, 2, 0, "guarddog")
  23. MovementLoopAddLocation(NPC, 940.53, -18.02, -440.77, 2, 0, "squeal")
  24. MovementLoopAddLocation(NPC, 942.31, -18.02, -442.41, 8, 0)
  25. MovementLoopAddLocation(NPC, 923.74, -17.73, -436.14, 8, 0)
  26. MovementLoopAddLocation(NPC, 905.34, -17.86, -448.93, 8, 0)
  27. MovementLoopAddLocation(NPC, 896.4, -18.17, -463.87, 8, 0)
  28. MovementLoopAddLocation(NPC, 898.27, -18.1, -472.12, 8, 0)
  29. MovementLoopAddLocation(NPC, 906.03, -17.15, -472.6, 5, math.random(30, 85))
  30. MovementLoopAddLocation(NPC, 904.33, -17.67, -477.78, 2, 0)
  31. MovementLoopAddLocation(NPC, 897.85, -18.04, -473.03, 4, 0)
  32. MovementLoopAddLocation(NPC, 898.44, -18.16, -460.71, 2, math.random(0, 10))
  33. MovementLoopAddLocation(NPC, 917.24, -17.66, -445.1, 2, 0)
  34. MovementLoopAddLocation(NPC, 924.7, -17.69, -441.29, 2, 0)
  35. MovementLoopAddLocation(NPC, 932.13, -17.69, -439.61, 2, math.random(0, 10))
  36. MovementLoopAddLocation(NPC, 940.29, -17.93, -440.83, 2, 0)
  37. MovementLoopAddLocation(NPC, 940.29, -17.93, -440.83, 1, 0)
  38. end
  39. function guarddog(NPC)
  40. local Lance = GetSpawn(NPC, 2380033)
  41. if Lance ~= nil then
  42. PlayFlavor(Lance, "","", "attack", 0, 0)
  43. end
  44. end