Difference between revisions of "doCommand"

From OpenKore Wiki
Jump to navigation Jump to search
(Created page with '; doCommand [<console command>] { :: self conditions ; } : Enables auto use of specified console command. Category:config.txt Category:config block')
 
m (Conversion script moved page DoCommand to doCommand: Converting page titles to lowercase)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
; doCommand [<console command>] {
+
Enables auto use of specified console commands when the conditions defined in the block are met.
:: [[self conditions]]
+
 
; }
+
== Syntax ==
 +
doCommand <[[Console Commands|console commands]]> {
 +
# [[:Category:Self Condition|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
 +
}
  
: Enables auto use of specified console command.
 
  
 
[[Category:config.txt]]
 
[[Category:config.txt]]
 
[[Category:config block]]
 
[[Category:config block]]

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
}