Here you go
Tested, Works
NPC Code:
if (playerenters) {
message Free Table;
}
if (actionmining) {
setstringthis.User,#a;
setstring this.Mine,#v(strtofloat(#s(this.Mine))+1);
message #s(this.Mine)% by #s(this.User);
}
if (strequals(#s(this.User),#a)){
if (strtofloat(#s(this.Mine))>99) {
setimg fossil.gif;
setstring this.Mine,#v(strtofloat(#s(this.Mine))0);
toweapons Rock;message Free Table;
setimgpart pics1.png,1,1,1,1;
}
}
Dunno, Havent tested (makes it so it does not say free table unless somoene is done crafting ... i think)
NPC Code:
if (playerenters&&!this.mode==1) {
message Free Table;
}
if (actionmining) {
this.mode = 0;
setstringthis.User,#a;
setstring this.Mine,#v(strtofloat(#s(this.Mine))+1);
message #s(this.Mine)% by #s(this.User);
}
if (strequals(#s(this.User),#a)){
if (strtofloat(#s(this.Mine))>99) {
setimg fossil.gif;
setstring this.Mine,#v(strtofloat(#s(this.Mine))0);
toweapons Rock;message Free Table;
setimgpart pics1.png,1,1,1,1;
this.mode = 1;
}
}