• Visit Rebornbuddy
  • REQ - Plugin - Goldmanager

    Discussion in 'Requests' started by doc1911, Feb 15, 2012.

    1. doc1911

      doc1911 Member

      Joined:
      Jan 15, 2010
      Messages:
      33
      Likes Received:
      0
      Trophy Points:
      6
      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
       
    2. wownerds

      wownerds New Member

      Joined:
      Feb 15, 2011
      Messages:
      1,385
      Likes Received:
      30
      Trophy Points:
      0
      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.
       
    3. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      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: Feb 15, 2012
    4. doc1911

      doc1911 Member

      Joined:
      Jan 15, 2010
      Messages:
      33
      Likes Received:
      0
      Trophy Points:
      6
      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?
       
    5. Draganos

      Draganos Member

      Joined:
      Oct 7, 2011
      Messages:
      309
      Likes Received:
      0
      Trophy Points:
      16
      is this personal gold or gbankgold?

      gbankgoldlog would be awesome!
       
    6. doc1911

      doc1911 Member

      Joined:
      Jan 15, 2010
      Messages:
      33
      Likes Received:
      0
      Trophy Points:
      6
      I suggested it for the personal gold of the banktoon :)
       
    7. tifreak

      tifreak New Member

      Joined:
      Jun 20, 2011
      Messages:
      271
      Likes Received:
      1
      Trophy Points:
      0
      Bump :) A Plugin would be very nice :)
       

    Share This Page