Question about commands 097
Question about commands 097
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?
POL scans through enabled packets on startup and checks if there are usable command scripts.
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.
Check your cmds.cfg. You probably have something like this in there: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.
Code: Select all
CmdLevel Player
{
----
}
CmdLevel Dev
{
----
Alias God
}
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.