Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
rpcervi
Beginner


Joined: 04 Nov 2004
Posts: 14

PostPosted: Thu Oct 11, 2007 10:52 pm   

Help Finding Something
 
On these forums, there use to be an Achaea Auto Harvester for concoctionists.

If I remember correctly, it had the the setup so you can type 'har (plant) (#)' and worked or was 'har (#) (plant)' - Since for some reason, the forums search keeps taking me to google thing and it doesn't show it at all, it apparently is missing.

I know it is on these forums because about 1-2 years ago, /I/ used it in fact. Message me if you find it or post here please!
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Fri Oct 12, 2007 2:33 am   
 
Auto-harvesters aren't too hard to write. I haven't written one in a while, but the basic principle is something like this:

#alias har {#if (%1 and %2) {#var HerbNum %1;#var HerbName %2;#t+ AutoHarvest;harvest %2}}
#trig "AutoHarvest" {You have recovered balance} {#if (@HerbNum>0) {#add HerbNum -1;harvest %2} {#t- AutoHarvest;#say Harvesting complete.}} "" disable
#var HerbNum "" ""
#var HerbName "" ""

You can then add snazzy extras if you feel the need, like a script that'll parse the output of PLANTS and give you the max you're allowed to harvest for each plant. Then you can add a check to the har alias that won't let you set the HerbNum variable too high, if that's what you want.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)

Last edited by Fang Xianfu on Fri Oct 12, 2007 5:15 am; edited 1 time in total
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Fri Oct 12, 2007 5:03 am   
 
By the way, the old search is still accessible by mousing over the site link at the top. I'm surprised that Fang didn't point that out. Heh.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Fri Oct 12, 2007 5:16 am   
 
Fixed a problem with it - as it was, it'd harvest one too few herbs.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
rpcervi
Beginner


Joined: 04 Nov 2004
Posts: 14

PostPosted: Sat Oct 13, 2007 1:23 am   
 
Thanks you guys :) Loads of love :)


As a side note, Fang, I suck at scripting. I got my basics down and side from that .. KABOOM - I suck heh.
Reply with quote
rpcervi
Beginner


Joined: 04 Nov 2004
Posts: 14

PostPosted: Sat Oct 13, 2007 1:31 am   
 
Hmm, I just tried your autoharvest, it keeps giving me back funny problems.

It keeps regaining balance and then, saying what do you wish to harvest?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sat Oct 13, 2007 1:32 am   
 
The way I originally learnt was someone gifting me a load of scripts they'd written. Then I followed the logic through, starting from the triggers and looking up the commands until I thought I knew what was going on. For the really annoying bits I'd post on the forums of the game, PM the person who made them, or post here to get more help on that specific problem.

Hopefully that little script helps you on your way :)
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net