Bot is ignoring route_teleport_maxTries

For everything NOT server specific support. Do NOT ask for connectivity help here!.

Moderator: Moderators

Message
Author
verteiron
Noob
Noob
Posts: 1
Joined: 28 Dec 2021, 15:20
Noob?: No

Bot is ignoring route_teleport_maxTries

#1 Post by verteiron »

These are the relevant lines in my config.txt:

Code: Select all

route_teleport 1
route_teleport_minDistance 200
route_teleport_maxTries 4
Expected result: Kore teleports with fwings up to 4 times to try and get within 200 units of the portal, then gives up and walks.
Actual result: Kore teleports until all fwings are gone, then goes back to town to buy more fwings, never making it through the map unless they land within portal mindistance.

Since I'm assuming this is working for most people, I'm guessing I'm overwriting the maxTries value somewhere else, but I can't find out where. Here's the rest of my config.txt (don't judge, this is my first attempt at botting).

Code: Select all

#server info removed

pauseCharLogin 2
pauseCharServer 0
pauseMapServer 0
ignoreInvalidLogin 0

# Opening cash shop when connected to map server (recv/ST0)
whenInGame_requestCashPoints 0

message_length_max 80

######## Main configuration ########

alias_heal sp 28

allowedMaps
allowedMaps_reaction 1

attackAuto 2
attackAuto_party 1
attackAuto_onlyWhenSafe 0
attackAuto_followTarget 1
attackAuto_inLockOnly 1
attackAuto_notInTown 1
attackDistance 1
attackDistanceAuto 0
attackMaxDistance 1
attackMaxRouteDistance 50
attackMaxRouteTime 4
attackMinPlayerDistance 2
attackMinPortalDistance 4
attackUseWeapon 1
attackNoGiveup 0
attackCanSnipe 0
attackCheckLOS 1
attackRouteMaxPathDistance 13
attackLooters 0
attackChangeTarget 1
aggressiveAntiKS 0

attackUpdateMonsterPos 1

autoMoveOnDeath 1
autoMoveOnDeath_x 160
autoMoveOnDeath_y 59
autoMoveOnDeath_map

attackEquip_topHead
attackEquip_midHead
attackEquip_lowHead
attackEquip_leftHand
attackEquip_rightHand
attackEquip_leftAccessory
attackEquip_rightAccessory
attackEquip_robe
attackEquip_armor
attackEquip_shoes
attackEquip_arrow

# You need the breakTime plugin: https://openkore.com/wiki/BreakTime
autoBreakTime {
	startTime
	stopTime
}

autoConfChange {
	minTime
	varTime
	lvl
	joblvl
}

autoMakeArrows 0

autoRestart 0

autoRestartMin 10800
autoRestartSeed 3600

autoRestartSleep 1
autoSleepMin 900
autoSleepSeed 900

autoResponse 0
autoResponseOnHeal 0

autoSpell
autoSpell_safe

avoidGM_namePattern
avoidGM_near 0
avoidGM_near_inTown 0
avoidGM_talk 0
avoidGM_reconnect 1800
avoidGM_ignoreList

avoidList 1
avoidList_inLockOnly 0
avoidList_reconnect 1800
avoidList_ignoreList

avoidHiddenActors 0

cachePlayerNames 1
cachePlayerNames_duration 900
cachePlayerNames_maxSize 100

clientSight 15

dcPause 1
dcOnDeath 0
dcOnDualLogin 0
dcOnDisconnect 0
dcOnEmptyArrow 0
dcOnMaxReconnections 0
dcOnMute 0
dcOnPM 0
dcOnZeny 0
dcOnStorageFull 1
dcOnPlayer 0
dcOnServerShutDown 0
dcOnServerClose 0
dcOnJobLevel
dcOnLevel

follow 0
followTarget Syrcaid, Verteiron, Gubbit, India Maria
followEmotion 1
followEmotion_distance 4
followFaceDirection 0
followDistanceMax 6
followDistanceMin 3
followLostStep 12
followSitAuto 0
followBot 0

itemsTakeAuto 2
itemsTakeAuto_party 0
itemsGatherAuto 2
itemsGatherAuto_notInTown 0
itemsMaxWeight 89
itemsMaxWeight_sellOrStore 48
itemsMaxNum_sellOrStore 99
cartMaxWeight 7900
itemsTakeAuto_new 0
itemsTakeGreed 0
itemsCheckWeight 1

lockMap moc_fild03
lockMap_x
lockMap_y
lockMap_randX
lockMap_randY

route_escape_reachedNoPortal 1
route_escape_randomWalk 1
route_escape_shout
route_avoidWalls 1
route_randomWalk 1
route_randomWalk_inTown 0
route_randomWalk_maxRouteTime 75
route_maxWarpFee
route_maxNpcTries 5
route_teleport 0
route_teleport_minDistance 200
route_teleport_maxTries 4
route_step 12
route_removeMissingPortals_NPC 1
route_removeMissingPortals 0
route_tryToGuessMissingPortalByDistance 1
route_reAddMissingPortals 1

runFromTarget 0
runFromTarget_inAdvance 0
runFromTarget_dist 5
runFromTarget_minStep 7
runFromTarget_maxStep 11
runFromTarget_maxPathDistance 13

saveMap payon
saveMap_warpToBuyOrSell 1

shopAuto_open 0
shop_random 0
shop_useSkill 1

buyerShopAuto_open 0
buyerShop_random 0

sitAuto_hp_lower 25%
sitAuto_hp_upper 100%
sitAuto_sp_lower 0
sitAuto_sp_upper 30
sitAuto_follow 0
sitAuto_over_50 0
sitAuto_idle 1
sitAuto_look 1
sitAuto_look_from_wall 1
sitTensionRelax 0

statsAddAuto 1
statsAddAuto_list 30 str, 30 vit, 30 dex, 40 vit, 50 dex, 50 str
statsAddAuto_dontUseBonus 0
statsAdd_over_99 1

skillsAddAuto 1
skillsAddAuto_list NV_BASIC 9, SM_SWORD 5, SM_PROVOKE 5, SM_ENDURE 5, SM_BASH 5, SM_MAGNUM 5, SM_SWORD 10, SM_RECOVERY 10

tankMode 0
tankModeTarget

teleportAuto_hp 10
teleportAuto_sp 0
teleportAuto_idle 0
teleportAuto_portal 0
teleportAuto_search 0
teleportAuto_minAggressives 0
teleportAuto_minAggressivesInLock 0
teleportAuto_onlyWhenSafe 0
teleportAuto_maxDmg 500
teleportAuto_maxDmgInLock 0
teleportAuto_deadly 1
teleportAuto_useSkill 1
teleportAuto_useChatCommand
teleportAuto_allPlayers 0
teleportAuto_notPlayers
teleportAuto_atkCount 0
teleportAuto_atkMiss 10
teleportAuto_unstuck 0
teleportAuto_lostTarget 0
teleportAuto_dropTarget 0
teleportAuto_dropTargetKS 0
teleportAuto_attackedWhenSitting 0
teleportAuto_totalDmg 0
teleportAuto_totalDmgInLock 0
teleportAuto_equip_leftAccessory
teleportAuto_equip_rightAccessory
teleportAuto_lostHomunculus
teleportAuto_useItemForRespawn
teleportAuto_item1
teleportAuto_item2

dealAuto 2
dealAuto_names
partyAuto 1
partyAutoShare 0
partyAutoShareItem 0
partyAutoShareItemDiv 0
guildAutoDeny 1
attendanceAuto 1

verbose 1
showDomain 0
showDomain_NPC parseMsg_presence
showDomain_Shop list
squelchDomains
verboseDomains
beepDomains
beepDomains_notInTown
friendlyAID
showTime
showTimeDomains
showTimeDomainsFormat
wx_map_maxAutoSize 300
wx_map_monsterSticking 1
wx_map_npcSticking 1
wx_map_playersSticking 1
wx_map_portalSticking 5
wx_map_route 1
wx_npcTalk
wx_captcha
showAllDamage 0
manualURL https://openkore.com/wiki/Manual
forumURL https://forums.openkore.com

logChat 1
logPrivateChat 1
logPartyChat 1
logGuildChat 1
logSystemChat 1
logLocalBroadcast 1
logShop 1
logEmoticons
logConsole 1
logAppendUsername 1
logAppendServer 0
monsterLog 0
logDead 1

questDisplayStyle 2

chatTitleOversize 0
shopTitleOversize 0
buyerShopTitleOversize 0

sleepTime 10000

ignoreAll 0
itemHistory 0
autoTalkCont 1
noAutoSkill 0
portalCompile 1
portalRecord 2
missDamage 0

tankersList

repairAuto 0
repairAuto_list

status_mapProperty 0
status_mapType 0

monster_filter

######## Mercenary Support ########

mercenary_attackAuto 2
mercenary_attackAuto_party 1
mercenary_attackAuto_notInTown 1
mercenary_attackAuto_onlyWhenSafe 0
mercenary_attackAuto_duringRandomWalk 0
mercenary_attackAuto_duringItemsTake 0
mercenary_attackDistance 1
mercenary_attackMaxDistance 1
mercenary_attackDistanceAuto 0
mercenary_attackMaxRouteTime 4
mercenary_attackCanSnipe 0
mercenary_attackCheckLOS 1
mercenary_attackRouteMaxPathDistance 13
mercenary_attackNoGiveup 0
mercenary_attackChangeTarget 1
mercenary_attack_dance_melee 0
mercenary_attack_dance_ranged 0

mercenary_lost_teleportToMaster_maxTries 6

mercenary_route_randomWalk_rescueWhenLost 0
mercenary_route_randomWalk_stopDuringAttack 0
mercenary_route_randomWalk_waitMinDistance 0

mercenary_runFromTarget 0
mercenary_runFromTarget_inAdvance 0
mercenary_runFromTarget_dist 5
mercenary_runFromTarget_minStep 7
mercenary_runFromTarget_maxStep 11
mercenary_runFromTarget_maxPathDistance 13

mercenary_followDistanceMax 12
mercenary_followDistanceMin 3

mercenary_moveNearWhenIdle 1
mercenary_moveNearWhenIdle_minDistance 2
mercenary_moveNearWhenIdle_maxDistance 12

mercenary_idleWalkType 1

mercenary_route_step 10

mercenary_tankMode 0
mercenary_tankModeTarget

mercenary_teleportAuto_hp 10
mercenary_teleportAuto_maxDmg 500
mercenary_teleportAuto_maxDmgInLock 0
mercenary_teleportAuto_deadly 1
mercenary_teleportAuto_unstuck 0
mercenary_teleportAuto_dropTarget 0
mercenary_teleportAuto_dropTargetKS 0
mercenary_teleportAuto_totalDmg 0
mercenary_teleportAuto_totalDmgInLock 0
mercenary_teleportAuto_attackedWhenSitting 0

######## Homunculus Support ########

homunculus_attackAuto 2
homunculus_attackAuto_party 1
homunculus_attackAuto_notInTown 1
homunculus_attackAuto_onlyWhenSafe 0
homunculus_attackAuto_duringRandomWalk 0
homunculus_attackAuto_duringItemsTake 0
homunculus_attackDistance 1
homunculus_attackMaxDistance 1
homunculus_attackDistanceAuto 0
homunculus_attackMaxRouteTime 4
homunculus_attackCanSnipe 0
homunculus_attackCheckLOS 1
homunculus_attackRouteMaxPathDistance 13
homunculus_attackNoGiveup 0
homunculus_attackChangeTarget 1
homunculus_attack_dance_melee 0

homunculus_lost_teleportToMaster_maxTries 6

homunculus_route_randomWalk_rescueWhenLost 0
homunculus_route_randomWalk_stopDuringAttack 0
homunculus_route_randomWalk_waitMinDistance 0

homunculus_runFromTarget 0
homunculus_runFromTarget_dist 5
homunculus_runFromTarget_minStep 7
homunculus_runFromTarget_maxStep 11
homunculus_runFromTarget_maxPathDistance 13

homunculus_followDistanceMax 12
homunculus_followDistanceMin 3

homunculus_moveNearWhenIdle 1
homunculus_moveNearWhenIdle_minDistance 2
homunculus_moveNearWhenIdle_maxDistance 12

homunculus_idleWalkType 1

homunculus_route_step 10

homunculus_tankMode 0
homunculus_tankModeTarget

homunculus_StandByAuto 0
homunculus_teleportAuto_hp 10
homunculus_teleportAuto_maxDmg 500
homunculus_teleportAuto_maxDmgInLock 0
homunculus_teleportAuto_deadly 1
homunculus_teleportAuto_unstuck 0
homunculus_teleportAuto_dropTarget 0
homunculus_teleportAuto_dropTargetKS 0
homunculus_teleportAuto_totalDmg 0
homunculus_teleportAuto_totalDmgInLock 0
homunculus_teleportAuto_attackedWhenSitting 0

# Turn on/off homunculus autofeeding
homunculus_autoFeed 1
# Feed homunculus when meet the hunger value (homunculus_hunger > homunculus_return)
homunculus_hunger 15
# Return homunculus when meet the hunger value
homunculus_return 11
# In Wich maps should we allow feeding? (leave empty for any map)
homunculus_autoFeedAllowedMaps

# Turn on/off pet autofeeding
pet_autoFeed 1
# Feed pet when meet the hunger value
pet_hunger 25
# Return pet when meet the hunger value
pet_return 20

######## Block options ########
# You can copy & paste any block multiple times. So if you want to
# configure two attack skills, just duplicate the attackSkillSlot block.

attackSkillSlot Provoke{
	lvl 10
	sp >10
	dist 8
	monsters
	maxUses 1
	maxAttempts 4
	inLockOnly 1
	timeout 10
}

useSelf_skill Endure {
	lvl 10
	sp > 10%
	whenStatusInactive Endure
        onAction attack
	inLockOnly 1
	notWhileSitting 1
}

useSelf_skill Magnum Break {
	lvl 10
	dist 1.5
	sp > 30
	aggressives >= 3
	inLockOnly 1
	notInTown 1
}

useSelf_skill SM_AUTOBERSERK {
	whenStatusInactive EFST_AUTOBERSERK
	inLockOnly 1
}

attackSkillSlot Bash {
	lvl 10
	dist 1.5
	sp > 10
	aggressives >= 2  # change value here
	inLockOnly 1
	timeout 5
	monsters
	maxAttempts 
	maxUses 4
	notWhileSitting 1
}

useSelf_skill Concentration {
	lvl 10
	sp > 50
	whenStatusInactive Concentration
	onAction attack
}

useSelf_skill_smartHeal 1

partySkillDistance 0..8

autoSwitch_default_rightHand
autoSwitch_default_leftHand
autoSwitch_default_arrow

# NOTE: In the case of two handed weapons, or no Shield,
#       duplicate the weapon name for 'rightHand'
# To attack with bare hands, specify "[NONE]" (without the quotes) for rightHand

autoSwitch {
	rightHand
	leftHand
	arrow
	distance
	useWeapon
}

useSelf_item Novice Potion, Red Potion, Apple, White Potion, Orange Potion {
	hp < 50%
	inInventory
}

useSelf_item Concentration Potion {
	whenStatusInactive EFST_ATTHASTE_POTION1
	inLockOnly 1
	notWhileSitting 1
	timeout 5
}

useSelf_item Green Herb {
	whenStatusActive EFST_ENCHANTPOISON, EFST_HEALTHSTATE_POISON
	timeout 2
}

######## Autostorage/autosell ########

sellAuto 1
sellAuto_npc payon 159 96
sellAuto_standpoint
sellAuto_distance 5
sellAuto_npc_steps s e


buyAuto Fly Wing {
	npc payon 159 96
	standpoint
	distance 5
	price 60
	minAmount 0
	maxAmount 50
	disabled 0
	label buyflywing
}

buyAuto Butterfly Wing {
	npc payon 159 96
	standpoint
	distance 5
	price 300
	minAmount 0
	maxAmount 3
	disabled 0
	label buybutterfly
}

buyAuto Red Potion {
	npc payon 159 96
	standpoint
	distance 5
	price 50
	minAmount 
	maxAmount 30
	disabled 0
	label buyredpot
}

buyAuto Concentration Potion {
	npc payon 159 96
	standpoint
	distance 5
	price 800
	minAmount
	maxAmount 3
	disabled 0
	label buyconcpot
}

sellAuto 1
sellAuto_npc payon 159 96
sellAuto_standpoint
sellAuto_distance 5
sellAuto_npc_steps s e

storageAuto 1
storageAuto_npc payon 181 104
storageAuto_distance 5
storageAuto_npc_type 3
storageAuto_npc_steps c r1 c r0 n
storageAuto_password
storageEncryptKey
storageAuto_keepOpen 0
storageAuto_useChatCommand
storageAuto_notAfterDeath
relogAfterStorage 0
minStorageZeny 500

getAuto Red Potion {
	minAmount 
	maxAmount 30
}


######## Debugging options; only useful for developers ########

debug 0
debugPacket_unparsed 0
debugPacket_received 0
debugPacket_ro_sent 0
debugPacket_sent 0
debugPacket_exclude
debugPacket_include
debugPacket_include_dumpMethod
debugDomains
logToFile_Debug
logToFile_Errors
logToFile_Messages
logToFile_Warnings
history_max 50
teps s

npcTimeResponse
npcWrongStepsMethod 0

######## Debugging options; only useful for developers ########

debug 0
debugPacket_unparsed 0
debugPacket_received 0
debugPacket_ro_sent 0
debugPacket_sent 0
debugPacket_exclude
debugPacket_include
debugPacket_include_dumpMethod
debugDomains
logToFile_Debug
logToFile_Errors
logToFile_Messages
logToFile_Warnings
history_max 50
macro_orphans terminate
Any help is appreciated.

Also, totally unrelated, does anyone know how to make Kore stand up before doing autobuy/sell/storage? I'm configured to sit to regen health, but if it's time to merch, Kore will try to use the BWings while sitting, give up, and just walk back to town.

User avatar
4epT
Developers
Developers
Posts: 612
Joined: 30 Apr 2008, 14:17
Noob?: No
Location: Moskow (Russia)
Contact:

Re: Bot is ignoring route_teleport_maxTries

#2 Post by 4epT »

on which map is the bot trying to teleport?
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image

Post Reply