Addition of collection system.

Contributed by iDesy.
This commit is contained in:
MobiusDevelopment
2021-05-19 10:20:55 +00:00
parent bf6eb75074
commit 4e3762f353
54 changed files with 4924 additions and 15 deletions

View File

@@ -0,0 +1,6 @@
DROP TABLE IF EXISTS `collection_favorites`;
CREATE TABLE IF NOT EXISTS `collection_favorites` (
`accountName` VARCHAR(45) NOT NULL DEFAULT '',
`collectionId` int(3) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`accountName`,`collectionId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

View File

@@ -0,0 +1,8 @@
DROP TABLE IF EXISTS `collections`;
CREATE TABLE IF NOT EXISTS `collections` (
`accountName` VARCHAR(45) NOT NULL DEFAULT '',
`itemId` int(11) UNSIGNED NOT NULL DEFAULT 0,
`collectionId` int(3) UNSIGNED NOT NULL DEFAULT 0,
`index` tinyint(3) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`accountName`,`collectionId`,`index`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,29 @@
<?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>
<xs:element name="collection" maxOccurs="unbounded" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="item" maxOccurs="unbounded" minOccurs="0">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:int" name="id" />
<xs:attribute type="xs:int" name="count" use="required"/>
<xs:attribute type="xs:int" name="enchant_level" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute type="xs:integer" name="id" use="required" />
<xs:attribute type="xs:integer" name="optionId" use="required" />
<xs:attribute type="xs:integer" name="category" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>