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

Chests usage

Amarthalion Raigar

New Member
Joined
Nov 7, 2015
Messages
8
Reaction score
0
Hello,

is there any way to list the contents of a storage chest with AB API ?
And is it possible to push / withdraw items from those chests ?

Another question : is it possible to configure the accManager settings for launching an account "After previous account exited game" ? I would like to switch my accounts and cannot do it atm with this option

Thx
 
is there any way to list the contents of a storage chest with AB API ?
And is it possible to push / withdraw items from those chests ?
Hi, yep this is possible, but i not test this since 2.0 was installed. If this not works - just tell me about that.
APIs for that:
OpenCoffer
CloseCoffer
getCofferItem
getCofferItems

"After previous account exited game"
At this moment - no
 
I already tested those, they don't work :s
I though I was using some deprecated methods

Client is disconnected as soon as I try any of those methods :
OpenCoffer()
CloseCoffer()
MoveItemToCoffer()
MoveItemFromCoffer()

If it can helps you with the fix, the method "getCofferItems()" don't make the client crash, but return an empty List


I have a related question : I noticed that when I log a bot then get some items from a coffer manually, the method me.getitems() don't return any of those items
I have to return to character screen then return in game to make AB find those items

Is it related to the coffer problem, or is there any method to force a refresh/update of inventory items ?
 
I though I was using some deprecated methods
Thanks, i will fix this. Now just need to find account with access to this chests.

I have a related question : I noticed that when I log a bot then get some items from a coffer manually, the method me.getitems() don't return any of those items
When you open chest - server send item list from this chest. Looks like AB dont know packet opcodes now. And when you move item from chest to inventory - its looks like "move unknown to my inventory" so AB dont see this items untill relogin.
I will fix this asap
 
Done. Please, check, is it works with latest AB update
OpenCoffer()
CloseCoffer()
MoveItemToCoffer()
MoveItemFromCoffer()
I fix all packet ids, but cant check this APIs
 
i'm trying i'll keep you informed
So :

OpenCoffer => OK
CloseCoffer => OK
getCofferItems => OK
getCofferItem => OK

MoveItemToCoffer :
With an item in the coffer => OK (error message : InvalidItemPlace)
With an item in the inventory => NOK : give a NoFreeInventorySlots (which is weird given the API)

MoveItemFromCoffer :
With an item in the coffer => OK
With an item in the inventory => OK (error message : InvalidItemPlace)
 
Last edited:
Should be fixed. I will upload new update today later.
 
Results : now everything works as intended ^^

The only little issue is CloseCoffer() : the method return true but the Coffer is still open (in game)
I suppose I can make the bot close it by going away from the coffer then coming back to the coffer again (because it prevents from doing some actions, like reading mails)

Again : thx for the good job & the support
 
@Out CloseCoffer() still returns true but leaves the coffer open in game :( Can you please fix?
 
Back
Top