Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $minx = $welcomex - ($height/$resolution/2);
- $maxx = $minx + ($height/$resolution);
- $lowx = $minx*256;
- $highx = $maxx*256;
- $miny = $welcomey - ($height/$resolution/2);
- $maxy = $miny + ($height/$resolution);
- $lowy = $miny*256;
- $highy = $maxy*256;
- $result = mysql_query("select regionName,cast(locX/256 as unsigned),cast(locY/256 as unsigned),serverURI from regions where locX >= $lowx and locY >= $lowy and locX <= $highx and locY <= $highy order by RegionName" );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement