Mushclient plugin: Do/Then
Posted: Tue Apr 12, 2016 8:33 am
Greetings, all. A first contribution to the Mushclient community of Shattered Isles:
https://github.com/galaban/SHATTEREDISLESDoThen
This is my Do/Then plugin for crafting. The basic commands:
The "then" command also triggers off of the crafting commands. It executes the command (or list of commands) after the next crafting command is complete. If there is a "do" cycle currently being processed, it waits until the count is complete. So, for example "chop;then get poplar" or "do 5 chop;then get all.poplar"
In addition to this, I overrode the stack character so that the "then" command can more easily stack. Normally, putting in "then bundle poplar;get poplar" would cause the "get poplar" command to execute immediately. However, with this plugin, it will stack so that [bundle poplar;get poplar] will execute after the next command. The advantage to this is that the "then" command can easily be stacked: "then chop;then chop;then get all.poplar". That would chop twice before getting the results.
Finally, I have added a "wait" in as well. Since there are multiple queues going on in this mud, there are often times a need to wait in between commands. A perfect example is during walking: "then s;s;wait 1.5;sell toy"
Enjoy.
https://github.com/galaban/SHATTEREDISLESDoThen
This is my Do/Then plugin for crafting. The basic commands:
- do <count> <command>
then <command>
The "then" command also triggers off of the crafting commands. It executes the command (or list of commands) after the next crafting command is complete. If there is a "do" cycle currently being processed, it waits until the count is complete. So, for example "chop;then get poplar" or "do 5 chop;then get all.poplar"
In addition to this, I overrode the stack character so that the "then" command can more easily stack. Normally, putting in "then bundle poplar;get poplar" would cause the "get poplar" command to execute immediately. However, with this plugin, it will stack so that [bundle poplar;get poplar] will execute after the next command. The advantage to this is that the "then" command can easily be stacked: "then chop;then chop;then get all.poplar". That would chop twice before getting the results.
Finally, I have added a "wait" in as well. Since there are multiple queues going on in this mud, there are often times a need to wait in between commands. A perfect example is during walking: "then s;s;wait 1.5;sell toy"
Enjoy.