Thread: copylevel?
View Single Post
  #10  
Old 06-05-2007, 06:28 AM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
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.
Reply With Quote