Sfoglia il codice sorgente

BETA: Datapack part for [L5780].

Zoey76 12 anni fa
parent
commit
5a7b015bd4

+ 2 - 2
L2J_DataPack_BETA/dist/game/data/instances/demo.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<instance name="Giran Marketplace" ejectTime="120" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/instance.xsd">
+<instance name="Giran Marketplace" ejectTime="120" allowRandomWalk="false" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/instance.xsd">
 	<activityTime val="5" />
 	<emptyDestroyTime val="5" />
 	<doorlist>
@@ -11,7 +11,7 @@
 		<group name="general">
 			<spawn npcId="20556" x="82352" y="148608" z="-3468" heading="0" respawn="0" />
 			<spawn npcId="20557" x="82355" y="148788" z="-3468" heading="0" respawn="0" />
-			<spawn npcId="20558" x="82357" y="148428" z="-3468" heading="0" respawn="0" />
+			<spawn npcId="20558" x="82357" y="148428" z="-3468" heading="0" respawn="0" allowRandomWalk="true" />
 		</group>
 	</spawnlist>
 </instance>

+ 2 - 0
L2J_DataPack_BETA/dist/game/data/xsd/instance.xsd

@@ -76,6 +76,7 @@
 												<xs:attribute name="onKillDelay" type="xs:nonNegativeInteger" />
 												<xs:attribute name="respawn" type="xs:nonNegativeInteger" use="required" />
 												<xs:attribute name="respawnRandom" type="xs:nonNegativeInteger" />
+												<xs:attribute name="allowRandomWalk" type="xs:boolean" />
 												<xs:attribute name="x" type="xs:integer" use="required" />
 												<xs:attribute name="y" type="xs:integer" use="required" />
 												<xs:attribute name="z" type="xs:integer" use="required" />
@@ -91,6 +92,7 @@
 			</xs:sequence>
 			<xs:attribute name="name" type="xs:normalizedString" use="required" />
 			<xs:attribute name="ejectTime" type="xs:positiveInteger" />
+			<xs:attribute name="allowRandomWalk" type="xs:boolean" />
 		</xs:complexType>
 	</xs:element>
 </xs:schema>