Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Copying/creating a level via script (https://forums.graalonline.com/forums/showthread.php?t=134264026)

skillmaster19 07-28-2011 07:08 PM

Copying/creating a level via script
 
Can someone give me a very basic example of copying and creating a level from the copied level, or at least show me where I can find all the functions for it? I need to create a simple instanced quest for a "test" that requires this but I don't want to ask for the actual thing for it because that would be cheating. I will need to know how to:
create the level, with npcs.
identify the level name via script and the npcs via script(I have multiple levels for the instance, npcs in one level will need to effect npcs in the other, but only to 1 instance)
(please don't send me straight to the instance manager in the code gallery)

Crow 07-28-2011 07:16 PM

There's an instance manager in the Code Gallery.

cyan3 07-28-2011 07:16 PM

This link might help a little: http://forums.graalonline.com/forums...ad.php?t=87262

skillmaster19 07-28-2011 07:22 PM

Quote:

Originally Posted by cyan3 (Post 1660728)

Thank you very much this is very useful, but I forgot to ask how to delete a level(with a script). I will need to because eventually the server's storage would fill up. would I do deleteFile(levelnamevar); or is there a better way?

xXziroXx 07-28-2011 07:25 PM

Quote:

Originally Posted by skillmaster19 (Post 1660735)
Thank you very much this is very useful, but I forgot to ask how to delete a level(with a script). I will need to because eventually the server's storage would fill up. would I do deleteFile(levelnamevar); or is there a better way?

deleteFile("levelname"); yes, without specifying a folder path.

fowlplay4 07-28-2011 10:57 PM

Quote:

Originally Posted by skillmaster19 (Post 1660735)
or is there a better way?

Yeah use cbk's Instance Manager, there's no shame in using scripts in the Code Gallery.


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

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