The Dink Network

Reply to Re: NPC Code problems

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
July 20th 2006, 01:15 PM
anon.gif
Ace
Ghost They/Them
 
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!