I have made a stone breaking job where you break stones and sell them, 1g a peice. But i can't figure out how to get it so when you say sell rocks, it gives you 1g for every broken rock you have, then, empty's your inventory of rocks to a fresh 0 so you can re-collect more broken rocks. Help!
ok heres the script-part of the rock that you break. It's at the part where you break it
NPC Code:
if (this.result==100) {
putleaps 2,x+1,y-1;
say2 You broke the rock!;
this.add=1+strtofloat(#s(client.rock1));
setstring client.rock1,#v(this.add);
hidelocal;
}
}
ok using client.rock1 and this.add, how would i do this?!
thanks for the help!
P.S. Please check out my status bar thread in here and help me with it also!