[Tinymux] Coding Question
Jake Nelson
jnelson at soncom.com
Sat May 14 04:25:09 EDT 2005
I think this is a permissions issue (the hasattr returning #-1
PERMISSION DENIED). Check if the original command name had an
@addcommand set for it, or something similar. If so, that should be
changed to match the new name.
-- Jake
PS. take a look at 'help attrcnt()' and 'help @if'. You might find them
useful.
Sabbath Silverclaw wrote:
>I've a coding question and am in need of some help.
>
>Here's the problem. In a game I am helping to code, the owner wants
>all OOC commands to have the @ symbol on them and requested the SNG
>+bg command be changed to @info. At first, I thought it should be as
>easy as changing the command names from +bg +bgrep... to @info and
>@inforep... for all necessary parts. It didn't work.
>
>Here's an example of the code I've changed:
>
>
>CMD-BG_READ [#15]: $@info *:@switch
>and(isnum(%0),hasattr(%#,BACKGROUND_%0))=0, at pemit %#=Invalid section
>number.,{@pemit %#=[repeat(-=,39)]%R%BThis is section %0 of
>[words(lattr(%#/BACKGROUND_*))]
>sections.%R[repeat(=-,39)]%R[get_eval(%#/BACKGROUND_%0)]%R[repeat(-=,39)]}
>
>The error I'm getting is either Invalid section nukber, or nothing at all.
>
>Any and all help is greatly appreciated.
>
>Thank you:
>
>Sabbath
>
>
More information about the Tinymux
mailing list