Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove attackMaxRouteDistance #3959

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion control/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ attackAuto_considerDamagedAggressive 0
attackDistance 1
attackDistanceAuto 1
attackMaxDistance 1
attackMaxRouteDistance 50
attackMaxRouteTime 4
attackMinPlayerDistance 2
attackMinPortalDistance 4
Expand Down
4 changes: 2 additions & 2 deletions src/AI/CoreLogic.pm
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ sub processTake {
$field->baseName,
$pos->{x},
$pos->{y},
maxRouteDistance => $config{'attackMaxRouteDistance'},
maxRouteDistance => $config{'attackRouteMaxPathDistance'},
noSitAuto => 1,
distFromGoal => 1,
isItemTake => 1
Expand Down Expand Up @@ -3403,7 +3403,7 @@ sub processItemsGather {
$field->baseName,
$pos->{x},
$pos->{y},
maxRouteDistance => $config{'attackMaxRouteDistance'},
maxRouteDistance => $config{'attackRouteMaxPathDistance'},
noSitAuto => 1,
distFromGoal => 1,
isItemGather => 1
Expand Down
2 changes: 1 addition & 1 deletion src/Interface/Wx.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ sub onAdvancedConfig {
$cfg->addCategory('server', 'Grid', ['master', 'server', 'username', 'password', 'char']);
$cfg->addCategory('X-Kore', 'Grid', ['XKore', 'XKore_silent', 'XKore_bypassBotDetection', 'XKore_exeName', 'XKore_listenIp', 'XKore_listenPort', 'XKore_publicIp', 'secureAdminPassword', 'adminPassword', 'callSign', 'commandPrefix']);
$cfg->addCategory('lockMap', 'Grid', ['lockMap', 'lockMap_x', 'lockMap_y', 'lockMap_randX', 'lockMap_randY']);
$cfg->addCategory('attack', 'Grid', ['attackAuto', 'attackAuto_party', 'attackAuto_onlyWhenSafe', 'attackAuto_followTarget', 'attackAuto_inLockOnly', 'attackDistance', 'attackDistanceAuto', 'attackMaxDistance', 'attackMaxRouteDistance', 'attackMaxRouteTime', 'attackMinPlayerDistance', 'attackMinPortalDistance', 'attackUseWeapon', 'attackNoGiveup', 'attackCanSnipe', 'attackCheckLOS', 'attackLooters', 'attackChangeTarget', 'aggressiveAntiKS']);
$cfg->addCategory('attack', 'Grid', ['attackAuto', 'attackAuto_party', 'attackAuto_onlyWhenSafe', 'attackAuto_followTarget', 'attackAuto_inLockOnly', 'attackDistance', 'attackDistanceAuto', 'attackMaxDistance', 'attackRouteMaxPathDistance', 'attackMaxRouteTime', 'attackMinPlayerDistance', 'attackMinPortalDistance', 'attackUseWeapon', 'attackNoGiveup', 'attackCanSnipe', 'attackCheckLOS', 'attackLooters', 'attackChangeTarget', 'aggressiveAntiKS']);
$cfg->addCategory('route', 'Grid', ['route_escape_reachedNoPortal', 'route_escape_randomWalk', 'route_escape_shout', 'route_randomWalk', 'route_randomWalk_inTown', 'route_randomWalk_maxRouteTime', 'route_maxWarpFee', 'route_maxNpcTries', 'route_teleport', 'route_teleport_minDistance', 'route_teleport_maxTries', 'route_teleport_notInMaps', 'route_step']);
$cfg->addCategory('teleport', 'Grid', ['teleportAuto_hp', 'teleportAuto_sp', 'teleportAuto_idle', 'teleportAuto_portal', 'teleportAuto_search', 'teleportAuto_minAggressives', 'teleportAuto_minAggressivesInLock', 'teleportAuto_onlyWhenSafe', 'teleportAuto_maxDmg', 'teleportAuto_maxDmgInLock', 'teleportAuto_deadly', 'teleportAuto_useSkill', 'teleportAuto_useChatCommand', 'teleportAuto_allPlayers', 'teleportAuto_atkCount', 'teleportAuto_atkMiss', 'teleportAuto_unstuck', 'teleportAuto_dropTarget', 'teleportAuto_dropTargetKS', 'teleportAuto_attackedWhenSitting', 'teleportAuto_totalDmg', 'teleportAuto_totalDmgInLock', 'teleportAuto_equip_leftAccessory', 'teleportAuto_equip_rightAccessory', 'teleportAuto_lostHomunculus']);
$cfg->addCategory('follow', 'Grid', ['follow', 'followTarget', 'followEmotion', 'followEmotion_distance', 'followFaceDirection', 'followDistanceMax', 'followDistanceMin', 'followLostStep', 'followSitAuto', 'followBot']);
Expand Down
2 changes: 1 addition & 1 deletion src/Network/Receive.pm
Original file line number Diff line number Diff line change
Expand Up @@ -11553,7 +11553,7 @@ sub skill_cast {
getVector(\%vec, \%coords, $char->{pos_to});
moveAlongVector(\%pos, $char->{pos_to}, \%vec, distance($char->{pos_to}, \%coords));
ai_route($field->baseName, $pos{x}, $pos{y},
maxRouteDistance => $config{attackMaxRouteDistance},
maxRouteDistance => $config{attackRouteMaxPathDistance},
maxRouteTime => $config{attackMaxRouteTime},
noMapRoute => 1);
message TF("Avoid casting Skill - switch position to : %s,%s\n", $pos{x}, $pos{y}), 1;
Expand Down
Loading