瀏覽代碼

BETA: Disabling macro example by default.

Reported by: St3eT
Zoey76 11 年之前
父節點
當前提交
341d290321

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/stats/initialShortcuts.xml

@@ -43,7 +43,7 @@
 	<!-- Macro presets -->
 	<macros>
 		<!-- Macro example with multiple commands. -->
-		<macro macroId="10000" icon="1" name="Macro name" description="This is a test." acronym="HI!"> <!-- Macro ID must be over 1000, use higher values to avoid conflicts with already existing macros. -->
+		<macro macroId="10000" icon="1" name="Macro name" description="This is a test." acronym="HI!" enabled="false"> <!-- Macro ID must be over 1000, use higher values to avoid conflicts with already existing macros. -->
 			<command type="SKILL" skillId="1177" skillLvl="1" /> <!-- To define a skill always include skill ID and level. -->
 			<command type="DELAY" delay="5" /> <!-- To define a delay always define the time in seconds. -->
 			<command type="TEXT">/loc</command> <!-- To define a command, just include the string as if it was typed in-game. -->

+ 1 - 0
L2J_DataPack_BETA/dist/game/data/xsd/initialShortcuts.xsd

@@ -97,6 +97,7 @@
 									<xs:attribute type="xs:string" name="name" use="required" />
 									<xs:attribute type="xs:string" name="description" use="optional" />
 									<xs:attribute type="xs:token" name="acronym" use="required" />
+									<xs:attribute type="xs:boolean" name="enabled" use="optional" />
 								</xs:complexType>
 							</xs:element>
 						</xs:sequence>