![]() |
|
|
|
|
#1 |
|
Архивный участник
Join Date: Mar 2005
Posts: 74
|
I've make an easy script to take the position of player and to know the exactly coords position of any player (very useful in C2 that got /loc not workin).
Now with this method i can use the map to make coord for new span in npcpos. Easier to see that to say here the screen... |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Mar 2005
Posts: 74
|
here the script:
sorry for multiply post but my connection suck... |
|
|
|
|
#3 |
|
Архивный участник
Join Date: Feb 2005
Posts: 238
|
wow thats pretty cool. Itd be nice if we can get a bigger higher resolution map especially for a server like mines where 2000 people could be logged in at one time.
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Mar 2005
Posts: 133
|
Great job bro.
Worked great. You must of used png for your own copy or test copy. Still have that in there for the images but the ones you packaged were jpg ![]() Will have to change them couple of lines not a big deal. Yeah bigger map would also be cool like Dam said for higher number of players be hard to target one players on this one out of 2000+ hehe You could try this one out I uploaded Well shit I did not want to show the pic just link it. Keep up the good work. Peace, Dubie |
|
|
|
|
#5 |
|
Архивный участник
Join Date: May 2005
Posts: 154
|
Man wish we had really smart people I mean thats sweet work but saw one time you all think sweet i think java or somthing map shows all locations of the players in the world... was a wow server. it would be sorta sweet have that for admin use or even player use hehe.
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Mar 2005
Posts: 280
|
Havent looked at source, just wanted to say good morning europe! :-)
But, if you use the x,y,z from database you may know they aint all that correct (more like totally wrong and written to every 5 min) But thats just my experience.. |
|
|
|
|
#7 |
|
Архивный участник
Join Date: May 2005
Posts: 154
|
oh wait LOL I was not looking this guy made somthing like this LOL I only looked at the 2nd image thought was just a nice map LOL cool!
Don't think can do in php like a biger map then guy added and be able zoom or have more then 1 map layout.. so people like small one can use or click on for bigger map and such., |
|
|
|
|
#8 |
|
Архивный участник
Join Date: Mar 2005
Posts: 74
|
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... |
|
|
|
|
#9 | |
|
Архивный участник
Join Date: May 2005
Posts: 154
|
Quote:
![]() 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.. |
|
|
|
|
|
#10 | ||
|
Архивный участник
Join Date: Mar 2005
Posts: 74
|
Quote:
$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. } |
||
|
|
|
|
#11 |
|
Архивный участник
Join Date: May 2005
Posts: 154
|
ahh cool. I did bring down size of my icons to 5 don't know made diffrence in where people are if correct or not heres little shot of it. was just messing around hehe.
|
|
|
|
|
#12 | |||
|
Архивный участник
Join Date: May 2005
Posts: 154
|
Quote:
$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.. |
|||
|
|
|
|
#13 |
|
Архивный участник
Join Date: Apr 2005
Posts: 196
|
hm great stuff, will look into this later
@kane of course thats possible, maybe will try later |
|
|
|
|
#14 | |
|
Архивный участник
Join Date: May 2005
Posts: 216
|
Quote:
Nice helper for GM's |
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: May 2005
Posts: 216
|
here is a hint how to narrow online players info a little bit more accurate:
replace $querylistaplayer="SELECT char_name,xloc,yloc,race,zloc FROM [user_data] WHERE login > logout ORDER BY char_name ASC"; with $querylistaplayer="SELECT char_name,xloc,yloc,race,zloc FROM [user_data] WHERE login>logout AND logout>0 AND login>0 ORDER BY char_name ASC"; and $querynumeroplayer="SELECT count(*) FROM [user_data] WHERE login > logout"; with $querynumeroplayer="SELECT count(*) FROM user_data WHERE login>logout AND logout>0 AND login>0"; |
|
|
|
|
#16 |
|
Архивный участник
Join Date: May 2005
Posts: 154
|
be cool if like at the ned script be like map?=kane
and it displays just kane or like map?=kane,all and would make kane show up as image 6 or w/e image you want and then it stands him out.. |
|
|
|
|
#17 |
|
Архивный участник
Join Date: May 2005
Posts: 367
|
this is the map for C2 correct image size for this project
size is better 810x719 than 800 x 719 btw.. |
|
|
|
|
#18 |
|
Архивный участник
Join Date: May 2005
Posts: 979
|
Heh I created version with C2 maps + better place descriptions + in title you see player name + location + clan .
next version (I post it here) will have player filter = you type player name and you see only that player on map )
|
|
|
|
|
#19 | |
|
Архивный участник
Join Date: May 2005
Posts: 154
|
Quote:
|
|
|
|
|
|
#20 |
|
Архивный участник
Join Date: May 2005
Posts: 373
|
Yes, this is an awsome job, quite usefull because at my work on the cybercafe i can keep an eye on people :P
I will keep an eye on the next releases, keep the good work and thank you for releasing this. Yours. EntroX |
|
|
|
|
#21 |
|
Архивный участник
Join Date: May 2005
Posts: 373
|
Sorry, double post, i got some weird XML error and i wasnt sure if this got posted.
Yours. EntroX |
|
|
|
|
#22 |
|
Архивный участник
Join Date: Apr 2005
Posts: 104
|
hmm i have a problem with it, when i copy it in the wwwroot and try http://127.0.0.1/mappeadmin.php ill become this (look attachment), and yes i have modified the php file to my ip, sql nick and pw
anyone can help pls ?
|
|
|
|
|
#23 |
|
Архивный участник
Join Date: May 2005
Posts: 367
|
does your IIS run php ?..
|
|
|
|
|
#24 |
|
Архивный участник
Join Date: Apr 2005
Posts: 104
|
hmm where i can enable php for IIS, i think only Asp is enabled, but iam not sure?
|
|
|
|
|
#25 |
|
Архивный участник
Join Date: Apr 2005
Posts: 104
|
ok Php Version 4 and 5 in IIS is activated
ok i have modified some things in the IIS, and now i get this: |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|