Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   copylevel (https://forums.graalonline.com/forums/showthread.php?t=50429)

Blue_Dragn 01-16-2004 01:57 AM

copylevel
 
copylevel serverside right?

If i am doing everthing right...is copylevel able to take variables and make a new level using the variable/string values?

Edit:

i had looked up the old copylevel threads, but they didnt help me like i needed

xManiamaNx 01-16-2004 02:20 AM

copylevel levelname,newlevelname

of course, serverside only.

All copylevel does is make an exact copy of a level. copylevel can't edit strings/vars in levels. (Atleast not to my knowledge)

Blue_Dragn 01-16-2004 02:25 AM

Quote:

Originally posted by xManiamaNx
copylevel levelname,newlevelname

of course, serverside only.

All copylevel does is make an exact copy of a level. copylevel can't edit strings/vars in levels. (Atleast not to my knowledge)

So then i have all the syntax down right, my pathname for the new level etc.

And what i ment was does it accept strings as values

so you could copy the level over to a new folder but with an extension diffrent to that of the first while still retaining the origonal prefix levelname

xManiamaNx 01-16-2004 02:29 AM

I'm not really sure what you are saying.

You mean like:
copylevel blah.nw,places/#a.nw ?

If that's what you mean, you can do that. (#s #v etc will also work in place of #a)

Blue_Dragn 01-16-2004 02:31 AM

Quote:

Originally posted by xManiamaNx
I'm not really sure what you are saying.

You mean like:
copylevel blah.nw,places/#a.nw ?

If that's what you mean, you can do that. (#s #v etc will also work in place of #a)

Right so then i dont understand what could be wrong, im calling copylevel from a weapon npc, but it wont copy the level infact it wont do anything at all.

Kinda confusing, i guess ill go play somemore, thanks for help

xManiamaNx 01-16-2004 02:45 AM

Post the part of the script that does the level copying and I can probably help.

Blue_Dragn 01-16-2004 02:52 AM

Quote:

Originally posted by xManiamaNx
Post the part of the script that does the level copying and I can probably help.
well

NPC Code:

if (actionserverside) {
if (strequals(#p(0),copylvl)) {
copylevel #p(1),test/#p(1)_#p(3).nw;
}
}
//#CLIENTSIDE
if (playerchats) {
if (startswith(copylevel,#c)) {
tokenize #c;
triggeraction 0,0,serverside,-System,copylvl,#F,#a,#t(1);
}
}



thats what ive done, planned to put a personal extention i had named on the end of level #F i was standing on.

Edit:

fixed the part in the initital code that was messed up anyways

xManiamaNx 01-16-2004 03:12 AM

copylevel #p(1).nw,test/#p(1)_#p(3).nw;

should be

copylevel #p(1),test/#p(1)_#p(3).nw;


#F/#p(1) would return levelname.nw
and copylevel would look for levelname.nw.nw

Blue_Dragn 01-16-2004 03:18 AM

Quote:

Originally posted by xManiamaNx
copylevel #p(1).nw,test/#p(1)_#p(3).nw;

should be

copylevel #p(1),test/#p(1)_#p(3).nw;


#F/#p(1) would return levelname.nw
and copylevel would look for levelname.nw.nw

I had caught that part after i posted that x_o;

Still though i have fixed that part, then when i execute to go to copylevel it does not copy the level, my folder is still empty.

xManiamaNx 01-16-2004 03:50 AM

Ah yes.. #F should be #L. That should fix it.

Blue_Dragn 01-16-2004 03:57 AM

Quote:

Originally posted by xManiamaNx
Ah yes.. #F should be #L. That should fix it.
Should but didnt, i still dont see my level copied into the folder :(

xManiamaNx 01-16-2004 04:17 AM

hrm.. weird. I tested it on Maloria and it worked fine.

Blue_Dragn 01-16-2004 04:34 AM

Quote:

Originally posted by xManiamaNx
hrm.. weird. I tested it on Maloria and it worked fine.
ew, i dont know what the problem is then :(

Thought 01-16-2004 04:37 AM

I believe there is a serveroption needed to be enabled to be able to use copylevel, I could be wrong though.

Blue_Dragn 01-16-2004 05:11 AM

Quote:

Originally posted by Thought
I believe there is a serveroption needed to be enabled to be able to use copylevel, I could be wrong though.
argh, which could it be then -_-

Edit:

if there is one at all, and if anyone else could shed some light on this, that would be swell too

xManiamaNx 01-16-2004 11:02 PM

No serveroption is needed. If there is, it must not apply to Maloria :megaeek:


All times are GMT +2. The time now is 09:05 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.