Page 1 of 1

Help with Additem

Posted: Thu Dec 25, 2003 1:54 pm
by Andrew Rei
can anyone tell me the correct way to add gold because so far everything everybody's told me hasn't worked

Posted: Thu Dec 25, 2003 4:20 pm
by Foss
Well, I would guess this would be correct, though I have never tried it with gold:

player->AddItem, Gold_100, NUMBER


The NUMBER has to be a real number like:

player->AddItem, Gold_100, 100

Try that...

Posted: Thu Dec 25, 2003 7:20 pm
by Andrew Rei
O man thanks Foss it works great... i think the reason why mine wasn't working is cuz i forgot the player->, but thanks alot u have no clue how much this help

Posted: Thu Dec 25, 2003 11:11 pm
by ScionOfNerevar
Originally posted by Foss
Well, I would guess this would be correct, though I have never tried it with gold:

player->AddItem, Gold_100, NUMBER


The NUMBER has to be a real number like:

player->AddItem, Gold_100, 100

Try that...


It is player->additem, "gold_100", 100

Posted: Fri Dec 26, 2003 1:19 am
by Foss
Originally posted by ScionOfNerevar
It is player->additem, "gold_100", 100


Actually I think it also works with the , instead of ".

I have tried with a normal item and not gold and , worked there aswell.

Oh, and no problem Andrew Rei, I had the same problem, as I also forgot player-> when I first tried with a normal item.

:)