doCommand: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
mNo edit summary
m (Syntax)
Line 2: Line 2:


== Syntax ==
== Syntax ==
  doCommand <console commands> {
  doCommand <[[Console Commands|console commands]]> {
  # [[References#Self Conditions|Self Conditions]]
  # [[:Category:Self Condition|Self Conditions]]
  }
  }
=== Details ===
----
; doCommand (<[[Console Commands|console commands]]>) {
: Specifies the console commands that are going to be run.


== Example ==
== Example ==

Revision as of 08:17, 16 August 2012

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
}