> > hello, I am adding a Paladin class to circle 311 and making the paladin > have some of the skills as a warrior and cleric. the cleric part works fine > with cure_light and stuff but kick doesnt work, he can practice but > he cant actually kick anyone > > In act.offensive.c I added != PALADIN > > ACMD(do_kick) > { > struct char_data *vict; > int percent, prob; > > if (GET_CLASS(ch) != CLASS_WARRIOR != CLASS_PALADIN) { > send_to_char("You'd better leave all the martial arts to fighters.\r\n", ch$ > return; > } > one_argument(argument, arg); > > is there anything in the code that you can see which would prevent him from > kicking? He loads fine, no errors, and I am sure I am going to have to do > the same for do_rescue and do_bash also, but I am just testing this out one > at a time... > > Thanks for the help! > > Greg Breault > gregbt@ids.net > 155.212.1.12 5000 > > Well instead of: if (GET_CLASS(ch) != CLASS_WARRIOR != CLASS_PALADIN) { I have this: if (GET_CLASS(ch) != CLASS_WARRIOR && GET_CLASS(ch) != CLASS_PALADIN) { There is probably a better statement than that, but this was the first think that I ever coded in my life, and it works fine ;) Pegasus
This archive was generated by hypermail 2b30 : 12/18/00 PST