From NEAT Portal Wiki
Jump to: navigation, search
(NotSpamheroes)
(NotSpamheroes)
Line 343: Line 343:
  
 
This directive will tell the bot which heroes it may or may not use with [[Deployment_Scripts#LoyaltyAttack|loyaltyattack]] or [[Deployment_Scripts#SpamAttack|spamattack]].
 
This directive will tell the bot which heroes it may or may not use with [[Deployment_Scripts#LoyaltyAttack|loyaltyattack]] or [[Deployment_Scripts#SpamAttack|spamattack]].
 
See [[Hero_Goals#HeroString|Hero String]] for details on how to setup the hero string for this goal.
 
 
<br>
 
 
==NotSpamheroes==
 
 
{| class="wikitable"
 
! style="text-align:left;" | Usage:
 
| notspamheroes hero-string
 
|-
 
! style="text-align:left;" | Example:
 
|
 
<font size="2" face="courier" color="#0000FF">notspamheroes </font><font size="2" face="courier" color="#A43900">hero-string
 
|}
 
 
This directive will tell the bot which heroes are not used with [[Deployment_Scripts#LoyaltyAttack|loyaltyattack]] or [[Deployment_Scripts#SpamAttack|spamattack]].
 
  
 
See [[Hero_Goals#HeroString|Hero String]] for details on how to setup the hero string for this goal.
 
See [[Hero_Goals#HeroString|Hero String]] for details on how to setup the hero string for this goal.

Revision as of 23:31, 3 November 2011

Hero

Usage: config hero:[switch]
Example:

config hero:10

Switch:

0 - Disable Hero Management
1 - Level up & reward heroes only
10 - Hire 1 good Politics hero all other attack heroes
11 - Hire 1 good Politics and 1 good Intel hero all others attack heroes
12 - Hire 1 good Politics and 2 good Intel heroes all others attack heroes
20 - Hire 2 good Politics heroes all others attack heroes
21 - Hire 2 good Politics and 1 good Intel hero all others attack heroes
22 - Hire 2 good Politics and 2 good Intel heroes all others attack heroes

This config will tell the bot how you wish for your heroes to be hired and managed. In the example above, the bot will hire and upgrade 1 politics hero and the rest of your feasting hall slots with attack heroes. This must be set to a number higher than '1' in order for fasthero to function.


Fasthero

Usage: config fasthero:[base]
Example:

config fasthero:65

With this config enabled, the bot will attempt to quickly hire and fire heroes from the inn, keeping only heroes of the base attribute specified while keeping your config hero:x goal in mind. In the examples above, with config hero:10 set, you know you want the bot to keep 1 politics hero and the rest attack heroes. With config fasthero:65 set, the bot will attempt to hire & fire until it has found 1 65+ base politics hero and the rest 65+ base attack heroes. Having a level 1 inn in the city is recommended for this goal to save gold.

A hero may be fired if it's base stat is lower than fasthero setting AND it's level is lower than herofirelimit setting. When selecting which hero to fire, the bot will only choose from idle heroes. This means a better hero may be fired if a worse one is off farming.

If fasthero is set to 120 or higher, then it will search for heroes in a different way. The hero's combined base of attack + intel will be taken into account. So for example, if a hero has 65 attack and 65 intel and is level 10, it's combined base would be 65+65-10 = 120 and would be kept with config fasthero:120. When selecting which hero to fire with a 120+ fasthero setting, the bot will choose from all available heroes, not just idle ones.


HeroString

Many places in YAEB will allow you to specify heroes. The selection or list of heroes to be used will be referred to as the hero-string in various other places in the wiki.

You may list hero names individually, and/or exclude heroes with '!name', and/or include all heroes with 'any'. For example,

BigGuy this would allow only hero BigGuy
any,!Intelguy,!BigGuy this would allow any hero except IntelGuy and except BigGuy
BigGuy,PoliGuy,IntelGuy this would allow heroes BigGuy, PoliGoy, and IntelGuy


After revision xxxx [the xxx means it ain't implemented yet! don't try it!], you may also use conditions for hero strings. For example,

attack>180 this would allow any hero with an attack over 180
politics<200 this would allow any hero with politics under 200

These hero strings may be used like normal in goals or scripts. For example,

npcheroes 5 any,!BigGuy this would allow any hero except BigGuy to attack npc5s
npcheroes 8 politics=best this would allow the best politics hero at that city to hit npc8s
npcheroes 10 attack>300 this would allow any attack hero over 300 attack to hit npc10s
attack 111,222 attack>180,!BigGuy c:99k,s:1k this would attack coordinates 111,222 with any hero over 180 attack other than hero BigGuy with 99k cavs, 1k scouts
spamattack 111,222 attack<100,!PoliticsGuy w:5k this would spam attack coordinates 111,222 with any hero under 100 attack other than hero PoliticsGuy with 5k warriors


Starting also in revision xxxx [the xxx means it ain't implemented yet! don't try it!], you may use multiple npcheroes lines. Any condition imposed on a line will affect all heroes on that line, so if you wish to use different conditions for different heroes, use seperate lines. Multiple lines can be concatenated into a single line with the | symbol. For example,

BigGuy
attack>300

... would be the same as

BigGuy|attack>300

... and could be used in goals or scripts as, for example,

npcheroes 10 BigGuy|attack>300


The order of conditions and heronames on a line is irrelevant. For example,

npcheroes BigGuy|hero1,hero2,attack>180

... would be the same as

npcheroes attack>180,hero1,hero2|BigGuy


All possible conditions and values in hero strings are:

<, >, =, !=, <>, <=, >=

attack or a
politics or p
intel or i
loyalty or o
level or l
base or b
worst
best

Examples:
attack<100
p>50
o=100
l>=92
attack=worst
p=best

When using attributes as conditions, the bot will consider buffs as part of the value. For example, an attack hero with 100 attack and excaliber would be treated as a 125 attack hero in hero selection. Expiration time of buffs is not taken into account for an attack. Make sure your excaliber isn't going to run out before you smack that npc10 with a little hero ;)


Npcheroes

Usage: npcheroes [optional level] hero-string
Example:

npcheroes 10 hero-string
npcheroes 9 hero-string
npcheroes 5 hero-string
npcheroes 4 hero-string
npcheroes hero-string

This directive tells the bot which heroes to use for which npc level. If this is not set, the bot will default to all allowed heroes to hit any npc level 1-5. You can specify heroes for every level of npc individually as shown in the examples above, or let it default to the older style by simply using 'npcheroes' with no npc level after it for all npcs of level 1-5, and 'npc10heroes' for npcs of level 10.

See Hero String for details on how to setup the hero string for this goal.

NOTE: You must still enable farming of these levels of npcs via the config npc goal if you wish for the bot to farm them. Simply setting which heroes to use will not make the bot hit the npcs.


Npc10heroes

Usage: npc10heroes hero-string
Example:

npc10heroes hero-string

This directive tells the bot which heroes may be used to farm level 10 npcs. It is being phased out in lieu of the more powerful 'npcheroes' goal.

See Hero String for details on how to setup the hero string for this goal.

NOTE: You must still enable farming of level 10 npcs via the npc10limit goal. Simply setting which heroes to use will not make the bot hit level 10 npcs.


Valleyheroes

Usage: valleyheroes hero-string
Example:

valleyheroes hero-string

This directive will tell the bot which heroes it may or may not use to acquire flats for holding or npc building, as well as heroes for valley acquisition and farming.

See Hero String for details on how to setup the hero string for this goal.


Training

Usage: config training:[switch]
Example:

config training:1

By default, when configured to hit npcs, the bot will only hit them each every 8 hours. With this config enabled and once npclimit is reached, the bot will hit npcs every 1 hour instead to level your heroes faster. If you wish to avoid going too far over your npclimit in food, you can instruct the bot to attack the npcs without transports by setting it to 2 instead, eg: config training:2.


Training10

Usage: config training10:[switch]
Example:

config training10:1

By default, when configured to hit npc10s, the bot will only hit them each every 8 hours. With this config enabled, the bot will hit them every 1 hour instead to level your hero faster.


Trainpol

Usage: config trainpol:[switch]
Example:

config trainpol:1

By default, the bot will not attack npcs with politics heroes. With this goal set, the politics hero will attack npcs, and be given priority for levelling by being sent before the attack heroes. Another (attack, normally) hero will be set as temporary mayor while your politics hero is out farming. You may notice a significant decrease in resource production with this enabled due to the temporary, lower politics mayors.


Trainint

Usage: config trainint:[switch]
Example:

config trainint:1

By default, the bot will not attack npcs with intel heroes. With this goal set, the intel hero will attack npcs, and be given priority for levelling by being sent before the attack heroes.


KeepAttHome

Usage: config keepatthome:[switch]
Example:

config keepatthome:1

By default the bot will send out all attack heroes on farming runs. With this goal set, the bot will keep the highest attack hero home in the city for defensive purposes.


Feastinghallspace

Usage: config feastinghallspace:[spaces]
Example:

config feastinghallspace:1

This goal tells the bot how many slots empty you want in your feasting hall. With this set, the bot will attempt to fire the lowest attack attribute hero in the city until it reaches the required number of free slots.

The bot will fire heroes regardless of their politics or intel scores if they are the lowest attack score.
To avoid this you should also set herofirelimit with a level lower than your politics mayor and intel hero levels.


Nomayor

Usage: config nomayor:[switch]
Example:

config nomayor:1

With this goal turned on, the bot will not keep a mayor appointed in the city. This will allow the politics hero to be sent out on farming runs. Note - you should use config trainpol:1 instead of config nomayor:1 to allow the politics hero to farm npcs and still be appointed mayor when it is not on a npc run.


Homeheroes

Usage: homeheroes [amount]
Example:

homeheroes 3

This directive will tell the bot how many heroes you wish to remain in the city while it is sending troops out for farming, etc. By default, all allowed heroes are sent out for farming. If a custom npcheroes list is defined, this goal will reduce the number of heroes that are allowed to farm at a time from the list, and that have to stay home at any given time vs. using all applicable heroes that are in your feasting hall.


Traininghero

Usage: traininghero heroname [[minstay [maxstay [npchits]]]
Example:

traininghero BigGuy
traininghero BigGuy 120
traininghero BigGuy 120 2400 10

This directive will tell the bot who your main training hero is for use in queuing troops. You can have a different traininghero for different towns, or the same one for all towns. This hero will be automatically moved by the bot to each town that lists it as it's traininghero. By default the bot will remain for 10 minutes in each town. You can adjust this duration to stay by adding a time, in seconds, to the end of the line. In the first example above, BigGuy will stay in the town for 10 minutes to queue/farm before moving along. In the second example above, BigGuy will stay in the town for 120 seconds (2 minutes) to queue/farm before moving along. In the third example above, BigGuy would stay at least 120 seconds (2 minutes), and may leave the city after at least 10 npc hits are made, or at least 2400 seconds (40 minutes) have passed.

The bot does not detect whether the traininghero is needed to queue in a town before sending it. If the traininghero is setup to farm npcs in the city, and a "0" is given as the optional npchits value, then the bot will not farm npcs in that town. It needs to be at least "1". Also if the traininghero is setup to farm npcs in the city and the remaining stay of the default 10 minutes or the configured maxstay time is less than the round trip travel time to the next npc for him to farm, he will still hit that npc even though it exceeds the maxstay. He will be moved to the next city upon returning from a npc trip that exceeds the maxstay time.

The traininghero will farm npcs level 1-5 if the city is configured to farm them, unless he is told not to. You can exclude the traininghero from farming those npcs by adding or modifying the npcheroes goal:

npcheroes !BigGuy,any
or
npcheroes 5 !BigGuy,any

Be sure not to set a town that is in 24 hour advanced teleport lockdown with your main traininghero, or it will get stuck!


Spamheroes

Usage: spamheroes hero-string
Example:

spamheroes hero-string

This directive will tell the bot which heroes it may or may not use with loyaltyattack or spamattack.

See Hero String for details on how to setup the hero string for this goal.


Nolevelheroes

Usage: nolevelheroes hero1,hero2,hero3
Example:

nolevelheroes ForBob

This directive will tell the bot not to upgrade a hero or heroes. In the example above, if the hero ForBob was being trained to give away to your friend Bob, you wouldn't want it to be upgraded due to Bob's rank and medal requirements. Setting this will allow ForBob to gain experience without being levelled up by the bot.


Herofirelimit

Usage: herofirelimit [level]
Example:

herofirelimit 70

This directive will tell the bot not to automatically fire any hero of the level specified. When not set, the default level to keep is 50.


Capturedfirelimit

Usage: capturedfirelimit [level]
Example:

capturedfirelimit 100

This directive will tell the bot not to automatically fire any captured hero of the level specified.

A) you have config hero set to something other than 0 (eg. config hero:1) ... AND

B) you have a captured hero of a level below the capturedfirelimit ... AND

C) the captured hero is the lowest attack ... OR
D) the feasting hall is full and the traininghero is not in the city