HelpTile editing feature?

Posts 1–2 of 2 · Page 1 of 1
Tile editing feature?
I remember that a few years ago there was a feature on a hacked client that changed the quicksand tiles in tomb to regular tiles. Anyone know what I'm talking about?
Grab UPDATE packet from server, iterate over tile array. Find any tiles that are instances of the objectId you want to replace (ie look for quicksand tiles in the UPDATE packet) replace the id with your desired tile id then send to client. EZ

Done like so
Code:
public void onUpdatePacket(Packet p){
		int sand = GameData.nameToTile.get("Light Sand").id;
		int sand2 = GameData.nameToTile.get("Dark Sand").id;
		UpdatePacket pack = (UpdatePacket)p;
		for(Tile t : pack.tiles){
			if(t.type==sand || t.type==sand2){
				t.type=GameData.nameToTile.get("Stone Square").id;
			}
		}
		sendToClient(pack);
		p.send=false;
	}
Result:


Warning though the QS tiles set your speed to degrade over time if the server detects that your speed isnt what its supposed to be you will likely get kicked pretty quickly. Better for visual enhancements

Gave me a cool idea to let users define tile id mappings to basically create custom renditions of normal maps. Would be pretty neato
Posts 1–2 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us