darksoke
OnTop500
UPDATED FOR LATEST TRINITYCORE REVISION --Thursday, 19 June 2014, 09:17:35--
first of all i wanna say thx to AlexeWar for giving me the iddea with his post , after some errors i finaly found how to make players receive an item after they reach the gold cap , and after receiveing the item gold reset...
So lets start ..
First of all go in Player.cpp and search for this
and replace it with this one
Red = Token entry id from World//item_template
Green = Ammount of tokens that players receive after reaching the cap
And if you want to use my token , here it is
first of all i wanna say thx to AlexeWar for giving me the iddea with his post , after some errors i finaly found how to make players receive an item after they reach the gold cap , and after receiveing the item gold reset...
So lets start ..
First of all go in Player.cpp and search for this
Code:
[COLOR="#FFFFFF"]if (GetMoney() < MAX_MONEY_AMOUNT - static_cast<uint32>(amount))
SetMoney(GetMoney() + amount);
else
{
if (sendError)
SendEquipError(EQUIP_ERR_TOO_MUCH_GOLD, NULL, NULL);
return false;
}[/COLOR]
and replace it with this one
Code:
[color=white]if (GetMoney() < MAX_MONEY_AMOUNT - static_cast<uint32>(amount))
SetMoney(GetMoney() + amount);
else
{
if (sendError)
{
AddItem([/color][color=red]60156[/color], [color=green]4[/color][color=white]);
SetMoney(0);
GetSession()->SendNotification("You have reached gold limit you have been rewarded with 4 |cFFFFCC00Gold Bars|r!");
}
return false;
}[/color]
Red = Token entry id from World//item_template
Green = Ammount of tokens that players receive after reaching the cap
And if you want to use my token , here it is
Code:
[color=white]INSERT INTO `item_template` VALUES (60156, 0, 8, -1, '|cFFFFCC00Gold Bar|r', 7352, 2, 0, 0, 1, 500000000, 500000000, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1000, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '|cFFCC00CCReceived after reaching gold cap...|r', 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0);
[/color]
--------------------------------------------------------My Release--------------------------------------------------------
SQL
[Last rev/Last Commit] All Race All Class Combination Patch and SQL
Scrolls for learn Dual Wield and Titan's Grip
Item switch Human/Worgen + Runing Wild 3.3.5
Mount Hyjal Level Area 1-255
Aplications
Misc Item Creator
Scripts
Gold cap to Gold Bars
Level Stone 255
--------------------------------------------------------My Release--------------------------------------------------------
SQL
[Last rev/Last Commit] All Race All Class Combination Patch and SQL
Scrolls for learn Dual Wield and Titan's Grip
Item switch Human/Worgen + Runing Wild 3.3.5
Mount Hyjal Level Area 1-255
Aplications
Misc Item Creator
Scripts
Gold cap to Gold Bars
Level Stone 255
--------------------------------------------------------My Release--------------------------------------------------------
Last edited: