• Visit Rebornbuddy
  • Withdraw specific item from gbank

    Discussion in 'Requests & Discussion' started by revak200, May 24, 2016.

    1. revak200

      revak200 New Member

      Joined:
      Aug 20, 2013
      Messages:
      12
      Likes Received:
      0
      Trophy Points:
      0
      Is it possible to withdraw a specific amount of a specific item?
      My profile is set up to use mobile gbank and deposit all gold atm, I also want it to withdraw 1 pot every time it uses it.

      This code deposits an item:
      Code:
      <CustomBehavior File="RunCode" Code="foreach (WoWItem i in Me.BagItems) { if(i.Entry == 68729) i.UseContainerItem(); StyxWoW.SleepForLagDuration(); }" />
      Would like something similiar but withdrawing instead.

      EDIT: Just noted this might be in the wrong section of the forum. excuse me if it is
       
    2. EchoTiger

      EchoTiger Official Profile and Singular Developer Staff Member Moderator

      Joined:
      Nov 28, 2012
      Messages:
      6,809
      Likes Received:
      631
      Trophy Points:
      113
      This would be better under the Community Developer Forum, but it's alright.

      To answer your question, you could easily handle it via Lua.
      I'd write up an HB-API alternative, but I don't have access to the docs right now.

      Here's the Lua example:

      PHP:
      <CustomBehavior File="Misc\RunLua" Lua="for t=1,GetNumGuildBankTabs()do for s=1,98 do local l=GetGuildBankItemLink(t,s)if l and strfind(l,&quot;1234567&quot;)then SetCurrentGuildBankTab(t)AutoStoreGuildBankItem(t,s)end end end;" />
      Replace 1234567 with the item Id.
      You can also have the code withdraw multiples of the item by adding NumOfTimes="5" WaitTime="850" to the behavior.

      This will make it withdraw 5 of the item while waiting 850 milliseconds in between each withdraw.
       
    3. revak200

      revak200 New Member

      Joined:
      Aug 20, 2013
      Messages:
      12
      Likes Received:
      0
      Trophy Points:
      0
      Thanks alot echo, you explained it so I now understand it completely.
      I wont be able to test this just now but Ill make sure to try it out shortly
       

    Share This Page