Graal Forums

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

Inverness 02-03-2007 06:30 PM

Serverside Level List?
 
I'm wondering if there is like a serverside array of all the levels on the server. It would be useful because there is a class I need to join to the level objects. I can already find them with findlevel() if I have the name. And I never knew findlevel() existed until I just tried it on a whim. :D

Chompy 02-03-2007 06:38 PM

load the level folder? :]

Inverness 02-03-2007 06:41 PM

I'm thinking of the NPC Level List. You can edit with RC but wondering if you can access by script. Didn't think of loading the folder though >_>

Chompy 02-03-2007 06:45 PM

obj.loadfolder( string, float);

hmm, dunno if its possible with clientrc

Inverness 02-03-2007 06:49 PM

I know how to load folders >_> not the point.

I'm needing this because in my mudlib all items exist within a container object and the functions to add/remove them are in container object. I was thinking I could make a container on the level object, to handle items rather than using putnpc2(). Then we simply move the item from player's container to the level's then add an X and Y.

zokemon 02-03-2007 10:24 PM

Quote:

Originally Posted by Inverness (Post 1272732)
I know how to load folders >_> not the point.

I'm needing this because in my mudlib all items exist within a container object and the functions to add/remove them are in container object. I was thinking I could make a container on the level object, to handle items rather than using putnpc2(). Then we simply move the item from player's container to the level's then add an X and Y.

If the class you join is serverside you could maybe just do a quick check to see if the lcass is joined when going serverside and if it isn't then join it? I dunno, just a thought.

Inverness 02-04-2007 06:43 AM

Yea I thought of that too, but just wanted to know if a list existed. Though I think I'm going to go with the folder loading. I think loadfolder() has option to be recursive.

Chandler 02-05-2007 10:54 PM

Hmm, is there any reason why you'd like to do this? What is it that you're trying to accomplish? Seems pretty far-fetched if you ask me.

Inverness 02-05-2007 10:59 PM

I'm needing to join a class to all levels on the serverside.
But I've decided that I'm not going to use that approach for my system, so it doesn't matter anymore.

Chandler 02-05-2007 11:00 PM

Quote:

Originally Posted by Inverness (Post 1273747)
I'm needing to join a class to all levels on the serverside.
But I've decided that I'm not going to use that approach for my system, so it doesn't matter anymore.

Yeah, why were you going to do it anyway?

Chompy 02-05-2007 11:35 PM

Quote:

Originally Posted by Chandler (Post 1273748)
Yeah, why were you going to do it anyway?

read post #5.

Inverness 02-05-2007 11:44 PM

I decided that adapting containers to levels also was simply too much of a hassle, since I already have a good way of saving and loading item data.

Chandler 02-06-2007 09:03 AM

Quote:

Originally Posted by Chompy (Post 1273764)
read post #5.

Ah, I see.


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

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