View Single Post
  #2  
Old 01-07-2002, 02:19 AM
Kumada Kumada is offline
Ded
Kumada's Avatar
Join Date: Nov 2001
Location: Usa
Posts: 1,088
Kumada is on a distinguished road
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;
}
}

__________________
Aim: Mmm Kumada

Reply With Quote