(Created page with "==Train== {| style="width: 25%; text-align:center" border="1" ! scope="row" | Usage: | train troop hero |- ! scope="row" | Example: | train w:25000 atk |} Train 25,000 warriors...") |
m (→ClearWallQueue) |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Train== | ==Train== | ||
− | {| style=" | + | {| class="wikitable" |
− | + | ! style="text-align:left;" | Usage: | |
− | | | + | |width="400pt" | train <type:quantity> <hero> <barracks_id|all|idle> <minquantity> |
|- | |- | ||
− | ! | + | ! style="text-align:left;" | Example: |
| train w:25000 atk | | train w:25000 atk | ||
|} | |} | ||
− | Train 25,000 warriors with the hero | + | Train 25,000 warriors with the best availible attack hero as mayor. |
+ | *Troop types cannot be combined. | ||
+ | *If the quantity is more than you can actually build based on res or pop, it will build as many as it can. | ||
+ | *The hero can be "any", "atk" (for the best available attack hero), or named. | ||
+ | *You can specify a barrack (the #s can be found in the production tab), use "all" or "idle" barracks only. | ||
+ | ::The last value says: 'If I can't train this many, don't train any' | ||
+ | |||
+ | Not all parameters are required. Setting production before and after is recommended, but there is no need to manually change the mayor. The bot will temporarily assign the hero indicated to train, then reassign the original mayor when done. | ||
+ | |||
+ | '''train a:5000''' will train up to 5k arch in all barracks. | ||
+ | |||
+ | '''train a:999999 ace idle 20000''' will train as many as possible, but not less than 20k, in all idle barracks with ace as mayor | ||
+ | |||
+ | Training via script will train in the same manner as the client. The values set in goals like... | ||
+ | |||
+ | *config troopqueuetime:.25 | ||
+ | *config troopsusepopmax:0.99 | ||
+ | *config troopsusereserved:.75 | ||
+ | *config troopincrement:.15 | ||
+ | |||
+ | ...will be ignored. | ||
+ | |||
+ | '''train w:25000 atk 18 25000''' will train 25k warrior in one slot. | ||
+ | |||
+ | Using ''all'' or ''idle'' will perform the same as the client, not distribute blocks of 500 warriors into 9 slots of 8 different barracks. | ||
+ | |||
+ | In all instances training via script uses no more than 1 barracks slot per barrack per train command. | ||
==Disband== | ==Disband== | ||
− | {| style=" | + | {| class="wikitable" |
− | + | ! style="text-align:left;" | Usage: | |
| disband troop | | disband troop | ||
|- | |- | ||
− | ! | + | ! style="text-align:left;" | Example: |
| disband w:25 | | disband w:25 | ||
|} | |} | ||
Line 27: | Line 53: | ||
==HealTroops== | ==HealTroops== | ||
− | {| style=" | + | {| class="wikitable" |
− | + | ! style="text-align:left;" | Usage: | |
| healtroops | | healtroops | ||
|- | |- | ||
− | ! | + | ! style="text-align:left;" | Example: |
| healtroops | | healtroops | ||
|} | |} | ||
Line 40: | Line 66: | ||
==DumpTroop== | ==DumpTroop== | ||
− | {| style=" | + | {| class="wikitable" |
− | + | ! style="text-align:left;" | Usage: | |
| dumptroop xxx,yyy condition troops | | dumptroop xxx,yyy condition troops | ||
|- | |- | ||
− | ! | + | ! style="text-align:left;" | Example: |
| dumptroop 111,222 a:99000,s:50000 a:20000,s:15000 | | dumptroop 111,222 a:99000,s:50000 a:20000,s:15000 | ||
|} | |} | ||
Line 50: | Line 76: | ||
Dump 20,000 archers and 15,000 scouts to 111,222 when there are at least 99,000 archers and 50,000 scouts in the city. | Dump 20,000 archers and 15,000 scouts to 111,222 when there are at least 99,000 archers and 50,000 scouts in the city. | ||
+ | ==CancelTroopQueues== | ||
− | = | + | {| class="wikitable" |
− | + | ! style="text-align:left;" | Usage: | |
− | + | | canceltroopqueues [remain_count] | |
− | |||
− | | | ||
|- | |- | ||
− | ! | + | ! style="text-align:left;" | Example: |
− | | | + | | |
− | + | canceltroopqueues<br> | |
+ | canceltroopqueues 2 | ||
|} | |} | ||
Line 69: | Line 95: | ||
==WallDefense== | ==WallDefense== | ||
− | {| style=" | + | {| class="wikitable" |
− | + | ! style="text-align:left;" | Usage: | |
| walldefense DefType Qty [BuildType] | | walldefense DefType Qty [BuildType] | ||
|- | |- | ||
− | ! | + | ! style="text-align:left;" | Example: |
− | | walldefense at 1000<br> | + | | |
+ | walldefense at 1000<br> | ||
walldefense ab 1000 demo | walldefense ab 1000 demo | ||
|} | |} | ||
Line 83: | Line 110: | ||
==ClearWallQueue== | ==ClearWallQueue== | ||
− | {| style=" | + | {| class="wikitable" |
− | + | ! style="text-align:left;" | Usage: | |
| clearwallqueue [remain count] | | clearwallqueue [remain count] | ||
|- | |- | ||
− | ! | + | ! style="text-align:left;" | Example: |
− | | clearwallqueue<br> | + | | |
− | clearwallqueue | + | clearwallqueue<br> |
+ | clearwallqueue 2 | ||
|} | |} | ||
Used to cancel fortifications queues, leaving remain_count batches. | Used to cancel fortifications queues, leaving remain_count batches. | ||
− | If no remain_count is provided, all batches except the first are removed. | + | If no remain_count is provided, all batches except the first are removed. |
+ | (this may be outdated, try cancelfortifications instead) | ||
==EndKeepTroop== | ==EndKeepTroop== | ||
− | {| style=" | + | {| class="wikitable" |
− | + | ! style="text-align:left;" | Usage: | |
| EndKeepTroop | | EndKeepTroop | ||
|- | |- | ||
− | ! | + | ! style="text-align:left;" | Example: |
| EndKeepTroop | | EndKeepTroop | ||
|} | |} | ||
Cancel the KeepTroop command. | Cancel the KeepTroop command. |
Latest revision as of 14:27, 2 April 2012
Contents
Train
Usage: | train <type:quantity> <hero> <barracks_id|all|idle> <minquantity> |
---|---|
Example: | train w:25000 atk |
Train 25,000 warriors with the best availible attack hero as mayor.
- Troop types cannot be combined.
- If the quantity is more than you can actually build based on res or pop, it will build as many as it can.
- The hero can be "any", "atk" (for the best available attack hero), or named.
- You can specify a barrack (the #s can be found in the production tab), use "all" or "idle" barracks only.
- The last value says: 'If I can't train this many, don't train any'
Not all parameters are required. Setting production before and after is recommended, but there is no need to manually change the mayor. The bot will temporarily assign the hero indicated to train, then reassign the original mayor when done.
train a:5000 will train up to 5k arch in all barracks.
train a:999999 ace idle 20000 will train as many as possible, but not less than 20k, in all idle barracks with ace as mayor
Training via script will train in the same manner as the client. The values set in goals like...
- config troopqueuetime:.25
- config troopsusepopmax:0.99
- config troopsusereserved:.75
- config troopincrement:.15
...will be ignored.
train w:25000 atk 18 25000 will train 25k warrior in one slot.
Using all or idle will perform the same as the client, not distribute blocks of 500 warriors into 9 slots of 8 different barracks.
In all instances training via script uses no more than 1 barracks slot per barrack per train command.
Disband
Usage: | disband troop |
---|---|
Example: | disband w:25 |
Disband 25 warriors.
HealTroops
Usage: | healtroops |
---|---|
Example: | healtroops |
Heal any troops that are in the medic camp.
DumpTroop
Usage: | dumptroop xxx,yyy condition troops |
---|---|
Example: | dumptroop 111,222 a:99000,s:50000 a:20000,s:15000 |
Dump 20,000 archers and 15,000 scouts to 111,222 when there are at least 99,000 archers and 50,000 scouts in the city.
CancelTroopQueues
Usage: | canceltroopqueues [remain_count] |
---|---|
Example: |
canceltroopqueues |
Used to cancel troop queues, leaving remain_count batches in each barrack.
If no remain_count is provided, all batches except the first in each barrack are removed.
WallDefense
Usage: | walldefense DefType Qty [BuildType] |
---|---|
Example: |
walldefense at 1000 |
Used to build or demolish wall defences.
ClearWallQueue
Usage: | clearwallqueue [remain count] |
---|---|
Example: |
clearwallqueue |
Used to cancel fortifications queues, leaving remain_count batches. If no remain_count is provided, all batches except the first are removed.
(this may be outdated, try cancelfortifications instead)
EndKeepTroop
Usage: | EndKeepTroop |
---|---|
Example: | EndKeepTroop |
Cancel the KeepTroop command.