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.