It is currently Tue Dec 02, 2008 5:51 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Question about commands 097
PostPosted: Sun Sep 30, 2007 7:50 pm 
Offline

Joined: Tue Jul 24, 2007 10:21 am
Posts: 38
my question is how exactly are the commands that are individual package folders work? I mean like in the magery skill package. the seer command .spellbook is there. how does POL know that that is where that command is?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 01, 2007 4:48 am 
Offline

Joined: Sat Aug 05, 2006 11:43 am
Posts: 176
Is this with the official release package? I noticed it is very different to say the least.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 01, 2007 10:19 am 
Offline

Joined: Tue Jul 24, 2007 10:21 am
Posts: 38
yes it is the official release... it is much better organized, in my opinion, than it was before. but i'm asking how does it know where the command is? i just don't understand that.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 01, 2007 10:30 am 
Offline
User avatar

Joined: Fri Feb 10, 2006 12:15 am
Posts: 225
Check out file config/cmds.cfg.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 01, 2007 10:37 am 
Offline

Joined: Tue Jul 24, 2007 10:21 am
Posts: 38
that's part of what confuses me. it doesn't point to those individual directories. like the spellbook command is in the magery package.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 01, 2007 11:58 am 
Offline
User avatar

Joined: Fri Feb 10, 2006 12:15 am
Posts: 225
POL scans through enabled packets on startup and checks if there are usable command scripts.

http://docs.polserver.com/pol096/scripttypes.php -> TextCommandScript wrote:
Where Does It Live?
The 'program' in a .src file, in a command level subdir of a package or /scripts/textcmd

To Define
Place the script in a command level subdir or /scripts/textcmd, or a package after defining the command level path in cmds.cfg.


Check your cmds.cfg. You probably have something like this in there:

Code:
CmdLevel Player
{
    ----
}

CmdLevel Dev
{
    ----
    Alias    God
}


So, let's say you have package TEST, with enabled 1 in pkg.cfg; if you have a command script test.ecl in directory TEST/textcmd/God/, developer should be able to use it in game. If folder God is renamed to Dev, command would still work (after a boot, that is).

Answer to your question is thus: POL knows .spellbook because of its location.

--

And if so happens that I'm wrong and facts I told happen to be not so valid, correct me.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 01, 2007 6:30 pm 
Offline

Joined: Tue Jul 24, 2007 10:21 am
Posts: 38
ok.. now i understand it better. thank you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl