Re: [NEWBIE][CODE] Where can I get second attack?

From: DJ Pure (pure@ozramp.net.au)
Date: 12/15/96


G'Day.
	Yep. My guess was perfect.
Doesn't it look weird that for the other classes, they have the following
format :-
/*Warrios */
spell_level(SKILL_xxx, CLASS_WARRIOR, y)
spell_level(SKILL_xxx, CLASS_WARRIOR, y)
spell_level(SKILL_xxx, CLASS_WARRIOR, y)
spell_level(SKILL_xxx, CLASS_WARRIOR, y)
spell_level(SKILL_xxx, CLASS_WARRIOR, y)

where xxx are different skill names, and y the levels ???
and looking below you now have ...

>   /* PALADINS */
>   spell_level(SPELL_CURE_LIGHT, CLASS_CLERIC, 1);
>   spell_level(SKILL_RESCUE, CLASS_WARRIOR, 2);
>   spell_level(SPELL_ARMOR, CLASS_CLERIC, 3);
>   spell_level(SPELL_CURE_BLIND, CLASS_CLERIC, 4);

	etc.

Well, can you spot your errors =)

Try doing this if you can't
	spell_level (SPELL_CURE_LIGHT, CLASS_PALADIN, 1);
	spell_level(SKILL_RESCUE, CLASS_PALADIN, 2);
	spell_level (SKILL_ARMOR, CLASS_PALADIN, 3);

etc etc. You were telling the compiler that the OTHER classes get whatever
spells/skills, becuase you just cut and pasted. You forgot to edit it
saying that the NEW class gets them also.

and that should now work.
Jussy
+-----------------------------------------------------------+
| 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