From 48313dd0dbb980b1fd94075d40b13ee7a7a8371c Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Wed, 19 Jul 2017 18:12:31 +0300 Subject: [PATCH] Remove guild bank methods --- GuildMethods.h | 43 ------------------------------------------- LuaFunctions.cpp | 4 ---- 2 files changed, 47 deletions(-) diff --git a/GuildMethods.h b/GuildMethods.h index be9f2e1..0f8856f 100644 --- a/GuildMethods.h +++ b/GuildMethods.h @@ -293,48 +293,5 @@ namespace LuaGuild #endif return 0; } - -#ifndef CLASSIC - // Move to Player methods - /** - * Windraws money from the [Guild] bank - * - * @param [Player] player - * @param uint32 money - */ - int WithdrawBankMoney(lua_State* L, Guild* guild) - { - Player* player = Eluna::CHECKOBJ(L, 2); - uint32 money = Eluna::CHECKVAL(L, 3); -#ifndef TRINITY - if (guild->GetGuildBankMoney() < money) - return 0; - guild->SetBankMoney(guild->GetGuildBankMoney() - money); -#else - guild->HandleMemberWithdrawMoney(player->GetSession(), money); -#endif - return 0; - } - - // Move to Player methods - /** - * Deposits money to the [Guild] bank - * - * @param [Player] player - * @param uint32 money - */ - int DepositBankMoney(lua_State* L, Guild* guild) - { - Player* player = Eluna::CHECKOBJ(L, 2); - uint32 money = Eluna::CHECKVAL(L, 3); - -#ifndef TRINITY - guild->SetBankMoney(guild->GetGuildBankMoney() + money); -#else - guild->HandleMemberDepositMoney(player->GetSession(), money); -#endif - return 0; - } -#endif }; #endif diff --git a/LuaFunctions.cpp b/LuaFunctions.cpp index 73f316d..d18c0f3 100644 --- a/LuaFunctions.cpp +++ b/LuaFunctions.cpp @@ -1093,10 +1093,6 @@ ElunaRegister GuildMethods[] = { "Disband", &LuaGuild::Disband }, { "AddMember", &LuaGuild::AddMember }, { "DeleteMember", &LuaGuild::DeleteMember }, -#ifndef CLASSIC - { "DepositBankMoney", &LuaGuild::DepositBankMoney }, - { "WithdrawBankMoney", &LuaGuild::WithdrawBankMoney }, -#endif { NULL, NULL } };