How do i do that if i have 5 iron and want to sell it and i get 1g for each iron,
This is the script for the rocks (where you get the string)
NPC Code:
if(this.mintype==2)
{
if (this.power<=0)
setplayerprop #c, Iron Found!;
setstring Iron,#v(strtofloat(#s(Iron))+1);
this.mintype=0;
}
Can anyone help me make the selling thing?
-EDIT-
I edited the script so its begin eassyer to script, so can anyone PLEASE help?