Adaptation of World Exchange for main version.

This commit is contained in:
MobiusDevelopment
2022-10-28 04:17:45 +00:00
parent 63ba79e6d8
commit 34622f362f
31 changed files with 2390 additions and 9 deletions

View File

@@ -0,0 +1,12 @@
DROP TABLE IF EXISTS `world_exchange_items`;
CREATE TABLE `world_exchange_items` (
`world_exchange_id` INT NOT NULL DEFAULT 0,
`item_object_id` INT NOT NULL DEFAULT 0,
`item_status` smallint(6) NOT NULL,
`category_id` smallint(6) NOT NULL,
`price` BIGINT UNSIGNED NOT NULL DEFAULT 0,
`old_owner_id` INT NOT NULL DEFAULT 0,
`start_time` bigint(13) unsigned NOT NULL DEFAULT '0',
`end_time` bigint(13) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`world_exchange_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

View File

@@ -0,0 +1,56 @@
# ---------------------------------------------------------------------------
# World Exchange Settings
# ---------------------------------------------------------------------------
# Enable World Exchange icon.
# Default: False
# Needs proper WorldExchangeSortType
EnableWorldExchange = False
# World Exchange Default Language
# Use "en" if you dont use multilang
# or you don't have ItemNameLocalisation.xml file at data/lang/"lang"
# Usage: Sorting items by name.
# Default: en
WorldExchangeDefaultLanguage = en
# Time in MS - every N ms will check all bid status and update if needed.
# Default: 30 second (30 000 ms)
BidItemsIntervalStatusCheck = 30000
# Sale tax
# Default: 5% (0.05)
# Carefully - hard coded value (in client).
LCoinFee = 0.05
# Max sale tax
# Default: 20 000 / On Chinese 500 000 / no limit -1
# Carefully - need to change GamePlayData.
MaxLCoinFee = 20000
# Registration Fee
# Default: 100% (100.0)
# Carefully - hard coded value (in client).
AdenaFee = 100.0
# Max Registration Fee
# Default: -1 (no limit) / On Chinese 20 000
# Carefully - need to change GamePlayData.
MaxAdenaFee = -1
# Bid items will save with Global Variable when set to false.
# If true - on every bid item change.
# Default: False
DBLazy = False
# Time, how long item will be registered in World Exchange.
# Default: 14 Days
ItemSellPeriod = 14
# Time, how long player can payment from sold item.
# Default: 120 Days
PaymentTakePeriod = 120
# Time, how long player can take back item if not sold.
# Default: 120 Days
ItemBackPeriod = 120

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/ItemNameLocalisation.xsd">
<!-- Only used by World Trade-->
<item id="1" name="Κοντό Ξίφος" />
<item id="2" name="Μακρύ Ξίφος" />
<item id="3" name="Ευρύ Ξίφος" />
</list>

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="list" type="listType" />
<xs:complexType name="itemType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:string" name="id" use="optional" />
<xs:attribute type="xs:string" name="name" use="optional" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="listType">
<xs:sequence>
<xs:element type="itemType" name="item" maxOccurs="unbounded" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:schema>