Chi Hoai Tran wrote: > > On Mon, 14 Oct 1996, Brian Williams - Nashak wrote: > > > chuckle.. this is extremely simple just put "if (GET_CLASS(ch) != > > CLASS_WARRIOR && GET_CLASS(ch) != CLASS_PALADIN)" to replace != warrior.. > > :P hope I helped > > > > A much better solution is to have the check:- > > if (!GET_SKILL(ch, SKILL_KICK)) { > send_to_char("Heh, you dont know what you are doing!\r\n", ch); > return; > } > > for other skills, just replace SKILL_KICK with whatever. This way, > whenever you want to give the skill to a new class you just created, > you dont have to modify any skills. > > Horus @ Dark Realms ---> ftoomsh.progsoc.uts.edu.au > > +-----------------------------------------------------------+ > | Ensure that you have read the CircleMUD Mailing List FAQ: | > | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | > +-----------------------------------------------------------+ This does work of course the warrior or whatever must practice the skill at least once to actually have it do kick who? Not a big draw back. -- |*******************************************************************| | Andrew Jones Computer and Information Science Major | | E-Mail: | | Gladstone: mch@gladstone.uoregon.edu | | Other: mch@thantos.mudservices.com | |*******************************************************************| +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST