marlosgama Mar 27th, 2020 342 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   def change_position
  2.     $server.maps[@map_id].respawn_regions.size.times do
  3.       region_id = rand($server.maps[@map_id].respawn_regions.size)
  4.       x = $server.maps[@map_id].respawn_regions[region_id].x
  5.       y = $server.maps[@map_id].respawn_regions[region_id].y
  6.       if passable?(x, y, 0)
  7.         moveto(x, y)
  8.         break
  9.       end
  10.     end
  11.   end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand