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 02-03-2007, 06:30 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
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.
__________________
Reply With Quote
  #2  
Old 02-03-2007, 06:38 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
load the level folder? :]
__________________
Reply With Quote
  #3  
Old 02-03-2007, 06:41 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
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 >_>
__________________
Reply With Quote
  #4  
Old 02-03-2007, 06:45 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
obj.loadfolder( string, float);

hmm, dunno if its possible with clientrc
__________________
Reply With Quote
  #5  
Old 02-03-2007, 06:49 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
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.
__________________
Reply With Quote
  #6  
Old 02-03-2007, 10:24 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Inverness View Post
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.
__________________
Do it with a DON!
Reply With Quote
  #7  
Old 02-04-2007, 06:43 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
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.
__________________
Reply With Quote
  #8  
Old 02-05-2007, 10:54 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
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.
Reply With Quote
  #9  
Old 02-05-2007, 10:59 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
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.
__________________
Reply With Quote
  #10  
Old 02-05-2007, 11:00 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Quote:
Originally Posted by Inverness View Post
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?
Reply With Quote
  #11  
Old 02-05-2007, 11:35 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Chandler View Post
Yeah, why were you going to do it anyway?
read post #5.
__________________
Reply With Quote
  #12  
Old 02-05-2007, 11:44 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
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.
__________________
Reply With Quote
  #13  
Old 02-06-2007, 09:03 AM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Quote:
Originally Posted by Chompy View Post
read post #5.
Ah, I see.
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 02:29 PM.


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