Quote:
Originally posted by lordhelmut
Umm I scripted mushroom picking a while back as a way for players new to the server to make money. Its like 20 mushrooms for 1g so its not the best route to go lol. Anyways, my mushrooms dont grow back very well with more than one player in the level...If someone can help I would appreciate it
if(playerenters){
timeout=3;
}
if(created){
this.power=3;
}
if (actionfreeze&&this.power>0) {
playersprite=19;
this.power-=1;
message Keep Pulling!;
}
if (actionfreeze&&this.power<=0&&(strtofloat(#s(mushr ooms))<50)) {
hide;
freezeplayer .9;
setani gotmushroom,;
message ;
setstring mushrooms,#v(strtofloat(#s(mushrooms))+1);
timeout=10;
}
if (actionfreeze&&(strtofloat(#s(mushrooms))>=50)) {
say2 You cant carry anymore!;
}
if(timeout){
this.power=6;
show;
}
|
A lot of times with non-p2p what happens is since there is no npc server, the player leaves the level, and the timeout dies. What I would personally suggest is use some save[] vars and save the last player's id than if a new playerenters, with a new id, it immediatly shows, itherwise it says hidden and resets the timeout to show.