doCommand: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
No edit summary
m (Conversion script moved page DoCommand to doCommand: Converting page titles to lowercase)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
; doCommand [<[[Console Commands|console commands]]>]
Enables auto use of specified console commands when the conditions defined in the block are met.
: Enables auto use of specified console command when the conditions defined are met.


''' Syntax: '''
== Syntax ==
  doCommand <console commands> {
  doCommand <[[Console Commands|console commands]]> {
  # [[References#Self Conditions|Self Conditions]]
  # [[:Category:Self Condition|Self Conditions]]
  }
  }


 
== Example ==
''' Example '''
* Talk to NPC when your HP is lower than 5% and you are on prontera.
* Talk to NPC when your HP is lower than 5% and you are on prontera.
  doCommand talknpc 87 132 c r0 c
  doCommand talknpc 87 132 c r0 c {
  hp < 5%
  hp < 5%
  inMap prontera
  inMap prontera

Latest revision as of 22:34, 26 April 2021

Enables auto use of specified console commands when the conditions defined in the block are met.

Syntax

doCommand <console commands> {
	# Self Conditions
}

Example

  • Talk to NPC when your HP is lower than 5% and you are on prontera.
doCommand talknpc 87 132 c r0 c {
	hp < 5%
	inMap prontera
}