attackSkillSlot: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
(Created page with '; attackSkillSlot [<skill name>] : This option specifies the skill to automatically use when attacking. '''Syntax:''' attackSkillSlot [<skill name>] …')
 
No edit summary
 
(14 intermediate revisions by 8 users not shown)
Line 1: Line 1:
; attackSkillSlot [<[[References#Skill Names|skill name]]>]
Uses specified skill when attacking and all specified conditions are met.
: This option specifies the skill to automatically use when attacking.


'''Syntax:'''
== Syntax ==
  attackSkillSlot [<skill name>] {
  attackSkillSlot [<[[References#Skill_Names|skill name]]>] {
        dist [<number>]
dist [<[[number]]>]
        isSelfSkill [<boolean flag>]
maxAttempts [<[[number]]>]
        maxAttempts [<number>]
maxUses [<[[number]]>]
        maxUses [<number>]
previousDamage [<[[References#Range_Operators|range]]>]
        previousDamage [<range>]
isStartSkill <[[References#boolean_flag|boolean flag]]>
   
   
        # [[References#Skill Use Conditions|Skill Use Conditions]]
# [[:Category:Skill Use Condition|Skill Use Condition]]s, including [[isSelfSkill]]
        # [[References#Self Conditions|Self Conditions]]
# [[:Category:Self Condition|Self Condition]]s
        # [[References#Target Monster Conditions|Monster Conditions]]
# [[:Category:Monster Condition|Target Monster Condition]]s
  }
  }




''' Attribute definitions: '''
=== Attribute definitions ===
----
; attackSkillSlot <[[References#Skill_Names|skill name]]>
: This option specifies the skill to automatically use when attacking.


:; dist [<number>]
:: This option specifies the distance (in number of blocks) from the monster that Kore will move to before using this skill.


:::'''''Notes:'''''
; dist [<[[number]]>]
:::* This is not a list, so specify only one number.
: This option specifies the distance (in number of blocks) from the monster that Kore will move to before using this skill.
:::* If this option is not set, Kore will use the distance you specified in attackDistance and attackMaxDistance.


:; isSelfSkill [<boolean flag>]
::'''Notes:'''
:: This option specifies whether the skill will be used on self or on the target monster. If this option is set to '''1''', Kore will use the skill on itself, otherwise if this is set to '''0''' (default value), Kore will use the skill on the attack target.
::* This is not a list, so specify only one number.
::* If this option is not set, Kore will use the distance you specified in [[attackDistance]] and [[attackMaxDistance]].


::: '''''Note:'''''
:::* You must set this option to the correct value. For example, if you're trying to use Grand Cross you have to set this flag to 1 or you might see a target circle around your target monster as if you casted a skill on it, which is quite suspicious.


:; maxAttempts [<number>]
; maxAttempts [<[[number]]>]
:: This option specifies the maximum number of attempts allowed to use this skill. Use this to limit usage of skills that could fail (e.g. Steal).
: This option specifies the maximum number of attempts allowed to use this skill. Use this to limit usage of skills that could fail (e.g. Steal).


:; maxUses [<number>]
:: This option specifies the maximum number of successful usage allowed for this skill.


::: '''''Note:'''''
; maxUses [<[[number]]>]
:::* This attribute only counts successful usage. If a skill fails, Kore will continue to use the skill until it finally succeeds even if this option is set to '''1'''.  
: This option specifies the maximum number of successful usage allowed for this skill.


:; previousDamage [<[[References#Range Operators|range]]>]
:: '''Note.'''
:: If this option is set, the skill will only be used if the damage you have dealt to the monster is within the specified range
::* This attribute only counts successful usage. If a skill fails, Kore will continue to use the skill until it finally succeeds even if this option is set to '''1'''.




''' Example '''
; previousDamage <[[References#Range_Operators|range]]>
: If this option is set, the skill will only be used if the damage you have dealt to the monster is within the specified range


* Use Holy Cross on monsters Khalitzburg, Raydric, Whisper:
 
; isStartSkill <[[References#boolean_flag|boolean flag]]>
: If this option is set, openkore will send hotkey macro (skill start/end) packet
Seems to work only with [https://irowiki.org/wiki/Rolling_Cutter Rolling Cutter]
 
== Example ==
* Use [http://irowiki.org/wiki/Holy_Cross Holy Cross] on monsters Khalitzburg, Raydric, Whisper:
  attackSkillSlot Holy Cross {
  attackSkillSlot Holy Cross {
  lvl 10
  lvl 10
Line 53: Line 56:
  monsters Khalitzburg,Raydric,Whisper,Whisper Boss
  monsters Khalitzburg,Raydric,Whisper,Whisper Boss
  }
  }


[[Category:config.txt]]
[[Category:config.txt]]
[[Category:attack]]
[[Category:attack]]
[[Category:config block]]

Latest revision as of 21:59, 3 May 2023

Uses specified skill when attacking and all specified conditions are met.

Syntax

attackSkillSlot [<skill name>] {
	dist [<number>]
	maxAttempts [<number>]
	maxUses [<number>]
	previousDamage [<range>]
	isStartSkill <boolean flag>

	# Skill Use Conditions, including isSelfSkill
	# Self Conditions
	# Target Monster Conditions
}


Attribute definitions


attackSkillSlot <skill name>
This option specifies the skill to automatically use when attacking.


dist [<number>]
This option specifies the distance (in number of blocks) from the monster that Kore will move to before using this skill.
Notes:
  • This is not a list, so specify only one number.
  • If this option is not set, Kore will use the distance you specified in attackDistance and attackMaxDistance.


maxAttempts [<number>]
This option specifies the maximum number of attempts allowed to use this skill. Use this to limit usage of skills that could fail (e.g. Steal).


maxUses [<number>]
This option specifies the maximum number of successful usage allowed for this skill.
Note.
  • This attribute only counts successful usage. If a skill fails, Kore will continue to use the skill until it finally succeeds even if this option is set to 1.


previousDamage <range>
If this option is set, the skill will only be used if the damage you have dealt to the monster is within the specified range


isStartSkill <boolean flag>
If this option is set, openkore will send hotkey macro (skill start/end) packet
Seems to work only with Rolling Cutter

Example

  • Use Holy Cross on monsters Khalitzburg, Raydric, Whisper:
attackSkillSlot Holy Cross {
	lvl 10
	dist 1.5
	sp > 30
	monsters Khalitzburg,Raydric,Whisper,Whisper Boss
}