From 3753109f2958cb03b30165e6ba486ee9aa6e31e1 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Mon, 24 Jul 2017 14:05:36 +0000 Subject: [PATCH] Premium account manager from latest projects. Custom community board from latest projects. Fixed existing hexid replacement issue. --- .../db_installer/sql/game/account_premium.sql | 1 - .../dist/game/config/Custom.ini | 26 +- .../CommunityBoard/Custom/buffer/main.html | 69 ++-- .../Custom/dropsearch/main.html | 90 +++++ .../Custom/gatekeeper/main.html | 23 +- .../data/html/CommunityBoard/Custom/home.html | 19 +- .../CommunityBoard/Custom/merchant/main.html | 19 +- .../CommunityBoard/Custom/navigation.html | 23 ++ .../CommunityBoard/Custom/premium/main.html | 116 ++++++ .../Custom/premium/thankyou.html | 105 ++++++ .../data/scripts/handlers/MasterHandler.java | 2 + .../admincommandhandlers/AdminPremium.java | 23 +- .../communityboard/DropSearchBoard.java | 331 ++++++++++++++++++ .../handlers/communityboard/HomeBoard.java | 203 ++++++++--- .../voicedcommandhandlers/Premium.java | 2 +- .../java/com/l2jmobius/Config.java | 25 +- .../gameserver/datatables/ItemTable.java | 5 + .../instancemanager/PremiumManager.java | 224 ++++++++---- 18 files changed, 1088 insertions(+), 218 deletions(-) create mode 100644 L2J_Mobius_HighFive/dist/game/data/html/CommunityBoard/Custom/dropsearch/main.html create mode 100644 L2J_Mobius_HighFive/dist/game/data/html/CommunityBoard/Custom/navigation.html create mode 100644 L2J_Mobius_HighFive/dist/game/data/html/CommunityBoard/Custom/premium/main.html create mode 100644 L2J_Mobius_HighFive/dist/game/data/html/CommunityBoard/Custom/premium/thankyou.html create mode 100644 L2J_Mobius_HighFive/dist/game/data/scripts/handlers/communityboard/DropSearchBoard.java diff --git a/L2J_Mobius_HighFive/dist/db_installer/sql/game/account_premium.sql b/L2J_Mobius_HighFive/dist/db_installer/sql/game/account_premium.sql index ce5aa62fb9..1c50c07d97 100644 --- a/L2J_Mobius_HighFive/dist/db_installer/sql/game/account_premium.sql +++ b/L2J_Mobius_HighFive/dist/db_installer/sql/game/account_premium.sql @@ -1,7 +1,6 @@ DROP TABLE IF EXISTS `account_premium`; CREATE TABLE `account_premium` ( `account_name` varchar(45) NOT NULL DEFAULT '', - `premium_service` int(1) NOT NULL DEFAULT '0', `enddate` decimal(20,0) NOT NULL DEFAULT '0', PRIMARY KEY (`account_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_Mobius_HighFive/dist/game/config/Custom.ini b/L2J_Mobius_HighFive/dist/game/config/Custom.ini index 9dac8fe92a..0cc038943e 100644 --- a/L2J_Mobius_HighFive/dist/game/config/Custom.ini +++ b/L2J_Mobius_HighFive/dist/game/config/Custom.ini @@ -575,7 +575,7 @@ ShopMinRangeFromNpc = 100 # Enable Custom Community Board. # Default: False -CustomCommunityBoard = False +CustomCommunityBoard = True # Currency used by the Community Board (itemId). # Default: 57 (Adena) @@ -593,6 +593,10 @@ CommunityEnableTeleports = True # Default: True CommunityEnableBuffs = True +# Enable Heal. +# Default: True +CommunityEnableHeal = True + # Price for Teleports. # Default: 0 (free) CommunityTeleportPrice = 0 @@ -601,6 +605,10 @@ CommunityTeleportPrice = 0 # Default: 0 (free) CommunityBuffPrice = 0 +# Price for Heal. +# Default: 0 (free) +CommunityHealPrice = 0 + # Disable Community Board while in combat. # Default: True CommunityCombatDisabled = True @@ -609,6 +617,22 @@ CommunityCombatDisabled = True # Default: True CommunityKarmaDisabled = True +# Cast animations of each buff. +# Default: False +CommunityCastAnimations = False + +# Enable buying premium from community board. +# Premium System must be enabled. +# Default: False +CommunityPremiumSystem = False + +# ItemID for buying premium in community board. +# Check data/html/CommunityBoard/Custom/premium/main.html +CommunityPremiumBuyCoinId = 57 + +# Amount of coins needed for each premium day bought. +CommunityPremiumPricePerDay = 1000000 + # --------------------------------------------------------------------------- # Premium System (VIP) diff --git a/L2J_Mobius_HighFive/dist/game/data/html/CommunityBoard/Custom/buffer/main.html b/L2J_Mobius_HighFive/dist/game/data/html/CommunityBoard/Custom/buffer/main.html index 482cfe0989..e504e076dd 100644 --- a/L2J_Mobius_HighFive/dist/game/data/html/CommunityBoard/Custom/buffer/main.html +++ b/L2J_Mobius_HighFive/dist/game/data/html/CommunityBoard/Custom/buffer/main.html @@ -8,24 +8,7 @@ @@ -114,7 +103,7 @@ - +
- - - - - - - - - - - - - - - - - -
+ %navigation%
@@ -69,41 +52,47 @@
- - - - - - - - - - + + + + + + + + + + - - - - - - - - - - + + + + + + + + + +
+ + + + + + - +
Heal
diff --git a/L2J_Mobius_HighFive/dist/game/data/html/CommunityBoard/Custom/dropsearch/main.html b/L2J_Mobius_HighFive/dist/game/data/html/CommunityBoard/Custom/dropsearch/main.html new file mode 100644 index 0000000000..da14b779c7 --- /dev/null +++ b/L2J_Mobius_HighFive/dist/game/data/html/CommunityBoard/Custom/dropsearch/main.html @@ -0,0 +1,90 @@ + + +
+ + + +
+ + + + + +
+ %navigation% + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Drop Search
+
+
     1. Input item name or partial name to search for items.
     2. Choose item icon to search for drops.
     3. Select an NPC, you can see it's location on the world map.
+ + + + + +
ItemName:
+
+
+
+ + %searchResult% +
+ + %pages% +
+
+ + + + +
+ + + + + + + + + + +
LINEAGE II - COMMUNITY BOARD
+
+
+ + \ No newline at end of file diff --git a/L2J_Mobius_HighFive/dist/game/data/html/CommunityBoard/Custom/gatekeeper/main.html b/L2J_Mobius_HighFive/dist/game/data/html/CommunityBoard/Custom/gatekeeper/main.html index 8192f527cc..e9fdf17659 100644 --- a/L2J_Mobius_HighFive/dist/game/data/html/CommunityBoard/Custom/gatekeeper/main.html +++ b/L2J_Mobius_HighFive/dist/game/data/html/CommunityBoard/Custom/gatekeeper/main.html @@ -8,24 +8,7 @@ - + +
- - - - - - - - - - - - - - - - - -
+ %navigation%
@@ -77,10 +60,11 @@
@@ -106,6 +90,7 @@