View Single Post
Old 18.05.2005, 08:25   #10
andreagighi
Архивный участник
 
Join Date: Mar 2005
Posts: 74
Default

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.
}
andreagighi is offline