Regarding the random string, you could do this:
PHP Code:
// List of available trash
temp.listOfTrash = {
{ "Trash #1", "nameofimage" },
{ "Trash #2", "nameofimage" },
{ "Trash #2", "nameofimage" }
};
// Generates a random trash entity from the trash array
temp.trashToSpawn = randomstring(temp.listOfTrash);
// Sets temporary vars to increase code readability
temp.trashName = temp.trashToSpawn[0];
temp.trashImage = temp.trashToSpawn[1];
Quote:
Originally Posted by Gunderak
if you do if onwall serverside it sais it is onwall constantly.
|
Are you using a custom tiletype 1 (newtiles) tileset on the server? Sounds like you are. To fix it you need to add the levels to
newtilesetlevels in the serveroptions.
Example:
PHP Code:
newtilesetlevels=mylevelname1.nw,overworld1_,mylevelname2.nw,mylevels_,mal
As you can see it doesn't have to be exact level names.