• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Gold limit into Gold bars

AlexeWarr

Epic Member

When ever your gold cap is reached, you will receive gold bars instead of gold.

Then your gold amount will reset + the last gold received.


How to do apply this change:

Open player.cpp Code Line: 22041
Search for:
Code:
[SIZE="2"]else
{
 // "At Gold Limit"
 newAmount = MAX_MONEY_AMOUNT;
 if (d)
    SendEquipError(EQUIP_ERR_TOO_MUCH_GOLD, NULL, NULL);
}[/SIZE]

Change with:
Code:
[SIZE="2"]else
{
	std::string GoldLimitString = "";
	newAmount = uint32(d) + 147480000; // new amount of gold +14k gold messed up
	if(d)
	GoldLimitString = "GOLD LIMIT REACHED, NEW GOLD HAS BEEN PLACED TO YOU.";
	m_session->SendAreaTriggerMessage(GoldLimitString.c_str());
	m_session->GetPlayer()->AddItem(100013, 4);  // item ID x4 (200k gold)
}[/SIZE]

Item Sql|: Pastebin Link

Code:
[CENTER][SIZE="2"][COLOR="Red"]Fixed, last time player lost 14k gold when gold reset.

Fixed string message, easy way no more needed to add in language.h[/COLOR][/SIZE][/CENTER]

 
Last edited:

ToxicDev

Banned
I dun get it, it raises cap so its like gold bars > gold > silver > copper
or what?

It removes 200k and gives you 4 gold bars worth 50k each to a vendor once your character reaches gold cap which is 214k and some change.

/on topic ^^ nice mod :p
 
Top