View Single Post
  #2  
Old 02-15-2002, 08:00 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Re: Mushrooms Picking

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.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote