Bot do not perform randomwalk

Forum closed. All further discussion to be discussed at https://github.com/OpenKore/

Moderators: Moderators, Developers

Message
Author
seiferdekas123
Noob
Noob
Posts: 1
Joined: 24 Feb 2011, 20:33
Noob?: Yes

Bot do not perform randomwalk

#1 Post by seiferdekas123 »

Hello Guys,

I´d like to report a problem that I can´t seem to find any resolution, so it´s probably a bug.
When I load openkore, everything seems to run fine, with no problem. After a few time, my macro asks the bot to buy/sell items, and when it´s done, it moves back to the lockmap. It was working perfectly some time ago.
Sometimes, after the bot perform the buy/sell macros it just sit and do nothing.
To solve this, I have tried the following things:

-Check if randomwalk is set to 1 (I even created a macro to ensure it);
-Tried to relog, reload config, check macros;
-Tried to manually force the bot to move (after he sits and do nothing again)
- Verified teleport configs;
- Checked ai print, aiv (see attachement)

Please, can you help me with this?
Is there any randomwalk command in the console? If yes, I couldn´t find it anywhere..

I´m so sorry if this is not the correct area.

Thanks,


macro.txt

Code: Select all

macro vender {
do move ra_in01 250 268
do talk @npc(257 269)
do sell
do sell @inventory(Canino Venenoso)
do sell @inventory(Couro de Animal)
do sell @inventory(Escamas de Cobra)
do sell @inventory(Escama de Cobra)
do sell @inventory(Pena de Harpia)
do sell @inventory(Garra de Harpia)
do sell @inventory(Carne Estragada)
do sell @inventory(Folha Afiada)
do sell @inventory(Tora)
do sell @inventory(Raiz Marrom)
do sell @inventory(Folha Gigante)
pause 0.5
do sell done
}

macro ensurecheck {
inventory "Canino Venenoso" > 100
call vender
timeout 180
}


#####################################

automacro check2 { 
inventory "Poção Vermelha" < 30
priority 2
location rachel, ra_in01
call redPot
timeout 180
}

macro redPot {
do move ra_in01 250 268
pause 1 
do talk @npc(257 269)
do store
do buy 0 350
pause 1
call vender
}

#####################################

automacro check3 { 
inventory "Poção do Despertar" < 1
priority 3
call pocDes
timeout 180
}

macro pocDes {
do move ra_in01 250 268
pause 1 
do talk @npc(257 269)
do store
do buy 6 10
release check3
}

######################################
automacro Fight {
exclusive 0
orphan reregister
macro_delay 0.1
priority 2
timeout 360
call {
pause 3
do conf attackAuto 2
do conf itemsTakeAuto 1
do conf route_randomWalk 1
}
}

ErrorLog.txt

Code: Select all

25   Manteau -- Cape (4)
26   +4 Elmo -- Helmet (256)
27   Armadura de Madeira -- Armor (16)
28   +7 Claymore -- Two-Handed Weapon (34)
-- Equipamento (Não equipado) --
23   Ice Kataná [Ice] (Weapon)
24   Camisa de Algodão (Weapon)  -- Não Identificado
-- Não utilizável --
0    Vale-Teletransporte x 2
1    Unknown #6458 x 2
3    Flecha x 1
7    Unknown #6265 x 16
11   Minério de Oridecon x 3
12   Frescor do Vento x 2
13   Unknown #6247 x 6
14   Casca Escamada x 5
15   Bactérias x 4
17   Couro de Animal x 8
18   Canino Venenoso x 31
19   Escamas de Cobra x 5
20   Carne Estragada x 6
21   Pena de Harpia x 4
22   Garra de Harpia x 2
-- Utilizável --
2    Ovo da Fortuna x 15
4    Banana x 15
5    Asa de Mosca de Iniciante x 50
6    Asa de Borboleta de Iniciante x 17
8    Flor Cantante x 1
9    Lupa x 5
10   Laranja x 3
16   Poção do Despertar x 8
-------------------------------
is 6
You failed to use item: Asa de Borboleta de Iniciante (18)
msg_id: 663 gave unknown results in: message_string
i
----------Inventário-----------
-- Equipamento (Equipado) --
25   Manteau -- Cape (4)
26   +4 Elmo -- Helmet (256)
27   Armadura de Madeira -- Armor (16)
28   +7 Claymore -- Two-Handed Weapon (34)
-- Equipamento (Não equipado) --
23   Ice Kataná [Ice] (Weapon)
24   Camisa de Algodão (Weapon)  -- Não Identificado
-- Não utilizável --
0    Vale-Teletransporte x 2
1    Unknown #6458 x 2
3    Flecha x 1
7    Unknown #6265 x 16
11   Minério de Oridecon x 3
12   Frescor do Vento x 2
13   Unknown #6247 x 6
14   Casca Escamada x 5
15   Bactérias x 4
17   Couro de Animal x 8
18   Canino Venenoso x 31
19   Escamas de Cobra x 5
20   Carne Estragada x 6
21   Pena de Harpia x 4
22   Garra de Harpia x 2
-- Utilizável --
2    Ovo da Fortuna x 15
4    Banana x 15
5    Asa de Mosca de Iniciante x 50
6    Asa de Borboleta de Iniciante x 17
8    Flor Cantante x 1
9    Lupa x 5
10   Laranja x 3
16   Poção do Despertar x 8
-------------------------------
is 6
You failed to use item: Asa de Borboleta de Iniciante (0)
msg_id: 663 gave unknown results in: message_string
is 6
You failed to use item: Asa de Borboleta de Iniciante (18)
msg_id: 663 gave unknown results in: message_string
stand
Você está de pé.
Você está sentando.
stand is 6
Você está de pé.
Você está sentando.
is 6
You failed to use item: Asa de Borboleta de Iniciante (0)
msg_id: 663 gave unknown results in: message_string
Unknown #1830045 is casting Teleportation on self (Delay: 0ms)
Unknown #1830045 uses Teleportation on self (Lv: 2)
[dist=15.3] Monster Roween (1): *??*
is 6
You failed to use item: Asa de Borboleta de Iniciante (0)
msg_id: 663 gave unknown results in: message_string
[ 55/ 48] Monster Roween (1) attacks you (Dmg: 395) (Delay: 500ms)
You are now attacking Monster Roween (1)
[ 52/ 48] You attack Monster Roween (1) (Dmg: Miss!) (Delay: 170ms)
[ 52/ 48] You attack Monster Roween (1) (Dmg: 331) (Delay: 170ms)
[ 52/ 48] You attack Monster Roween (1) (Dmg: Miss!) (Delay: 170ms)
[ 52/ 48] Monster Roween (1) attacks you (Dmg: Miss!) (Delay: 500ms)
[ 52/ 48] You attack Monster Roween (1) (Dmg: 344) (Delay: 170ms)
[ 54/ 48] You attack Monster Roween (1) (Dmg: 321) (Delay: 170ms)
[ 54/ 48] You attack Monster Roween (1) (Dmg: 336) (Delay: 170ms)
[ 54/ 48] You attack Monster Roween (1) (Dmg: 336) (Delay: 170ms)
[ 54/ 48] Monster Roween (1) attacks you (Dmg: 339) (Delay: 500ms)
[ 54/ 48] You attack Monster Roween (1) (Dmg: Miss!) (Delay: 170ms)
[ 54/ 48] You attack Monster Roween (1) (Dmg: 354) (Delay: 170ms)
[ 51/ 48] You attack Monster Roween (1) (Dmg: 334) (Delay: 170ms)
[ 51/ 48] You attack Monster Roween (1) (Dmg: Miss!) (Delay: 170ms)
[ 52/ 48] You attack Monster Roween (1) (Dmg: Miss!) (Delay: 170ms)
Monster Roween (1) is casting Multi-Stage Attack on location (94, 314) (Delay:
500ms)
[ 52/ 48] You attack Monster Roween (1) (Dmg: Miss!) (Delay: 170ms)
[dist=1.4] Monster Roween (1): *$!@#*
[ 52/ 48] Monster Roween (1) uses Multi-Stage Attack on you (Dmg: Miss) (Delay:
500ms)
is 6
Permitido usar Teleportation (26), level 2
Você usou o item: Asa de Borboleta de Iniciante (6) x 1 - restam 16
[ 52/ 48] You attack Monster Roween (1) (Dmg: 353) (Delay: 170ms)
[ 52/ 48] You attack Monster Roween (1) (Dmg: 326) (Delay: 170ms)
You are casting Teleportation on yourself (Delay: 0ms)
Mudança de Mapa: rachel.gat (115, 125)
You are again: Pecopeco (Duration: 9.999s)
You are no longer: MAPPROPERTY_EVENTPVPZONE
You are again: MAPPROPERTY_TELEPORT
You are again: MAPPROPERTY_NOTREMEMBER
You are no longer: MAPPROPERTY_EXP
You are no longer: MAPPROPERTY_CALLMONSTER
You are again: MAPPROPERTY_LAST
You are again: MAPPROPERTY_HIDING_DAMAGE
You are again: MAPPROPERTY_DISABLE_KNOCKBACK
You are again: MAPPROPERTY_LONG_INSUPERABLE_TIME
You are now: MAPTYPE_VILLAGE
You are no longer: MAPTYPE_FIELD
Existe um NPC: Criança Devota#2 (127, 117) (ID 56937) - (0)
Existe um NPC: Loja de Consumíveis (107, 136) (ID 50162) - (1)
Existe um NPC: Loja de Bichinhos (105, 134) (ID 50163) - (2)
Existe um NPC: Lançamentos (103, 133) (ID 50164) - (3)
Existe um NPC: Corp. Ev. Incríveis (109, 138) (ID 57381) - (4)
Existe um NPC: Cidadão#1 (124, 132) (ID 56975) - (5)
Existe um NPC: Mardol (124, 120) (ID 61252) - (6)
Existe um NPC: Vanadis (124, 130) (ID 61256) - (7)
[macro] automacro check2 triggered.
Calculando rota para: Interior de Rachel(ra_in01): 250, 268
Existe um NPC: Mohadian (113, 97) (ID 56958) - (1)
Existe um NPC: Rhehe Ravies#god_se_fes (132, 117) (ID 61498) - (2)
Existe um NPC: Syr (136, 120) (ID 61253) - (3)
Existe um NPC: Girke#3rdgc13 (115, 77) (ID 63641) - (0)
Existe um NPC: Mercador Ocioso#ra_in01 (138, 73) (ID 57002) - (1)
Existe um portal: rachel -> ra_in01 (83, 78) - (0)
Existe um NPC: Sacerdote de Rachel (76, 77) (ID 56986) - (0)
Mudança de Mapa: ra_in01.gat (249, 266)
You are again: Pecopeco (Duration: 9.999s)
You are now: MAPPROPERTY_FREEPVPZONE
You are no longer: MAPPROPERTY_TELEPORT
You are no longer: MAPPROPERTY_NOTREMEMBER
You are again: MAPPROPERTY_LAST
You are again: MAPPROPERTY_HIDING_DAMAGE
You are again: MAPPROPERTY_DISABLE_KNOCKBACK
You are again: MAPPROPERTY_LONG_INSUPERABLE_TIME
You are no longer: MAPTYPE_VILLAGE
You are now: MAPTYPE_VILLAGE_IN
Existe um portal: ra_in01 -> rachel (249, 262) - (0)
Existe um NPC: Vendedora de Utilidades (257, 269) (ID 57546) - (0)
Existe um NPC: Vendedor do Mercado Neg (257, 266) (ID 57564) - (1)
Existe um NPC: Especialista em Armadil (263, 281) (ID 57559) - (2)
Vendedora de Utilidades: Type 'store' to start buying, or type 'sell' to start
selling
----------Vendedora de Utilidades's Store List-----------
#  Name                    Type               Price
0  Poção Vermelha          Usable Heal          50z
1  Poção Laranja           Usable Heal         200z
2  Poção Amarela           Usable Heal         550z
3  Poção Branca            Usable Heal        1200z
4  Poção Verde             Usable Heal          40z
5  Poção da Concentração   Usable Special      800z
6  Poção do Despertar      Usable Special     1500z
7  Asa de Mosca            Usable Special       60z
8  Asa de Borboleta        Usable Special      300z
9  Lupa                    Usable Special       40z
10 Armadilha               Event               100z
11 Folha de Yggdrasil      Usable Special     4000z
-------------------------------
Item adicionado ao inventário: Poção Vermelha (29) x 350 - Usable Heal
You lost 17,500 zeny.
You are now: Owg 50% (Duration: 9.999s)
Negociação Concluída.
Calculando rota para: Interior de Rachel(ra_in01): 250, 268
You are again: Owg 50% (Duration: 9.999s)
Você usou o item: Poção Vermelha (29) x 1 - restam 349
Vendedora de Utilidades: Type 'store' to start buying, or type 'sell' to start
selling
Ready to start selling items
Adicionado à lista de vendas: Canino Venenoso (18) (18) x 31
Digite 'sell done' para vender tudo na sua lista de vendas.
Adicionado à lista de vendas: Couro de Animal (17) (17) x 8
Digite 'sell done' para vender tudo na sua lista de vendas.
Adicionado à lista de vendas: Escamas de Cobra (19) (19) x 5
Digite 'sell done' para vender tudo na sua lista de vendas.
Erro na função 'sell' (Vende um Item do Inventário)
'-1' não é um índice de item válido #; nenhum item foi adicionado à lista de
vendas.
Adicionado à lista de vendas: Pena de Harpia (21) (21) x 4
Digite 'sell done' para vender tudo na sua lista de vendas.
Adicionado à lista de vendas: Garra de Harpia (22) (22) x 2
Digite 'sell done' para vender tudo na sua lista de vendas.
Adicionado à lista de vendas: Carne Estragada (20) (20) x 6
Digite 'sell done' para vender tudo na sua lista de vendas.
Erro na função 'sell' (Vende um Item do Inventário)
'-1' não é um índice de item válido #; nenhum item foi adicionado à lista de
vendas.
Erro na função 'sell' (Vende um Item do Inventário)
'-1' não é um índice de item válido #; nenhum item foi adicionado à lista de
vendas.
Erro na função 'sell' (Vende um Item do Inventário)
'-1' não é um índice de item válido #; nenhum item foi adicionado à lista de
vendas.
Erro na função 'sell' (Vende um Item do Inventário)
'-1' não é um índice de item válido #; nenhum item foi adicionado à lista de
vendas.
6 itens vendidos.
Item removido do inventário: Canino Venenoso (18) x 31
You are again: Owg 50% (Duration: 9.999s)
You gained 2,294 zeny.
Item removido do inventário: Couro de Animal (17) x 8
You are again: Owg 50% (Duration: 9.999s)
You gained 144 zeny.
Item removido do inventário: Escamas de Cobra (19) x 5
You are again: Owg 50% (Duration: 9.999s)
You gained 205 zeny.
Item removido do inventário: Pena de Harpia (21) x 4
You are again: Owg 50% (Duration: 9.999s)
You gained 2,284 zeny.
Item removido do inventário: Garra de Harpia (22) x 2
You are again: Owg 50% (Duration: 9.999s)
You gained 1,210 zeny.
Item removido do inventário: Carne Estragada (20) x 6
You are again: Owg 50% (Duration: 9.999s)
You gained 306 zeny.
Sell completed.
You are again: Owg 50% (Duration: 9.999s)
Você usou o item: Poção Vermelha (29) x 1 - restam 348
You are again: Owg 50% (Duration: 9.999s)
Você usou o item: Poção Vermelha (29) x 1 - restam 347
You are again: Owg 50% (Duration: 9.999s)
Você usou o item: Poção Vermelha (29) x 1 - restam 346
You are again: Owg 50% (Duration: 9.999s)
Você usou o item: Poção Vermelha (29) x 1 - restam 345
You are again: Owg 50% (Duration: 9.999s)
Você usou o item: Poção Vermelha (29) x 1 - restam 344
You are again: Owg 50% (Duration: 9.999s)
Você usou o item: Poção Vermelha (29) x 1 - restam 343
You are again: Owg 50% (Duration: 9.999s)
Você usou o item: Poção Vermelha (29) x 1 - restam 342
You are again: Owg 50% (Duration: 9.999s)
Você usou o item: Poção Vermelha (29) x 1 - restam 341
You are again: Owg 50% (Duration: 9.999s)
Você usou o item: Poção Vermelha (29) x 1 - restam 340
You are again: Owg 50% (Duration: 9.999s)
Você usou o item: Poção Vermelha (29) x 1 - restam 339
You are again: Owg 50% (Duration: 9.999s)
Você usou o item: Poção Vermelha (29) x 1 - restam 338
You are again: Owg 50% (Duration: 9.999s)
Você usou o item: Poção Vermelha (29) x 1 - restam 337
You are again: Owg 50% (Duration: 9.999s)
Você usou o item: Poção Vermelha (29) x 1 - restam 336
You are again: Owg 50% (Duration: 9.999s)
Você usou o item: Poção Vermelha (29) x 1 - restam 335
You are again: Owg 50% (Duration: 9.999s)
Você usou o item: Poção Vermelha (29) x 1 - restam 334
You are again: Owg 50% (Duration: 9.999s)
Você usou o item: Poção Vermelha (29) x 1 - restam 333
You are again: Owg 50% (Duration: 9.999s)
Você usou o item: Poção Vermelha (29) x 1 - restam 332
You are again: Owg 50% (Duration: 9.999s)
Você usou o item: Poção Vermelha (29) x 1 - restam 331
aiv
ai_seq (automática) = sitAuto
Tarefas ativas: RaiseStat, RaiseSkill
Tarefas inativas: -
ai print
------ Seqüência da AI ---------------------
0: sitAuto {mapChanged=>'1299273701',suspended=>'1299273679'}

------ Seqüências da AI --------------------
You are no longer: Two-Hand Quicken
You are casting Two-Hand Quicken on yourself (Delay: 0ms)
You are now: Two-Hand Quicken (Duration: 300s)
You use Two-Hand Quicken on yourself (Lv: 10)
[macro] automacro Fight triggered.
Config 'attackAuto' ajustado para 2 (era 2)
Config 'itemsTakeAuto' ajustado para 1 (era 1)
Config 'route_randomWalk' ajustado para 1 (era 1)
ai
AI desligou.
ai
AI configurada para o modo manual.
ai
AI configurada para o modo automático.


config.txt

Code: Select all

# Please Read the Users Manual
# The Manual is located at http://wiki.openkore.com/index.php?title=Manual

######## Login options and server-specific options ########

master Brazil - bRO: Odin
server 0
XXXXXX
loginPinCode
char 0

bindIp
# For an overview of all servertypes please go to the following URL:
# http://wiki.openkore.com/index.php?title=ServerType
serverType bRO

# 1 = hook into RO client, 2 = Act as stand-alone proxy, proxy = act as true proxy
XKore
XKore_silent 1
XKore_bypassBotDetection 0
XKore_exeName Ragexe.exe

# XKore 2 / Proxy configuration
XKore_listenIp 127.0.0.1
XKore_listenPort 6901
XKore_publicIp 127.0.0.1

# It is not advised to set secureAdminPassword if you're using Xkore 2
secureAdminPassword 1
adminPassword gohowrac
callSign
commandPrefix ;

pauseCharServer 0
pauseMapServer 3
ignoreInvalidLogin 0
secureLogin_requestCode

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
attackDistance 1.5
attackDistanceAuto 0
attackMaxDistance 2.5
attackMaxRouteDistance 100
attackMaxRouteTime 4
attackMinPlayerDistance 2
attackMinPortalDistance 4
attackUseWeapon 1
attackNoGiveup 0
attackCanSnipe 0
attackCheckLOS 0
attackLooters 0
attackChangeTarget 1
aggressiveAntiKS 0

autoMoveOnDeath 0
autoMoveOnDeath_x
autoMoveOnDeath_y
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: http://wiki.openkore.com/index.php?title=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

autoSpell

avoidGM_near 0
avoidGM_near_inTown 0
avoidGM_talk 0
avoidGM_reconnect 1800
avoidGM_ignoreList

avoidList 1
avoidList_inLockOnly 0
avoidList_reconnect 1800

cachePlayerNames 1
cachePlayerNames_duration 900
cachePlayerNames_maxSize 100

clientSight 20

dcOnDeath 0
dcOnDualLogin 0
dcOnDisconnect 0
dcOnEmptyArrow 0
dcOnMaxReconnections 0
dcOnMute 0
dcOnPM 0
dcOnZeny 0
dcOnStorageFull 1
dcOnPlayer 0

follow 0
followTarget
followEmotion 1
followEmotion_distance 4
followFaceDirection 0
followDistanceMax 6
followDistanceMin 3
followLostStep 12
followSitAuto 0
followBot 0

itemsTakeAuto 1
itemsTakeAuto_party 0
itemsGatherAuto 2
itemsMaxWeight 89
itemsMaxWeight_sellOrStore 85
itemsMaxNum_sellOrStore 99
cartMaxWeight 7900
itemsTakeAuto_new 0
    

lockMap ra_fild08
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 150
route_teleport_maxTries 8
route_teleport_notInMaps
route_step 10

runFromTarget 0
runFromTarget_dist 6

saveMap
saveMap_warpToBuyOrSell 1
saveMap_warpChatCommand

shopAuto_open 0
shop_random 0

sitAuto_hp_lower 20
sitAuto_hp_upper 100
sitAuto_sp_lower 0
sitAuto_sp_upper 0
sitAuto_over_50 0
sitAuto_idle 1
sitAuto_look
sitAuto_look_from_wall


statsAddAuto 0
statsAddAuto_list
statsAddAuto_dontUseBonus 0
statsAdd_over_99 0

skillsAddAuto 0
skillsAddAuto_list

tankMode 0
tankModeTarget

teleportAuto_hp 0
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

dealAuto 1
dealAuto_names
partyAuto 1
partyAutoShare 0
guildAutoDeny 1

verbose 1
showDomain 0
squelchDomains
verboseDomains
beepDomains
beepDomains_notInTown

logChat 0
logPrivateChat 1
logPartyChat 1
logGuildChat 1
logSystemChat 1
logEmoticons
logConsole 0
logAppendUsername 1

chatTitleOversize 0
shopTitleOversize 0

sleepTime 10000

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

tankersList

repairAuto 0
repairAuto_list

removeActorWithDistance

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

mercenary_attackAuto 2
mercenary_attackAuto_party 1
mercenary_attackAuto_notInTown 1
mercenary_attackAuto_onlyWhenSafe 0
mercenary_attackDistance 1.5
mercenary_attackMaxDistance 2.5
mercenary_attackMaxRouteTime 4
mercenary_attackCanSnipe 0
mercenary_attackCheckLOS 0
mercenary_attackNoGiveup 0
mercenary_attackChangeTarget 1

mercenary_followDistanceMax 10
mercenary_followDistanceMin 3

mercenary_route_step 15

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

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

homunculus_attackAuto 2
homunculus_attackAuto_party 1
homunculus_attackAuto_notInTown 1
homunculus_attackAuto_onlyWhenSafe 0
homunculus_attackDistance 1.5
homunculus_attackMaxDistance 2.5
homunculus_attackMaxRouteTime 4
homunculus_attackCanSnipe 0
homunculus_attackCheckLOS 0
homunculus_attackNoGiveup 0
homunculus_attackChangeTarget 1

homunculus_followDistanceMax 10
homunculus_followDistanceMin 3

homunculus_route_step 15

homunculus_tankMode 0
homunculus_tankModeTarget

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

# intimacyMax / Min sets a threshhold of when not to feed your homunculus
# If intimacy is HIGHER than the minimum or LOWER/EQUAL to the max, we wont feed.
homunculus_intimacyMax 999
homunculus_intimacyMin 911

# How long should we wait between feeding? default: random between 10 and 60 seconds
homunculus_hungerTimeoutMax 60
homunculus_hungerTimeoutMin 10

# Turn on/off homunculus autofeeding
homunculus_autoFeed 1
# In Wich maps should we allow feeding? (leave empty for any map)
homunculus_autoFeedAllowedMaps

# Feed homunculus between MIN and MAX value (example: between 11 and 25)
homunculus_hungerMin 11
homunculus_hungerMax 24

######## 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 KN_BOWLINGBASH {
	lvl 10
	hp < 30%
	sp > 50%
	monsters
}

attackSkillSlot KN_BOWLINGBASH {
	lvl 10
	sp > 20%
	monsters Vento da Colina
}

attackComboSlot {
	afterSkill
	waitBeforeUse
	dist 1.5
	isSelfSkill 1
	target_deltaHp
}

doCommand {
	hp
	sp
	homunculus_hp
	homunculus_sp
	homunculus_dead
	onAction
	whenStatusActive
	whenStatusInactive
	whenFollowing
	spirit
	aggressives
	monsters
	notMonsters
	stopWhenHit 0
	inLockOnly 0
	notWhileSitting 0
	notInTown 0
	timeout
	disabled 0
	inInventory
	inCart
	inMap
	manualAI 0
}


useSelf_skill KN_TWOHANDQUICKEN {
	lvl 10
	maxCastTime 0
	minCastTime 0
	hp
	sp > 10
	homunculus_hp
	homunculus_sp
	homunculus_dead
	onAction
	whenStatusActive
	whenStatusInactive
	whenFollowing
	spirit
	aggressives
	monsters
	notMonsters
	stopWhenHit 0
	inLockOnly 0
	notWhileSitting 0
	notInTown 0
	timeout 300
	disabled 0
	inInventory
	manualAI 0
}

useSelf_skill_smartHeal 1


partySkill {
	lvl 10
	dist 3
	maxCastTime 0
	minCastTime 0
	hp
	sp
	homunculus_hp
	homunculus_sp
	homunculus_dead
	onAction
	whenStatusActive
	whenStatusInactive
	whenFollowing
	spirit
	aggressives
	monsters
	notMonsters
	stopWhenHit 0
	inLockOnly 0
	notWhileSitting 0
	notInTown 0
	timeout 0
	disabled 0
	manualAI 0
	target
	target_hp
	target_isJob
	target_isNotJob
	target_whenStatusActive
	target_whenStatusInactive
	target_aggressives
	target_monsters
	target_timeout 0
	target_deltaHp
	target_dead 0
	inInventory
	isSelfSkill 0
}


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
}

equipAuto {
	topHead
	midHead
	lowHead
	leftHand
	rightHand
	leftAccessory
	rightAccessory
	robe
	armor
	shoes
	arrow
	monsters
	weight 0
	whileSitting 0
	hp
	sp
	homunculus_hp
	homunculus_sp
	homunculus_dead
	onAction
	whenStatusActive
	whenStatusInactive
	whenFollowing
	spirit
	aggressives
	stopWhenHit 0
	inLockOnly 0
	notWhileSitting 0
	notInTown 0
	timeout 0
	disabled 0
	inInventory
	manualAI 0
}

useSelf_item Erva Branca, Carne, Poção Laranja, Ração para Monstros, Maçã, Erva Amarela,Poção de Aprendiz,Poção Vermelha,Novice Potion,Red Potion,Orange Potion,Yellow Potion,White Potion,Monster's Feed,Pet Food {
	hp < 80%
	sp
	homunculus_hp
	homunculus_sp
	homunculus_dead
	onAction
	whenStatusActive
	whenStatusInactive
	whenFollowing
	spirit
	aggressives
	monsters
	notMonsters
	stopWhenHit 0
	inLockOnly 0
	notWhileSitting 0
	notInTown 0
	timeout 0
	disabled 0
	inInventory
	manualAI 0
}


useSelf_item Uva, Morango {
	hp
	sp < 20
	homunculus_hp
	homunculus_sp
	homunculus_dead
	onAction
	whenStatusActive
	whenStatusInactive
	whenFollowing
	spirit
	aggressives
	monsters
	notMonsters
	stopWhenHit 0
	inLockOnly 0
	notWhileSitting 0
	notInTown 0
	timeout 0
	disabled 0
	inInventory
	manualAI 0
}

useSelf_item Asa de Mosca de Iniciante {
	hp
	sp
	homunculus_hp
	homunculus_sp
	homunculus_dead
	onAction
	whenStatusActive
	whenStatusInactive
	whenFollowing
	spirit
	aggressives
	monsters Nove Caudas
	notMonsters
	stopWhenHit 0
	inLockOnly 0
	notWhileSitting 0
	notInTown 0
	timeout 0
	disabled 0
	inInventory
	manualAI 0
}

useSelf_item Poção do Despertar {
	hp
	sp
	homunculus_hp
	homunculus_sp
	homunculus_dead
	onAction
	whenStatusActive
	whenStatusInactive
	whenFollowing
	spirit
	aggressives
	monsters
	notMonsters
	stopWhenHit
	inLockOnly
	notWhileSitting
	notInTown
	timeout 1800000
	disabled
	inInventory
	manualAI
}
######## Autostorage/autosell ########

buyAuto {
	npc payon_in02 87 34
	npc_steps
	standpoint
	distance 5
	price
	minAmount 5
	maxAmount 80
}

sellAuto
sellAuto_npc
sellAuto_npc_steps
sellAuto_standpoint
sellAuto_distance 5

storageAuto 0
storageAuto_npc umbala 87 160
storageAuto_distance 5
storageAuto_npc_type 1
storageAuto_npc_steps c r1 n
storageAuto_password 4554
storageAuto_keepOpen 0
storageAuto_useChatCommand
relogAfterStorage 1
minStorageZeny 50

npcTimeResponse

getAuto Poção Vermelha {
	minAmount 30
	maxAmount 340
	passive
}

######## 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
storageEncryptKey 0x050B6F79, 0x0202C179, 0x0E20120, 0x04FA43E3, 0x0179B6C8, 0x05973DF2, 0x07D8D6B, 0x08CB9ED9
gameGuard 2
charBlockSize 112
serverEncoding Western
macro_orphans terminate

Locked