9
3

asludgewalkerhatchling392604.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : SpawnScripts/ThievesWay/asludgewalkerhatchling392604.lua
  3. Script Purpose : Waypoint Path for asludgewalkerhatchling392604.lua
  4. Script Author : Rylec
  5. Script Date : 10-05-2019 09:22:17
  6. Script Notes : Locations collected from Live
  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.23, 0.00, 196.92, 2, math.random(12, 18))
  18. MovementLoopAddLocation(NPC, -183.19, 0.00, 192.40, 2, 0)
  19. MovementLoopAddLocation(NPC, -183.08, 0.28, 189.19, 2, 0)
  20. MovementLoopAddLocation(NPC, -182.20, 0.00, 184.94, 2, math.random(12, 18), "changegrid_Going_Down")
  21. MovementLoopAddLocation(NPC, -180.74, 0.00, 181.80, 2, 0)
  22. MovementLoopAddLocation(NPC, -180.75, 0.00, 181.82, 2, math.random(12, 18))
  23. MovementLoopAddLocation(NPC, -184.38, 0.10, 184.24, 2, math.random(12, 18))
  24. MovementLoopAddLocation(NPC, -183.44, 0.28, 186.29, 2, 0, "changegrid_Going_Up")
  25. MovementLoopAddLocation(NPC, -182.99, 0.00, 191.52, 2, 0)
  26. MovementLoopAddLocation(NPC, -183.26, 0.10, 193.76, 2, 0)
  27. end
  28. --------------------------------------------------------------------------------------
  29. -- NPC Change Grid
  30. --------------------------------------------------------------------------------------
  31. function changegrid_Going_Up(NPC)
  32. SetGridID(NPC, 1555937977)
  33. end
  34. function changegrid_Going_Down(NPC)
  35. SetGridID(NPC, 667331216)
  36. end