Maybe you should do your tiledefs correctly. The syntax is addtiledef("tileset","level prefix",type); addtiledef2("tileset part","level prefix",x,y); There are two kinds of tilesets: type 0 are the default pics1-style tilesets; type 1 are the NewWorld-style tilesets that Era and Graal Kingdoms use. The two tileset types are different sizes.
PHP Code:
//#CLIENTSIDE
function onCreated() {
addtiledef("DV_Tileset.png","dv_ow",0);
addtiledef("DV_Tileset-inside.png","",0);
}
You do not need to re-write your tiledefs every five-hundredths of a second. Tiles definitions for each server you've been on are saved in your Graal folder and will load when you are in the level that starts with whatever you put. If you have more than one tileset that would load in a certain level it will load the first tileset listed. If you have tileset parts (addtiledef2) they will sit over the tileset that is loaded with addtiledef. Tileset parts with the same coordinates will only load the first instance of those coordinates. Tileset parts that cover the same areas of the tileset will be shown in the order that they are loaded; the later part will sit over the former. Messing up tiledefs just makes it so you cannot see the tiles, it does not freeze the client. Having stupid timeout loops can freeze the client.
If you knew what any of these commands did you wouldn't be having issues. Stop copying and pasting other peoples' codes and start learning what they actually do.