Player Commendation System (PC Bang).

This commit is contained in:
mobius
2015-01-29 16:36:11 +00:00
parent 007760a8cb
commit d4edb0e701
15 changed files with 283 additions and 11 deletions

View File

@@ -838,3 +838,33 @@ BTZChanceSupportRewards = 50
# Example: 30
# 0 for no delay (disable)
BTZDelay = 10
# ---------------------------------------------------------------------------
# Player Commendation Points (PC Bang)
# ---------------------------------------------------------------------------
# PC BANG POINTS ID = -100
# PC Bang Enabled
Enabled = True
# Max points that player may have
# Limited by int limit
MaxPcBangPoints = 200000
# Use random in rewarding with points
# If enabled points will be random from points/2 to points
AcquisitionPointsRandom = False
# Creates a chance to aquire double point
DoublingAcquisitionPoints = True
# Double points chance
# If DoublingAcquisitionPoints=True
DoublingAcquisitionPointsChance = 1
# PC Bang point rate
# e.g. with 1.0 it's 10000 exp = 1 PC Bang point
# 2.0 - 10000 exp = 2 PC Bang points
# 0.5 - 5000 exp = 1 PC Bang point
AcquisitionPointsRate = 1.0

8
trunk/dist/game/data/html/pccafe.htm vendored Normal file
View File

@@ -0,0 +1,8 @@
<html><body>Player Commendation Points:<br>
You can use PC points to buy items.<br>
It is possible to buy several <font color="LEVEL">General Items</font>, like hair accessories or even <font color="LEVEL">Weapons and Enchant Weapon Scrolls</font> up to <font color="LEVEL">A-Grade</font>.<br>
Take a look on the current rewards.<br>
<font color="LEVEL">
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h pccafe_buy 900001">Buy General Items</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h pccafe_buy 900002">Buy Weapons and Enchant Weapon Scrolls</Button>
</body></html>

View File

@@ -53,14 +53,13 @@ CREATE TABLE IF NOT EXISTS `characters` (
`death_penalty_level` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
`bookmarkslot` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
`vitality_points` int(10) NOT NULL DEFAULT '140000',
`pccafe_points` int(6) DEFAULT NULL,
`createDate` date NOT NULL DEFAULT '0000-00-00',
`language` VARCHAR(2) DEFAULT NULL,
`faction` TINYINT UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`charId`),
KEY `account_name` (`account_name`),
KEY `char_name` (`char_name`),
KEY `clanid` (`clanid`),
KEY `online` (`online`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Faction System
ALTER TABLE `characters` ADD `faction` TINYINT UNSIGNED NOT NULL DEFAULT 0;