Graal Forums

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

fowlplay4 01-26-2006 02:38 AM

Copylevel Problem?
 
Ok so im trying to make an npc that will copy levels.

PHP Code:

// NPC made by Jerret
if (created) {
 
setimg house.png;
 
this.var=3;
 
setstring this.level,playerhouse_#v(this.var).nw,32,32;
 
copylevel examplehouse.nw,levels/insides/#I(this.level,0);


But when I go check for the level I cant find it. Now this is the first time using the command some im not really sure if its supposed to be invisible in the file manager.

Im not sure if its a folder problem but heres the level section of the Folder Configuration.

#LEVEL CONFIGURATION
level *.graal
level *.nw
level *.gmap
level levels/*.*
level levels/insides/*.*

Note: I couldnt put it in a php code block because it wouldn't display certain parts correctly.

Is there a server option that prevents me from doing this or what?
Any help would be much appreciated. :)

ZeLpH_MyStiK 01-26-2006 02:47 AM

I dont think you need "levels/" in the code.

fowlplay4 01-26-2006 03:01 AM

Wow.. it really was that easy. Thanks a great deal man. :)

talkingnoodle 01-28-2006 04:41 PM

o_O i never heard of copylevels

Skyld 01-28-2006 06:03 PM

Quote:

Originally Posted by fowlplay4
PHP Code:

#LEVEL CONFIGURATION
level   *.graal
level   
*.nw
level   
*.gmap
level   levels
/*.*
level   levels/insides/*.* 


The folder configuration doesn't need levels/ in it either, since the folder configuration is already relative to levels.


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

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