Thread Tools Display Modes
06/01/17, 06:07 PM   #1
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
Bag_subscriber_bank

Hello,

This new bag come in addition to BAG_BANK if IsESOPlusSubscriber().

Few things :

- Assume user has maxed his bank (240).



Non subscriber :
  • GetBagUseableSize(BAG_SUBSCRIBER_BANK) = 0
  • GetBagUseableSize(BAG_BANK) = 240

Subscriber :
  • GetBagSize(BAG_SUBSCRIBER_BANK) = 240
  • GetBagSize(BAG_BANK) = 240

Everyone :
  • StackBag(BAG_BANK) = Stacks ONLY BAG_BANK
  • StackBag(BAG_SUBSCRIBER_BANK) = Stacks ONLY BAG_SUBSCRIBER_BANK
  • local stackCountBackpack, stackCountBank, stackCountCraftBag = GetItemLinkStacks(itemLink)
    stackCountBank is BAG_BANK + BAG_SUBSCRIBER_BANK
    Please note, this function don't work in "real time" but have a small refresh delay.
  • FindFirstEmptySlotInBag(BAG_BANK) = Find First Empty Slot In BAG_BANK
    Please note, this function don't work in "real time" but have a small refresh delay.
  • FindFirstEmptySlotInBag(BAG_SUBSCRIBER_BANK) = Find First Empty Slot In BAG_SUBSCRIBER_BANK
    Please note, this function don't work in "real time" but have a small refresh delay.


Few snippets of mass transfer / handling are in BankManager if needed.

Last edited by Ayantir : 06/04/17 at 04:38 AM.
  Reply With Quote
06/03/17, 05:14 PM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
The but shouldn't the second one of FindFirstEmptySlotInBag be like this:

Lua Code:
  1. FindFirstEmptySlotInBag(BAG_SUBSCRIBER_BANK) = Find First Empty Slot In BAG_SUBSCRIBER_BANK
  Reply With Quote
06/03/17, 10:13 PM   #3
iwontsay
AddOn Author - Click to view addons
Join Date: Apr 2016
Posts: 27
I wonder why they did it in that convoluted way. It could have been much easier to introduce GetBagSize(BAG_BANK) and GetUsableBagSize(BAG_BANK), where the former one indicates the slot range and the latter one the number of slots that can be filled at the same time, like

Without ESO+:
GetBagSize(BAG_BANK) = 500
GetUsableBagSize(BAG_BANK) = 250

Then, with ESO+:
GetBagSize(BAG_BANK) = 500
GetUsableBagSize(BAG_BANK) = 500

Then, deny transfers to the bank if the fill state reached or exceeded GetUsableBagSize(BAG_BANK). Mission accomplished.

Or, simply leave it with GetBagSize(BAG_BANK), have its return value doubled when ESO+ is active, but lift the constraint that the slot table indices are numbered 1..(size).
  Reply With Quote
06/04/17, 04:39 AM   #4
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
Originally Posted by Baertram View Post
The but shouldn't the second one of FindFirstEmptySlotInBag be like this:

Lua Code:
  1. FindFirstEmptySlotInBag(BAG_SUBSCRIBER_BANK) = Find First Empty Slot In BAG_SUBSCRIBER_BANK
Ups fixed
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Bag_subscriber_bank

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off