[RENAMED]server-sided map icons
Because there are no posts ive added an anti leach
Ok this is for a renamed client, and will mean you can spawn map icons server sided!
Client-Sided:
ok firstly, in client.java add this
Code:
public Sprite minimaps(String url) {
Sprite thing = new Sprite(url);
return thing;
}
then in boolean parsepacket() add this with the rest of the frames.
Code:
if(frameType == 312) {
try {
String url = inStream.readString();
int minix = inStream.writeByteC();
int miniy = inStream.writeByteC();
markMinimap(minimaps(url), ((minix - baseX) * 4 + 2) - myPlayer.x / 32, ((miniy - baseY) * 4 + 2) - myPlayer.y / 32);
} catch(Exception e) {
e.printStackTrace();
}
frameType = -1;
return true;
}
Server-Sided:
add this anywhere in client.java
Code:
public void markminimap(String url, int x, int y) {
if(distanceToPoint(x, y) <= 60) {
outStream.createFrame(312);
outStream.writeString(url);
outStream.writeByteC(x);
outStream.writeByteC(y);
}
}
Ok to use this, in case 121 just add
Code:
markminimap(URL, X, Y);
URL = the DIRECT link to your photo
X = the x-coord to where to put on minimap
Y = the y-coord to where to put on minimap
This works on devolution for sure and should work on any renamed client.
Credits:
Blood isle (and people in credits on his post)- 90% for releasing map icons
me - 10% For making it a frame, making it load from url and making it lag less with the distanceto bit.
Now, you can do [Only registered and activated users can see links. Click Here To Register...].
Because there are no posts ive added an anti leach
The anti leach is:
You have to use the addon boolean, put it in the client, follow blood isles tutorial, but instead of using the markminimap() thing, just type maps();, put the cfg file on a remote host and use ftp to do it, or just fix up the packet, what ever way, i have it working for me and had people posted i wouldnt of added the anti leach