Likes: 0
Results 1 to 1 of 1
-
29-11-14, 10:32 PM #1
[WotLK] TrinityCore 2 Gold Max Work-Around
Register to remove this adHow to Bypass the gold cap. TrinityCore2 with Boost
go to \src\server\game\Entities\Player and open player.cpp.
search for this block around line 22744 :
Code:bool Player::ModifyMoney(int32 amount, bool sendError /*= true*/) { if (!amount) return true; sScriptMgr->OnPlayerMoneyChanged(this, amount); if (amount < 0) SetMoney (GetMoney() > uint32(-amount) ? GetMoney() + amount : 0); else { if (GetMoney() < MAX_MONEY_AMOUNT - static_cast<uint32>(amount)) SetMoney(GetMoney() + amount); else { sScriptMgr->OnPlayerMoneyLimit(this, amount); if (sendError) SendEquipError(EQUIP_ERR_TOO_MUCH_GOLD, NULL, NULL); return false; } } return true; }
Code:{ AddItem(62006, 4); // (item_id, count) item_id of custom currency worth 50k gold, how many. SetMoney((GetMoney() + amount) - 2000000000); GetSession()->SendNotification("|cFFFFCC00You have reached gold limit you have been rewarded with 4 Gold Bars|r!"); return false; }
Code:SendEquipError(EQUIP_ERR_TOO_MUCH_GOLD, NULL, NULL); return false;
Code:if (sendError) { AddItem(62006, 4); // (item_id, count) item_id of custom currency worth 50k gold, how many. SetMoney((GetMoney() + amount) - 2000000000); GetSession()->SendNotification("|cFFFFCC00You have reached gold limit you have been rewarded with 4 Gold Bars|r!"); return false; }
Code:bool Player::ModifyMoney(int32 amount, bool sendError /*= true*/) { if (!amount) return true; sScriptMgr->OnPlayerMoneyChanged(this, amount); if (amount < 0) SetMoney (GetMoney() > uint32(-amount) ? GetMoney() + amount : 0); else { if (GetMoney() < MAX_MONEY_AMOUNT - static_cast<uint32>(amount)) SetMoney(GetMoney() + amount); else { sScriptMgr->OnPlayerMoneyLimit(this, amount); if (sendError) { AddItem(62006, 4); // (item_id, count) item_id of custom currency worth 50k gold, how many. SetMoney((GetMoney() + amount) - 2000000000); GetSession()->SendNotification("|cFFFFCC00You have reached gold limit you have been rewarded with 4 Gold Bars|r!"); return false; } } } return true; }
Credits : slp13at420
› See More: [WotLK] TrinityCore 2 Gold Max Work-Around
Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread
Visitors found this page by searching for:
Nobody landed on this page from a search engine, yet!
SEO Blog