Openkore bot problem. Wiz uses skills but attacks melee?

Philippines

Moderators: waferbaron, Moderators

Forum rules
This server is currently not maintained and tables folder (including connection info) is outdated. Read the wiki for instructions on how to update those information. Please contribute your updated info. Contact Cozzie to join the team as a regular server supporter.
jasmine4343
Noob
Noob
Posts: 2
Joined: 12 Sep 2011, 07:40
Noob?: Yes

Openkore bot problem. Wiz uses skills but attacks melee?

#1 Post by jasmine4343 »

I play at Valkyrie server.
Well I am testing the bot config for wiz on my priest,. I was trying to figure out how to bot a wiz using skills only.

I finally know how to bot with skills, my priest uses heal on zombies but sometimes it also use melee attacks on the zombies.

Know any idea how to disable melee attacks?

here is my main config:

Code: Select all


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




====================================

sub positionNearPlayer {
	return 1 if (distance($r_hash, $players{$_}{pos_to}) <= $dist);
	my $dist = shift;
	my $dist = shift;

	foreach (@playersID) {
	next if existsInList($config{tankersList}, $players{$_}{name});
	next if existsInList($config{tankersList}, $players{$_}{name});
	$char->{party}{users}{$_};
	next if existsInList($config{tankersList}, $players{$_}{name});
	return 1 if (distance($r_hash, $players{$_}{pos_to}) <= $dist);
}
alias_heal sp 28

allowedMaps
allowedMaps_reaction 1

attackAuto 1
attackAuto_party 1
attackAuto_onlyWhenSafe 1
attackAuto_followTarget 0
attackAuto_inLockOnly 0
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 1
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

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
followTarget
followFaceDirection 0
followDistanceMax 1
followDistanceMin 1
followLostStep 12
followSitAuto 0
followBot 0

itemsTakeAuto 0
itemsTakeAuto_party 0
itemsGatherAuto 0
itemsMaxWeight 89
itemsMaxWeight_sellOrStore 48
itemsMaxNum_sellOrStore 99
cartMaxWeight 7900
itemsTakeAuto_new 0
    
useSelf_item Novice Potion {
	hp <50%
}

useSelf_item Awakening Potion {
	whenStatusInactive Awakening Potion
	inLockOnly 1
	notWhileSitting 1
	notInTown 1
	timeout 1800
}


lockMap pay_dun00
lockMap_x
lockMap_y
lockMap_randX
lockMap_randY

route_escape_reachedNoPortal 1
route_escape_randomWalk 1
route_escape_shout
route_avoidWalls 1
route_randomWalk 2
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 15

runFromTarget 0
runFromTarget_dist 6

saveMap aldeba_in
saveMap_warpToBuyOrSell 1
saveMap_warpChatCommand

shopAuto_open 0
shop_random 0

sitAuto_hp_lower 2
sitAuto_hp_upper
sitAuto_sp_lower 2
sitAuto_sp_upper 0
sitAuto_over_50 0
sitAuto_idle 0
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
teleportAuto_sp 0
teleportAuto_idle 0
teleportAuto_portal 0
teleportAuto_search 1
teleportAuto_minAggressives 0
teleportAuto_minAggressivesInLock 0
teleportAuto_onlyWhenSafe 0
teleportAuto_maxDmg
teleportAuto_maxDmgInLock 0
teleportAuto_deadly
teleportAuto_useSkill
teleportAuto_useChatCommand
teleportAuto_allPlayers 0
teleportAuto_atkCount 0
teleportAuto_atkMiss
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 2
dealAuto_names
partyAuto 2
partyAutoShare 2
guildAutoDeny 1

verbose 1
showDomain 0
squelchDomains pRO-Valkyrie Server, pm/sent, info
verboseDomains
beepDomains
beepDomains_notInTown

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

chatTitleOversize 0
shopTitleOversize 0

sleepTime 10000

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

tankersList

repairAuto 0
repairAuto_list

removeActorWithDistance



######## 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 Heal {
	lvl 10
	dist 10
	maxCastTime 0
	minCastTime 0
	hp
	sp > 10
	whenNotGround
	onAction
	whenStatusActive
	whenStatusInactive
	whenFollowing
	spirit
	aggressives
	partyAggressives <= 2
	previousDamage
	stopWhenHit 1
	inLockOnly 0
	notInTown 0
	timeout 0
	disabled 0
	monsters Zombie, Skeleton
	notMonsters
	maxAttempts
	maxUses 1
	target_whenStatusActive
	target_whenStatusInactive
	target_deltaHp
	inInventory
	isSelfSkill 0
	manualAI 0
}



useSelf_skill Heal {
	lvl 10
	maxCastTime 0
	minCastTime 0
	hp < 76%
	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 0
	disabled 0
	inInventory
	manualAI 0
}


useSelf_skill_smartHeal 1

autoSwitch_default_rightHand
autoSwitch_default_leftHand
autoSwitch_default_arrow



useSelf_item Pumkin,Meat,Apple,Banana,Sweet Potato,Carrot,Red Potion,White Potion,Monster's Feed,Orange Potion,Hinalle Leaflet,Novice Potion, Mastella Fruit {
	hp <= 30%
	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
}
Any help would be appreciated. Sorry for my bad english
jasmine4343
Noob
Noob
Posts: 2
Joined: 12 Sep 2011, 07:40
Noob?: Yes

Re: Openkore bot problem. Wiz uses skills but attacks melee?

#2 Post by jasmine4343 »

Help from anyone? :(
I just want my bot config to use purely skills, no melee attacks.
benj1320
Moderators
Moderators
Posts: 403
Joined: 25 Aug 2008, 14:56
Noob?: No
Location: CyberOne Building , Eastwood

Re: Openkore bot problem. Wiz uses skills but attacks melee?

#3 Post by benj1320 »

attackUseWeapon 1 <--- change this to 0
“The moon shines to both guilty and innocent alike..”
The Openkore Manual---Global Forum Rules--The Template