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!

Withdraw specific item from gbank

revak200

New Member
Joined
Aug 20, 2013
Messages
12
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
 
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.
 
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
 
Back
Top