Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Not Copying Level (https://forums.graalonline.com/forums/showthread.php?t=83402)

[email protected] 12-29-2008 07:45 AM

Not Copying Level
 
PHP Code:

function onActionServerSide()
{
  switch( 
params[0] )
  {
    case 
"Rpg_Start":

      echo(
"Setting Battle Up!");
      
this.Fightlevel params[2];
      
this.TileT params[5];
  
copylevel("nerion_battle1.nw","battles/battle"@params[5]@"_"@params[1]@".nw");  
 
    }



Can anybody tell me why this will not copy the level

Tigairius 12-29-2008 07:49 AM

Is "nerion_battle1.nw" in the levels/ folder? Maybe you should include that 'levels/' if not, and make sure the level is configured properly in folder configuration.

Also make sure the npc-server has rights to 'r levels/nerion_battle1.nw' and 'rw levels/battles/battle*.nw"

[email protected] 12-29-2008 07:56 AM

hmm thanks tig, i had the level it the folder levels/battles/templates. Is there anyway to copy the level from there

Tigairius 12-29-2008 08:15 AM

Quote:

Originally Posted by [email protected] (Post 1453170)
hmm thanks tig, i had the level it the folder levels/battles/templates. Is there anyway to copy the level from there

Yes, just provide the correct path to that folder, should work fine, as long as it's in the levels/ folder.

[email protected] 12-29-2008 10:56 AM

Quote:

Originally Posted by Tigairius (Post 1453171)
Yes, just provide the correct path to that folder, should work fine, as long as it's in the levels/ folder.


Ok that you for the help :p


All times are GMT +2. The time now is 09:47 PM.

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