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

REQ - Plugin - Goldmanager

doc1911

Member
Joined
Jan 15, 2010
Messages
33
Reaction score
0
Greetings,

I search a Plugin, which export the amount of gold on my banktton to a xls,ini or otherfile. all buddys should fill the amount in this one file which Server , faction and amount.
Give it a plugin which do that? Or how i can solve this in PB?

Best reguards
 
You cannot do this with PB, but seriously, that's not hard to accomplish.

Have a look at the HB API documentation and google "c# output data to xml" and then write a simple plugin.
 
Greetings,

I search a Plugin, which export the amount of gold on my banktton to a xls,ini or otherfile. all buddys should fill the amount in this one file which Server , faction and amount.
Give it a plugin which do that? Or how i can solve this in PB?

Best reguards

You could stick this in a plugin or in a CustomAction in PB.

PHP:
            string path = Path.Combine(Logging.ApplicationPath,"MyGoldLog.xml");
            XElement rootEle = File.Exists(path) ? XElement.Load(path) : new XElement("GoldLog");
            string server = Lua.GetReturnVal<string>("return GetRealmName()",0);
            XElement serverEle = rootEle.Element(server);
            if (serverEle == null)
            {
                serverEle = new XElement(server);
                rootEle.Add(serverEle);
            }
            serverEle.SetElementValue(StyxWoW.Me.IsAlliance? "Alliance":"Horde", StyxWoW.Me.Gold); 
            rootEle.Save(path);

edit: fixed an error. Also forgot to mention this places the MyGoldLog.xml in the root honorbuddy folder.
 
Last edited:
Can u built that in PB and an option in PB Multi profile? It would be great :) the file can be save at c:\gold\xxxx.xml or can hb write only in hb root folder?
 
is this personal gold or gbankgold?

gbankgoldlog would be awesome!
 
Back
Top