and wooooohoooooooooooo it works.while having 2147483646 copper in inv. I loot 1677721472 copper.
static const uint32 item_ID = 62006; // can this be done thru the config file?
uint16 Pamount = (GetMoney() / 500000000); // int16 since the answer shouldnt be large or somethings wrong
uint16 Namount = (amount / 500000000);
uint16 Icount = Pamount + Namount;
uint64 Ptotal = GetMoney() + amount;
SetMoney(Ptotal - (Icount * 500000000));
GetSession()->SendNotification("|cFFFFCC00You have reached the gold limit and have been compensated with %u Guild Coin's|r!", Icount);