openkore icon indicating copy to clipboard operation
openkore copied to clipboard

config onAction not work

Open Junezavr opened this issue 9 years ago • 2 comments

config partySkill PR_GLORIA { lvl 5 onAction attack <<< not work target_whenStatusInactive EFST_GLORIA isSelfSkill 1 timeout 5 } not work partySkill PR_GLORIA { lvl 5 onAction follow target_whenStatusInactive EFST_GLORIA isSelfSkill 1 timeout 5 } work I want to putskillparty on master attack

Junezavr avatar Oct 05 '17 12:10 Junezavr

Assuming this was your slave, you need to use attackAuto 2 / attackAuto_followTarget 1 / attackAuto_party 1 in your slave config. It won't work if other player (master, following) is doing attack while slave just doing nothing.

onAction is based on that specific bot, not other bot.

If the objective to cast Gloria only when killing monster, try something like these:

  • set mon_control.txt to All 3 (If for non-aggressive monster) so your slave will only land hit once or until you being attacked (provoked) with onAction attack OR use attackUseWeapon 0 with no attackSkillSlot configured

  • use in conjunction with doCommand (for master) and macro (for slave), for example:

  1. Master (refer tables\commanddescriptions.txt)
doCommand p Gloria {
onAction attack
timeout 30 (Gloria Cooldown)
}
  1. Slave (Macro)
automacro Gloria {
party /Gloria/
timeout 30
call {
do ss 75
}
}

Fadreus avatar Oct 05 '17 13:10 Fadreus

onAction attack is only true if SELF is attacking, not a master or party member

lututui avatar Oct 05 '17 14:10 lututui