Difference between revisions of "conf"

From OpenKore Wiki
Jump to navigation Jump to search
(Created page with ';conf (<config key>) [<value>|none] ;conf (<label.label_name>) [<value>|none] :<config key> ::- a configuration key name from config.txt. :<value> ::- any value depending on t…')
 
Line 1: Line 1:
;conf (<config key>) [<value>|none]
+
;conf <config key> [<value>|none]
;conf (<label.label_name>) [<value>|none]
+
;conf <label>.(<attribute> | block) [<value>|none]
  
 
:<config key>
 
:<config key>
::- a configuration key name from config.txt.  
+
::- a configuration key name from [[config.txt]].  
 
 
 
:<value>
 
:<value>
 
::- any value depending on the configuration key being changed.  
 
::- any value depending on the configuration key being changed.  
 
+
:<label>
:<label.label_name>
 
 
::- by specified label name in configuration block, you can use label name instead of configuration key (see example in config.txt)  
 
::- by specified label name in configuration block, you can use label name instead of configuration key (see example in config.txt)  
  
Line 18: Line 16:
 
!Description
 
!Description
 
|-
 
|-
|align=center|conf <config key>
+
|conf <config key>
 
|Display the current value of the specified configuration key.
 
|Display the current value of the specified configuration key.
 
|-
 
|-
|align=center|conf <config key> <value>
+
|conf <config key> <value>
 
|Set a new value for the specified configuration key.
 
|Set a new value for the specified configuration key.
 
|-
 
|-
|align=center|conf <config key> none
+
|conf <config key> none
 
|Unset the specified configuration key.
 
|Unset the specified configuration key.
 
|-
 
|-
|align=center|conf <label.label_name>
+
|conf <label>.<attribute>
|Display the current value of the specified configuration key
+
|Display the current value of the specified attribute
 +
|-
 +
|conf <label>.<attribute> <value>
 +
|Set a new value for the specified attribute through <label>.<attribute>.
 +
|-
 +
|conf <label>.<attribute> none
 +
|Unset the specified attribute through <label>.<attribute>.
 +
|-
 +
|conf <label>.block
 +
|Display the current value of the specified attribute
 
|-
 
|-
|align=center|conf <label.label_name> <value>
+
|conf <label>.block <value>
|Set a new value for the specified configuration key through label_name.
+
|Set a new value for the specified attribute through <label>.<attribute>.
 
|-
 
|-
|align=center|conf <label.label_name> none
+
|conf <label>.block none
|Unset the specified configuration key through label_name.  
+
|Unset the specified attribute through <label>.<attribute>.  
 
|}
 
|}
  
 
:'''''Note.''''' Kore will not disclose the username and password using this command.  
 
:'''''Note.''''' Kore will not disclose the username and password using this command.  
 +
 +
==Examples==
 +
*config.txt:
 +
<pre>lockMap prt_fild06
 +
 +
useSelf_item Apple, Red Herb {
 +
label useHP
 +
hp < 95%
 +
disabled 0
 +
}</pre>
 +
Console log:
 +
<pre>conf lockMap
 +
Config 'lockMap' is prt_fild06
 +
 +
conf lockMap prt_fild08
 +
Config 'lockMap' set to prt_fild08 (was prt_fild06)
 +
Calculating lockMap route to: Prontera Field(prt_fild08)
 +
 +
conf lockMap none
 +
Config 'lockMap' unset (was prt_fild08)
 +
 +
conf useHP.hp
 +
Config 'useSelf_item_0_hp' is < 95%
 +
 +
conf useHP.hp < 70%
 +
Config 'useSelf_item_0_hp' set to < 70% (was < 95%)
 +
 +
conf useHP.disabled none
 +
Config 'useSelf_item_0_disabled' unset (was 0)
 +
 +
conf useHP.block
 +
Config 'useSelf_item_0' is Apple, Red Herb
 +
 +
conf useHP.block none
 +
Config 'useSelf_item_0' unset (was Apple, Red Herb)
 +
 +
conf useHP.block Meat
 +
Config 'useSelf_item_0' set to Meat (was not set)</pre>
  
 
[[Category:Console Command]]
 
[[Category:Console Command]]

Revision as of 12:54, 25 June 2010

conf <config key> [<value>|none]
conf <label>.(<attribute> | block) [<value>|none]
<config key>
- a configuration key name from config.txt.
<value>
- any value depending on the configuration key being changed.
<label>
- by specified label name in configuration block, you can use label name instead of configuration key (see example in config.txt)
Change a configuration key.
Command Description
conf <config key> Display the current value of the specified configuration key.
conf <config key> <value> Set a new value for the specified configuration key.
conf <config key> none Unset the specified configuration key.
conf <label>.<attribute> Display the current value of the specified attribute
conf <label>.<attribute> <value> Set a new value for the specified attribute through <label>.<attribute>.
conf <label>.<attribute> none Unset the specified attribute through <label>.<attribute>.
conf <label>.block Display the current value of the specified attribute
conf <label>.block <value> Set a new value for the specified attribute through <label>.<attribute>.
conf <label>.block none Unset the specified attribute through <label>.<attribute>.
Note. Kore will not disclose the username and password using this command.

Examples

  • config.txt:
lockMap prt_fild06

useSelf_item Apple, Red Herb {
	label useHP
	hp < 95%
	disabled 0
}

Console log:

conf lockMap
Config 'lockMap' is prt_fild06

conf lockMap prt_fild08
Config 'lockMap' set to prt_fild08 (was prt_fild06)
Calculating lockMap route to: Prontera Field(prt_fild08)

conf lockMap none
Config 'lockMap' unset (was prt_fild08)

conf useHP.hp
Config 'useSelf_item_0_hp' is < 95%

conf useHP.hp < 70%
Config 'useSelf_item_0_hp' set to < 70% (was < 95%)

conf useHP.disabled none
Config 'useSelf_item_0_disabled' unset (was 0)

conf useHP.block
Config 'useSelf_item_0' is Apple, Red Herb

conf useHP.block none
Config 'useSelf_item_0' unset (was Apple, Red Herb)

conf useHP.block Meat
Config 'useSelf_item_0' set to Meat (was not set)