Re: [CODE] Level Restriction Define in do_wear and Do_wield

From: Axiem (bertelse@SWBELL.NET)
Date: 05/18/98


Quinn ShadowStalker wrote:

> Ok I finished writing my own code for object level restrictions, but I
> cant get them properly defined in the code, anyone wanna help me?
> this is what I got so far but its not working :(  Plus I dunno how I would
> define this in do_wield.
>
>    if (GET_OBJ_LEVEL(obj) > GET_LEVEL(ch) {
>     send_to_char("You have to be a higher level to wear that!\r\n", ch);
>     return;
>   }
>

Kinda silly. If this is the only code you have, oc it's not going to work. add
a variation of the snippit above in the function that sees if a player can use
a piece of eq.


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST