Thread: % done
View Single Post
  #12  
Old 10-13-2001, 11:41 PM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
NPC Code:

if(playerenters){
setstring percentdone,0; //Why reset when a player enters?
if(playertouchsme&&isweapon(pick)){ //isweapon does not
//Have arguments. maybe your looking for hasweapon(name).
//actionACTIONNAME would be good to put here.

percentdone++;
message This rock is percentdone Percent Done;//It will say
//literally "This rock is percentdone Percent Done"

}
if(percentdone==100){
hide;
playerruppes+=1;
sleep 30;
show;
//THIS is where you should reset the percent done.
}



Not the best code... But im poiting out your errors.
__________________

subliminal message: 1+1=3

Last edited by Falcor; 10-13-2001 at 11:46 PM..
Reply With Quote