Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-28-2011, 07:08 PM
skillmaster19 skillmaster19 is offline
Registered User
Join Date: Oct 2010
Posts: 392
skillmaster19 will become famous soon enough
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)
Reply With Quote
  #2  
Old 07-28-2011, 07:16 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
There's an instance manager in the Code Gallery.
Reply With Quote
  #3  
Old 07-28-2011, 07:16 PM
cyan3 cyan3 is offline
Registered User
cyan3's Avatar
Join Date: Nov 2005
Location: England
Posts: 2,919
cyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant future
This link might help a little: http://forums.graalonline.com/forums...ad.php?t=87262
Reply With Quote
  #4  
Old 07-28-2011, 07:22 PM
skillmaster19 skillmaster19 is offline
Registered User
Join Date: Oct 2010
Posts: 392
skillmaster19 will become famous soon enough
Quote:
Originally Posted by cyan3 View Post
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?
Reply With Quote
  #5  
Old 07-28-2011, 07:25 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by skillmaster19 View Post
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.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #6  
Old 07-28-2011, 10:57 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by skillmaster19 View Post
or is there a better way?
Yeah use cbk's Instance Manager, there's no shame in using scripts in the Code Gallery.
__________________
Quote:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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