From eb8c2c27a4440c4bf5ba07a40c21d00ef34ba195 Mon Sep 17 00:00:00 2001 From: Zoey76 <zoey_76@msn.com> Date: Thu, 28 Mar 2013 23:00:56 +0000 Subject: [PATCH] BETA: Adding XSD file for new augmentation XML files. Reported by: PoRnosJH --- .../data/stats/augmentation/retailchances.xml | 2 +- .../augmentation/retailchances_accessory.xml | 2 +- .../data/xsd/augmentation_retailchances.xsd | 42 +++++++++++++++++++ 3 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 L2J_DataPack_BETA/dist/game/data/xsd/augmentation_retailchances.xsd diff --git a/L2J_DataPack_BETA/dist/game/data/stats/augmentation/retailchances.xml b/L2J_DataPack_BETA/dist/game/data/stats/augmentation/retailchances.xml index 7a678e8670..55debd2238 100644 --- a/L2J_DataPack_BETA/dist/game/data/stats/augmentation/retailchances.xml +++ b/L2J_DataPack_BETA/dist/game/data/stats/augmentation/retailchances.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<list> +<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/augmentation_retailchances.xsd"> <weapon type="warrior"> <stone id="8723"> <variation id="1"> diff --git a/L2J_DataPack_BETA/dist/game/data/stats/augmentation/retailchances_accessory.xml b/L2J_DataPack_BETA/dist/game/data/stats/augmentation/retailchances_accessory.xml index b8a87e5644..4efc143d82 100644 --- a/L2J_DataPack_BETA/dist/game/data/stats/augmentation/retailchances_accessory.xml +++ b/L2J_DataPack_BETA/dist/game/data/stats/augmentation/retailchances_accessory.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<list> +<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/augmentation_retailchances.xsd"> <weapon type="warrior"> <stone id="12754"> <variation id="1"> diff --git a/L2J_DataPack_BETA/dist/game/data/xsd/augmentation_retailchances.xsd b/L2J_DataPack_BETA/dist/game/data/xsd/augmentation_retailchances.xsd new file mode 100644 index 0000000000..78f93d9efb --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/xsd/augmentation_retailchances.xsd @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <xs:element name="list"> + <xs:complexType> + <xs:sequence minOccurs="1" maxOccurs="1"> + <xs:element name="weapon" minOccurs="1" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence minOccurs="1" maxOccurs="1"> + <xs:element name="stone" minOccurs="1" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence minOccurs="1" maxOccurs="1"> + <xs:element name="variation" minOccurs="1" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence minOccurs="1" maxOccurs="1"> + <xs:element name="category" minOccurs="1" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence minOccurs="1" maxOccurs="1"> + <xs:element name="augment" minOccurs="1" maxOccurs="unbounded"> + <xs:complexType> + <xs:attribute name="id" type="xs:positiveInteger" use="required" /> + <xs:attribute name="chance" type="xs:decimal" use="required" /> + </xs:complexType> + </xs:element> + </xs:sequence> + <xs:attribute name="probability" type="xs:positiveInteger" use="required" /> + </xs:complexType> + </xs:element> + </xs:sequence> + <xs:attribute name="id" type="xs:positiveInteger" use="required" /> + </xs:complexType> + </xs:element> + </xs:sequence> + <xs:attribute name="id" type="xs:positiveInteger" use="required" /> + </xs:complexType> + </xs:element> + </xs:sequence> + <xs:attribute name="type" type="xs:string" use="required" /> + </xs:complexType> + </xs:element> + </xs:sequence> </xs:complexType> + </xs:element> +</xs:schema> \ No newline at end of file -- GitLab