Thread:LunaBot/@comment-3474542-20130724232809

I had an idea for the approach you should take for adding the harvest parameters. Apologies for not putting this in correct bot code.

finding
The search should probably be something like the following example:

RULE IFNOT = "harvest_curr_type3" SUBRULE IFNOT = "harvest_curr_type2" SUBRULE IFNOT = "harvest_curr_type1" SUBRULE FIND = string1 "(harvestcoin) = (\d+)/)"

replacing
The result code for harvest needs to look somewhat like the following: $1 = $2 | harvest_curr_type1 = coin |harvest_curr_amt1 = $2 $1 = contents of 1st (harvestcoin parameter), $2 = number contents of 2nd (original number value).

Unless you figure out how to make an OR statement, this would probably need to be repeated for each different parameter. (e.g. harvestcoconut instead of harvestcoin). I'm sure someone who is more experienced with bots could make the code much simpler. 