-
Member
8.2.5.32750 player money
Hi,
does someone know how to find current player money?
Is this part of the object in the manager?
-
There's a wow Api for that, GetMoney() returns the # of copper the player has. Divide by 10,000 to get Gold, with the remainder as the silver/copper.
API GetMoney | WoWWiki | Fandom
-
Member
Originally Posted by
TheQt
There's a wow Api for that, GetMoney() returns the # of copper the player has. Divide by 10,000 to get Gold, with the remainder as the silver/copper.
API GetMoney | WoWWiki | Fandom
Are you saying, you can't read memory external to get player money? Only way is to execute LUA functions?
What about the gold/silver/copper string on the bag?
-
Oh, Idk if you can or can't, though i'm sure you can. I'm just saying there's an api for it.
API GetCoinText | WoWWiki | Fandom for the string version.
-
Contributor
-
Member
Originally Posted by
charles420
you can get it external
Could you please elaborate on that?
-
Contributor
((uint)Descriptors.CGPlayerData.Coinage); was one way
and theres a lua function with 2 offsets in it todo it as well Script_GetMoney after looking at code real fast
signed __int64 __fastcall Script_GetMoney(__int64 a1)
{
__int64 v1; // rbx
__int64 v2; // rax
double v3; // xmm1_8
v1 = a1;
ClntObjMgrGetActivePlayer();
if ( v2 )
v3 = *(*(v2 + 0xB190) + 0x820i64);
lua_pushnumber(v1);
return 1i64;
}
is the old one i havent updated my bot yet so idn if they changed should work for classic tho
Last edited by charles420; 01-07-2020 at 02:46 PM.
-
Post Thanks / Like - 1 Thanks
carnifex_v2 (1 members gave Thanks to charles420 for this useful post)