In the NPC-Server's rights, add
rw levels/*.nw
Here is an example of how to copy levels (GUI/Weapon-Script):
PHP Code:
function onActionServerSide( cmd )
{
switch ( cmd )
{
case "createHouse":
{
temp.levelCopy = "levels/housetemplate.nw"; // Copys from levels/housetemplate.nw
temp.newCopy = format( "levels/house_%s.nw", player.account ); // New level in levels/ and named house_ACCOUNT.nw
temp.templateLevel.loadLines( temp.levelCopy );
saveLines( temp.newCopy, temp.templateLevel, false );
break;
}
}
}
//#CLIENTSIDE
function onPlayerChats()
{
if ( player.chat == "/create house" )
{
triggerServer( "gui", name, "createHouse" );
}
}