View Single Post
  #16  
Old 10-18-2011, 02:46 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
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 View Post
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.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote