Auto-Harvesting on MUSH

by Ranadae

Back to Mechanic's Corner.

Ranadae2006-11-03 06:56:54
So far everything I have found on Lust. forums as well as Aet. forums have just not worked out for me. I'm not asking for someone to write one for me... just need a bit of help trying to figure out what to do. I am fairly new to MUSH though I have been able to paste together a fairly simple little system for Nexus (if you can call it that) so I'm not too terribly ignorant. All I want is to be able to type in "Harv (number) (herb)" and be done with it. Can anyone help me with this? ... Please?
Unknown2006-11-03 07:05:15
Ranadae2006-11-03 07:19:46
Yeah... tried it. Didn't work. Suppose I probably threw it in there wrong. I'll try once more and see what happens.
Unknown2006-11-03 07:32:46
Tell us how it's not working, and we can try to sort it out. Make sure that, if you have any other triggers that fire on "You have recovered balance", you've checked the "Keep evaluating" box on them.
Ranadae2006-11-03 07:48:04
When I type in harv 20 galingale I get it with:

You don't know how to go about harvesting that herb.
Unknown2006-11-03 16:15:43
Whoops, try this in the alias instead:

setvariable "herbamount", %1 - 11
setvariable "herbtoharvest", %2
send "harvest %2"

When you're dealing with variables containing a string (%2 in this case) you need to have them within the quotes.