Advertisement
Guest User

Untitled

a guest
Jul 11th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  $min = $welcomex - ($height/$resolution/2);^M
  2.     $max = $welcomey + ($height/$resolution);^M
  3.     $low = $min*256;^M
  4.     $high = $max*256;^M
  5.     $query = 'select regionName,cast(locX/256 as unsigned),cast(locY/256 as unsigned),serverURI from regions where locX >= $low and locY >= $low and locX <= $high and locY <= $high order by RegionName'
  6.     $result = mysql_query($query );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement