Reply to Re: NPC Code problems
If you don't have an account, just leave the password field blank.
July 20th 2006, 01:15 PM

Ace
I am sorry for posting, Lol!! I figured all this out myself, this was the problems:
First of all, spells were mixed, fire and super fireball.
Second of all, the following line or lines like this were incorrect:
int &firespell = count_item("item-fb");
It was supposed to be this:
int &firespell = count_magic("item-fb");
Third of all, there was no "if (&result == #)" statements on the previous code I posted.
Last of all, the following:
&bow_lore += 1; or &bow_lore = 1;
it was incorrect, and supposed to be like this:
int &bow_lore = 1;
But, thanks for anyone who has tried to help me!
First of all, spells were mixed, fire and super fireball.
Second of all, the following line or lines like this were incorrect:
int &firespell = count_item("item-fb");
It was supposed to be this:
int &firespell = count_magic("item-fb");
Third of all, there was no "if (&result == #)" statements on the previous code I posted.
Last of all, the following:
&bow_lore += 1; or &bow_lore = 1;
it was incorrect, and supposed to be like this:
int &bow_lore = 1;
But, thanks for anyone who has tried to help me!





