ASewerSlime392016.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : SpawnScripts/ThievesWay/ASewerSlime392016.lua
  3. Script Purpose : Waypoint Path for ratongaF19003.lua
  4. Script Author : Rylec
  5. Script Date : 09-28-2019 10:45:51
  6. Script Notes : <special-instructions>
  7. --]]
  8. function spawn(NPC)
  9. waypoints(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. end
  14. function respawn(NPC)
  15. end
  16. function waypoints(NPC)
  17. MovementLoopAddLocation(NPC, -182.58, 0.04, 212.90, 2, math.random(10, 22))
  18. MovementLoopAddLocation(NPC, -182.49, 0.00, 212.00, 2, 0)
  19. MovementLoopAddLocation(NPC, -182.40, 0.00, 212.08, 2, math.random(10, 22))
  20. MovementLoopAddLocation(NPC, -178.75, 0.00, 214.75, 2, math.random(10, 22))
  21. MovementLoopAddLocation(NPC, -181.92, 0.00, 207.88, 2, math.random(10, 22), "changegrid_Going_Down")
  22. MovementLoopAddLocation(NPC, -182.53, 0.24, 199.33, 2, math.random(10, 22))
  23. MovementLoopAddLocation(NPC, -182.47, 0.00, 201.23, 2, 0)
  24. MovementLoopAddLocation(NPC, -182.38, 0.00, 201.26, 2, math.random(10, 22))
  25. MovementLoopAddLocation(NPC, -180.52, 0.00, 213.99, 2, 0, "changegrid_Going_Up")
  26. MovementLoopAddLocation(NPC, -180.72, 0.03, 215.77, 2, 0)
  27. MovementLoopAddLocation(NPC, -180.81, 0.03, 215.79, 2, math.random(10, 22))
  28. MovementLoopAddLocation(NPC, -173.96, 0.00, 217.84, 2, math.random(10, 22))
  29. MovementLoopAddLocation(NPC, -180.90, 0.00, 214.18, 2, 0)
  30. end
  31. --------------------------------------------------------------------------------------
  32. -- NPC Change Grid
  33. --------------------------------------------------------------------------------------
  34. function changegrid_Going_Up(NPC)
  35. SetGridID(NPC, 3053675711)
  36. end
  37. function changegrid_Going_Down(NPC)
  38. SetGridID(NPC, 1555937977)
  39. end