What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Plugin that tells me how much gold I have in bank?

gamer427

Member
Joined
Dec 16, 2015
Messages
125
Never tried creating a plugin before and I couldn't get a proper way to retrieve this information in the bot ui (as its constantly updated)

Would it be possible to get and display the gold you have in gbank in a little plugin each time you open your mobile banking?

So I would not have to either way 1-59mins (which I will most likely fail to catch and see) or I have to visit a town to see my gbank gold
 
pretty sure your gbank gold is not kept in memory. You have to see it at least once. Once you have it, you can keep it in memory (or save to file or whatever else), but it won't update as you are doing things. The plugin would just call something similar to this:

GetGuildBankMoney - World of Warcraft Programming: A Guide and Reference for Creating WoW Addons

Just remember it returns Copper, so if you have 1 gold, then it will return 10000 copper (100 copper = 1 silver, 100 silver = 1 gold).

Theoretically, something like this should work if your characters are dropping off stuff in your bank.

Code:
                List<string> result = Lua.GetReturnValues("GetGuildBankMoney()");
                if (result != null && result.Count > 0)
                {
                    double copper = 0d;
                    double.TryParse(result[0], out copper);
                    if (copper > 0)
                    {
                        // there's copper in there!
                    }
                }
 
Back
Top