Real time gold updating

10/02/2015 14:29 sarkoplata#16
Well i thought i did...
No. Nothing is static, its all random every tp
10/02/2015 14:46 vorosmihaly#17
imo,the only solution would be to call the functions that update gold and probably there's one for getting the current value,too,but dunno,didn't really look into it tbh
10/06/2015 12:48 GoneUp#18
Is this value shared between shard and gameserver? If yes, create a proxy and inject a matching packet.
10/06/2015 20:38 sarkoplata#19
Quote:
Originally Posted by GoneUp View Post
Is this value shared between shard and gameserver? If yes, create a proxy and inject a matching packet.
Very good idea, even though I think shard has nothing to do with it, ill check shard's memory

Edit: As I said that was a nice idea but shard has nothing to do with the gold amount. I was actually excited for a while. :)
12/17/2019 06:53 sarkoplata#20
After quite some time, (like 4 years), I just wish I started messing with asm/cpp earlier. This wasn't 'rocket science' at all, even for me...

Code:
void CGObjPC::UpdateGold(long long GoldAmountChange, int a1, int a2, int a3)
function located at CGObjPC's vftable's 0x016C.

one of the args are for reducing/increasing the gold, one is about the client message, to show that "[%d] gold gained" message. not sure about the other one.

There are some really nice functions around there too, the next 2 functions in the vftable are exp/sp update functions.

always thanks to: @[Only registered and activated users can see links. Click Here To Register...] , @[Only registered and activated users can see links. Click Here To Register...] ;)