Quote:
|
Originally Posted by andreagighi
Quote:
|
Originally Posted by Kane Hart
Quote:
|
Originally Posted by andreagighi
Yeah ops sorry mymistake... with png if u need i will post...
The map in the package is 1027x768 if u need more resolution pm me i can correct the script...
|
I'm going see if I can learn correct on my own sorta learning php man this so cool though
Edit gave up on trying im guessing:
$xsito=($valorex + 131072)/400-7; //Aden
$ysito=($valorey + 32768)/410-7; //Aden
but dont know how get exactly to match.. Im guessing you sat there fin tunning it to be perfect not sure..
|
$valorex=mssql_result($resultlistaplayer, $i, 1); //Take x from DB
$valorey=mssql_result($resultlistaplayer, $i, 2); //Take y from DB
if ($valorey>(-32768)) { //choose if in Aden or Elmore
$xsito=($valorex + 131072)/400-7; //131072=Offset DB; 400 = multiplier half image x; 7 = Icon Offset
$ysito=($valorey + 32768)/410-7;}
else {
$xsito=($valorex - 98336)/325-7+510;
$ysito=($valorey + 229352)/325-7+719+90; //719 = Offset for image.
}
|
ok i get so the new map should be
$xsito=($valorex + 131072)/513.5-7; //Aden
$ysito=($valorey + 32768)/384-7; //Aden
now the 7= the icon offset hows that work default layout each icon map is 12 pixs.. so not sure yet how work.. and what be for 5pix one.
LOL my calculations are way off :P
What would be cool save me bandwidth and such is a image or somthing is made every 5 min sorta same way but makes the calulations on server pc then web server grabs info every like 5-10 min from server reduce lag just be a nice map have on front site.. dont know if it's possible..