On Wed, Jan 16, 2002 at 07:42:07PM -0700, Mallek wrote:
> I am cleaning up the output look on wiznet
> it works fine accept when i put in a get_trust check
> however the check works all the way up to flag:
>
> #define WIZ_RESTORE (P) <-- this flag works
> #define WIZ_LOAD (Q) <--- Bugs out here
>
> GDB Output
>
> #0 0x8065fa2 in do_wizchan (ch=0x40608958, argument=0x40607ef4 "")
> at act_wiz.c:409
> 409 if (wiznet_table[WIZ_LOGS].level <= get_trust(ch))
> (gdb) backtrace
> #0 0x8065fa2 in do_wizchan (ch=0x40608958, argument=0x40607ef4 "")
> at act_wiz.c:409
> #1 0x808cfba in interpret (ch=0x40608958, argument=0x40607ef4 "")
> at interp.c:682
> #2 0x807163c in substitute_alias (d=0x40607ad0, argument=0x40607eed
> "wizchan")
> at alias.c:97
> #3 0x80727d1 in game_loop_unix (control=4) at comm.c:852
> #4 0x8072364 in main (argc=4, argv=0xbffffca4) at comm.c:436
>
> code below:
>
> ********This Works *******
>
> send_to_char(" RESTORE: {R[",ch);
>
> if (wiznet_table[WIZ_RESTORE].level <= get_trust(ch))
> {
> if (IS_SET(ch->wiznet,WIZ_RESTORE))
> send_to_char("{W*{R]{w ||\n\r",ch);
> else
> send_to_char(" ]{w ||\n\r",ch);
> }
> else
> send_to_char("{W-{R]{w ||\n\r",ch);
Maybe it's interesting to know that a lof of the tables in Rom are
not enumerated (if that's what you call them) but the index is in
the structure itself. So you have to go through the whole array to
find out what the index is you need, you can't jump to it by using
your index.
Edwin
--
Edwin Groothuis | Personal website: http://www.MavEtJu.org
[EMAIL PROTECTED] | Interested in MUDs? Visit Fatal Dimensions:
------------------+ http://www.FatalDimensions.org/