Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-15-2002, 07:22 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
Mushrooms Picking

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;
}
__________________

Check out the development at:
http://razza.org/lordhelmut/FantasyTales/index
Reply With Quote
  #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
  #3  
Old 02-15-2002, 10:08 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
Re: Re: Mushrooms Picking

Quote:
Originally posted by Saga2001


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

Check out the development at:
http://razza.org/lordhelmut/FantasyTales/index
Reply With Quote
  #4  
Old 02-15-2002, 10:12 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
try using timereverywhere in the script and if you want the mushrooms to grow more depending on the ammount of players, do if (playercount>1) or somthing like that
Reply With Quote
  #5  
Old 02-15-2002, 10:14 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
not sure about that playercount part cuz i dont know what to do but thanks, I forget about timereverywhere somtimes lol
__________________

Check out the development at:
http://razza.org/lordhelmut/FantasyTales/index
Reply With Quote
  #6  
Old 02-15-2002, 10:19 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
lol, it happens to a lot of people, sometimes I forget certain attributes of the players like #C# and stuff like that

I'm sure playerscount works, I've tried it online before like this:

if (created) {timeout=.05;}
if (timeout) {timeout=.05;}
if (timeout&&playerscount==1)
setlevel2 onlinestartlocal.graal,30,30;
}
and that worked perfectly
Reply With Quote
  #7  
Old 02-15-2002, 10:54 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
i know how it works, i dont know how to incorporate it into mushroom picking
__________________

Check out the development at:
http://razza.org/lordhelmut/FantasyTales/index
Reply With Quote
  #8  
Old 02-15-2002, 11:14 AM
Androk2k1 Androk2k1 is offline
Banned
Androk2k1's Avatar
Join Date: Dec 2001
Posts: 1,336
Androk2k1 is on a distinguished road
Mashroom picking?! I made that! I DID! I am gonna find thread which i posted and put it here!
Reply With Quote
  #9  
Old 02-15-2002, 11:16 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
Quote:
Originally posted by Androk2k1
Mashroom picking?! I made that! I DID! I am gonna find thread which i posted and put it here!
LOL, no this is Mushroom picking, not Mashroom picking. And I know I saw your thread. I didnt even make it, the co owner *who doesnt read the forums* also had the idea since we already had mushrooms on babylon.
__________________

Check out the development at:
http://razza.org/lordhelmut/FantasyTales/index
Reply With Quote
  #10  
Old 02-15-2002, 11:18 AM
Androk2k1 Androk2k1 is offline
Banned
Androk2k1's Avatar
Join Date: Dec 2001
Posts: 1,336
Androk2k1 is on a distinguished road
Oh yeah... sorry... That's when i got my idea too.. after I saw custom mushrooms on yur server... NM then =)

I can give you script if you need it it's really simple...
Reply With Quote
  #11  
Old 02-15-2002, 11:22 AM
Androk2k1 Androk2k1 is offline
Banned
Androk2k1's Avatar
Join Date: Dec 2001
Posts: 1,336
Androk2k1 is on a distinguished road
NM... you have better script... I need to adjust some stuff in mine, like sprite of player and that's it... agrh...
Reply With Quote
  #12  
Old 02-15-2002, 11:31 AM
ArchOwl ArchOwl is offline
KHERRUPTED SHROOM
ArchOwl's Avatar
Join Date: Aug 2001
Location: SOMEWHERE, DAMNIT
Posts: 2,464
ArchOwl is on a distinguished road
Send a message via AIM to ArchOwl Send a message via Yahoo to ArchOwl
i bet with the help of some friends i could make a really good base for mushroom picking :P
__________________

DDR Videos.
More DDR Videos.
Reply With Quote
  #13  
Old 02-15-2002, 12:02 PM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
Quote:
Originally posted by Androk2k1
Oh yeah... sorry... That's when i got my idea too.. after I saw custom mushrooms on yur server... NM then =)

I can give you script if you need it it's really simple...
LOL! thats kinda funny actually
__________________

Check out the development at:
http://razza.org/lordhelmut/FantasyTales/index
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:08 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.