What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

How to Get Players Gold, Guild Gold, Server and Fraction

Thang781

New Member
Joined
May 13, 2011
Messages
630
Reaction score
2
I want to write a Plugin to track

Players Gold
Toon Name
Guild Bank Gold
Server
Fraction

anybody knows the variables to find these information?
 
Sorry i am to new. Could find Players Gold ^^
But the rest is still missing.
You have a clue?
 
here is a start for you :
PHP:
String name = ObjectManager.Me.Name;
ulong gold = ObjectManager.Me.Gold;
uint factionId = ObjectManager.Me.FactionId;

Server and guild gold I could not find in the few mins it took to find the others.
 
thanks anyway.
i found Styx.GameState.ChangingRealm maybe i could hook to an Event using this enum.
But i could not find any ^^
 
well you don't actually use lua.dostring to get the information..
You can get some of the information (maybe all, but I don't know HB's api that well)
Here's some..

Name:
PHP:
Me.Name

Faction:
return true if you're alliance
PHP:
Me.IsAlliance
horde equivalent
PHP:
Me.IsHorde

The others, you can get from lua with these..

Money (in copper):
PHP:
Lua.GetReturnVal<int>("return GetMoney()", 0);

Guild Bank Money (in copper)
PHP:
Lua.GetReturnVal<int>("return GetGuildBankMoney()", 0);

Server name:
PHP:
Lua.GetReturnVal<String>("return GetRealmName()", 0);
 
Back
Top