LORDofDOOM / MMOCore

This core is not supported anymore - Please use the new MMOCoreEvo
https://github.com/LORDofDOOM/MMOCoreEvo
GNU General Public License v2.0
34 stars 40 forks source link

[Premium System] I have made a new Premium system i give to you #41

Open ghost opened 12 years ago

ghost commented 12 years ago

From 3fd5a67867c883a3ceedb37a77c6d5ccab6f0f98 Mon Sep 17 00:00:00 2001 From: detonatorss zulhellwow@hotmail.com Date: Mon, 27 Feb 2012 14:56:08 +0100 Subject: [PATCH] =?UTF-8?q?A=C3=B1adido=20sistema=20vip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit


sql/updates/auth/Vip Account patch.sql | 8 ++++++++ src/server/authserver/Server/AuthSocket.cpp | 4 ++++ src/server/game/Entities/Player/Player.cpp | 17 +++++++++++++++-- src/server/game/Miscellaneous/Formulas.h | 3 ++- src/server/game/Server/WorldSession.cpp | 4 ++-- src/server/game/Server/WorldSession.h | 4 +++- src/server/game/Server/WorldSocket.cpp | 14 +++++++++++++- src/server/game/World/World.cpp | 7 +++++++ src/server/game/World/World.h | 4 ++++ .../Database/Implementation/LoginDatabase.cpp | 1 + .../shared/Database/Implementation/LoginDatabase.h | 1 + src/server/worldserver/worldserver.conf.dist | 18 ++++++++++++++++++ 12 files changed, 78 insertions(+), 7 deletions(-) create mode 100644 sql/updates/auth/Vip Account patch.sql

diff --git a/sql/updates/auth/Vip Account patch.sql b/sql/updates/auth/Vip Account patch.sql new file mode 100644 index 0000000..df317ed --- /dev/null +++ b/sql/updates/auth/Vip Account patch.sql
@@ -0,0 +1,8 @@ +CREATE TABLE IF NOT EXISTS account_premium (

diff --git a/src/server/game/Server/WorldSocket.cpp b/src/server/game/Server/WorldSocket.cpp index 2c6098f..157aa5b 100755 --- a/src/server/game/Server/WorldSocket.cpp +++ b/src/server/game/Server/WorldSocket.cpp @@ -778,6 +778,7 @@ int WorldSocket::HandleAuthSession (WorldPacket& recvPacket) //uint8 expansion = 0; LocaleConstant locale; std::string account;

diff --git a/src/server/game/World/World.cpp b/src/server/game/World/World.cpp index 45924db..31177ba 100755 --- a/src/server/game/World/World.cpp +++ b/src/server/game/World/World.cpp @@ -473,6 +473,13 @@ void World::LoadConfigSettings(bool reload) sLog->outError("Rate.RepairCost (%f) must be >=0. Using 0.0 instead.", rate_values[RATE_REPAIRCOST]); rate_values[RATE_REPAIRCOST] = 0.0f; }