Quote:
Originally posted by ownerofbabylon
so for lets say mining or something:
if(playerenters){
setstring percentdone,0;
if(playertouchsme&&isweapon(pick)){
percentdone++;
message This rock is percentdone Percent Done;
}
if(percentdone==100){
hide;
playerruppes+=1;
sleep 30;
show;
}
So that would set the string percentdone to 0 when they enter, when the fire the pick on the NPC it adds 1 to percent done and when it reaches 100 it gives them 1 gralat and hides the rock for 30 seconds?
|
I am not the expert but i think 'triggeraction' may help you out greatly ...