Re: [NEWBIE][CODE]Restricting Skill Usage

From: Jason Ragsdale (jrags@mindspring.com)
Date: 01/12/99


Well you could just add

if (GET_CLASS(ch) != CLASS_THIEF) {
send_to_char("What the F@#K are you trying to do!!!?!?!\r\n", ch);
return;
}

Stock circle should have a array to restrict skills to each class. It's
been a while since I have coded in stock circle so sorry I can't help
you further.
-Jason

Anthony Benjamin wrote:

> I was just looking for the function, etc. To restrict a certain skill
> to a certain class (i.e. Only thieves can use the skill sneak, so that
> if anyone except a thief types sneak, it just says Huh!?!.) All I
> really need to know is the syntax in which the function GET_CLASS
> returns my info....(if that is the right function even...)
>
> Anthony - Newbie Coder
>  benjamin@powerweb.net


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



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