Ok, now I have edited it...so, heres what I have now:
in the level:
PHP Code:
//#CLIENTSIDE
function onPlayerChats(){
if (player.chat == "/buy level"){
triggeraction(0,0,"serverside","npc","room",player.account);
player.chat = "Baught A Room!";
}
}
in the npc:
PHP Code:
function onActionServerside(){
if (params[0] == "room"){
player.rupees -=5000;
clientr.hasroom = "true";
copylevel("gle_pr-test.nw","levels/gle_pr-"@params[1]@".nw");
clientr.gle = "gle_pr-"@params[1]@".nw";
}
}
Now, the money is subtracted, the clientr.flags are set...but no level is being made.