First of all, you have numerous typos in your code that I can't tell
whether were actually from your code, or simply in the transition to
the email message.
For example: you need brackets around all your references to skill_num
when you only have them around the first. Also, I think you are
missing numerous parenthesis around the "if" statement.
As to your code, the problem is that you are checking to see if
LVL_IMMORT - 1 is less than the required level for a given skill/spell
for the character's class. This will never be true unless you have
skills that require a character to be greater than LVL_IMMORT to
learn.
Jeff Hanks
jeffhanks@yahoo.com
---Alaron <digital@TOGETHER.NET> wrote:
>
> Hello, I am trying to get this bit of code so that when a person
remorts
> they can practice all the skills of thier previous skills.
>
> The problem is when I change this they can practive ALL skills/spells,
> and i want them to only prac what they have at current level or have
from
> remort. Remort is at lvl_immort -1.
>
> if ((skill_num < 1 ||
> (GET_LEVEL(ch) <
spell_info[skill_num].min_level[(int)GET_CLASS(ch)] &&
> (LVL_IMMORT - 1) <
> spell_info[skill_num.min_level[(int)GET_REMORT(ch)] &&
> (LVL_IMMORT - 1) <
> spell_info[skill_num.min_level[(int)GET_REMORT_TWO(ch)] &&
> (LVL_IMMORT - 1) <
> spell_info[skill_num.min_level[(int)GET_REMORT_THREE(ch)])){
>
> sprintf(buf, "You do not know of that %s.\r\n", SPLSKL(ch));
> send_to_char(buf, ch);
> return 1;
> }
>
> Thanks for any help you can offer :)
> Malcor
>
>
> +------------------------------------------------------------+
> | Ensure that you have read the CircleMUD Mailing List FAQ: |
> | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
> +------------------------------------------------------------+
>
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com
+------------------------------------------------------------+
| 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