|
SHASCO Novice
Joined: 29 May 2001 Posts: 48 Location: USA
|
Posted: Thu Mar 07, 2002 7:05 am
Achaea, Druids, Harvesting |
I would like a harvesting alias. One that does a loop. What I need is to harvest a certain herb.
I would like to type like har myrrh 20 and this would do the syntax "harvest myrrh" and loop it 20 times. Har would be my alais.
Before the loop can work there is a catch. There is a delay in the harvesting. After the syntax of harvest myrrh you have to wait for the text "You have recovered balance on all limbs." before you may type "harvest myrrh" again.
Additionally, on the wish list side but not necessary it would be nice if it also popped up a button that was cancel or abort. This would be useful if I was out harvesting and someone jumped me for pk. Then I could hit the button to cancel the alias.
Any thoughts?
Thank you,
Shasco |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Mar 07, 2002 5:08 pm |
#AL har {#IF (%numparam() = 2) {#MATH HarNumber {%2-1};#VAR Harvest %1;#T+ Harvest;harvest %1} {harvest %1}}
#TR {You have recovered balance on all limbs} {#IF (@HarNumber > 0) {#ADD HarNumber (-1);harvest @Harvest} {#T- Harvest}} {Harvest}
#KEY F1 {#T- Harvest}
F1 is your abort key. You can, of course, change it to some other key if you prefer.
LightBulb
All scripts untested unless otherwise noted |
|
|
|
SHASCO Novice
Joined: 29 May 2001 Posts: 48 Location: USA
|
Posted: Fri Mar 08, 2002 12:30 am |
Thank you. I'll test it this weekend. I appreciate your time and energy.
Regards,
Shasco |
|
|
|
braumen Beginner
Joined: 28 May 2002 Posts: 17 Location: USA
|
Posted: Fri May 31, 2002 2:25 am |
how would I make this plant specific... IE there are multiple plants that can be harvested in a room.... example: goldenseal and slipper are in the same room.... how would i set this up so that it only harvests the plant i want it to harvest then stop when the number left reaches a certain point?
|
|
|
|
NiteTrip Novice
Joined: 21 May 2002 Posts: 40 Location: Canada
|
Posted: Fri May 31, 2002 2:49 am |
it's set up to harvest any plant from the look of it... type har slipper 20 and har goldenseal 20, it will harvest em both
what mud is this anyways? seems cool. |
|
|
|
braumen Beginner
Joined: 28 May 2002 Posts: 17 Location: USA
|
Posted: Fri May 31, 2002 2:56 am |
its Achaea... can be found at achaea.com port:23 its also in the mudlist
actually this is what i have... (basically so i dont have to do higher math like 2+2)
trigger:
pattern:A myrrh bush (myrrh bush) (19 spaces) (*) left.
command: #ad myrrh %1
trigger:
pattern: you have recoverd equilibrium
command: #if (@myrrh >= 15) {#t- myrrh} {.harvmyrrh}
alias: .harvmyrrh = harvest myrrh; plants
for some reason it doesn't pick up the (*) from the pattern i am using... is this wrong or so i need to use something else? |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri May 31, 2002 8:00 am |
NiteTrip is correct, my script will work with any herb. The syntax is
har herb number
With the number, it counts. If you leave out the number it will harvest once. If you don't tell it which herb to harvest, it's not going to harvest anything.
LightBulb
Vague questions get vague answers |
|
|
|
kamaleahdevi Newbie
Joined: 25 Apr 2006 Posts: 1
|
Posted: Tue Apr 25, 2006 1:35 am This works |
Thanks Lightbulb, I tried this for like 20 minutes to get it to work before finally realising I had my triggers off :/ but thanks!
|
|
|
|
|
|