Quote:
Originally Posted by Raelyn
If I am going to be replacing the default tileset, how would I apply it online? Not really sure how to use addtiledef online.
The tiles has to be in levels\images\ also, right?
|
If I'm not mistaken about your request, you want to make it a Weapon-NPC that adds to people as they log in. Within the Weapon-NPC, the following lines would be necessary to achieve the same output as if you were doing it offline in the Level Editor:
PHP Code:
//#CLIENTSIDE
function onCreated() {
removeTileDefs("");
addTileDef("tileImageFile.ext", "prefix", type);
}
Yes, "
tileImageFile.ext" must be in a valid image directory as defined in your Folder Options, generally in the folder you specified, or any custom sub-folder.