Thread Tools Display Modes
08/07/23, 01:07 PM   #1
AlphaGammaBeta
Join Date: Aug 2023
Posts: 3
BAG_HOUSE_BANK name

hi!
i change chest bank name in game



can i get this "new name" with lua?
  Reply With Quote
08/07/23, 01:37 PM   #2
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2020
Posts: 185
Originally Posted by AlphaGammaBeta View Post
hi!
i change chest bank name in game



can i get this "new name" with lua?

ok, first there are 8 of them:

* BAG_HOUSE_BANK_EIGHT
* BAG_HOUSE_BANK_FIVE
* BAG_HOUSE_BANK_FOUR
* BAG_HOUSE_BANK_NINE
* BAG_HOUSE_BANK_ONE
* BAG_HOUSE_BANK_SEVEN
* BAG_HOUSE_BANK_SIX
* BAG_HOUSE_BANK_TEN
* BAG_HOUSE_BANK_THREE
* BAG_HOUSE_BANK_TWO

For the name I don't know but I'm interested to know, does it keep it's name while in use?

EDIT: it looks like these items have a "nickname" attribute so GetCollectibleNickname(*integer* _collectibleId_) should work.

collectible IDs are :
4673 Storage Coffer, Fortified
4675 Storage Coffer, Oaken
4676 Storage Coffer, Secure
4677 Storage Coffer, Sturdy

4674 Storage Chest, Fortified
4678 Storage Chest, Oaken
4679 Storage Chest, Secure
4680 Storage Chest, Sturdy

Last edited by Masteroshi430 : 08/07/23 at 01:58 PM.
  Reply With Quote
08/07/23, 02:00 PM   #3
AlphaGammaBeta
Join Date: Aug 2023
Posts: 3
Originally Posted by Masteroshi430 View Post
ok, first there are 8 of them:

* BAG_HOUSE_BANK_EIGHT
* BAG_HOUSE_BANK_FIVE
* BAG_HOUSE_BANK_FOUR
* BAG_HOUSE_BANK_NINE
* BAG_HOUSE_BANK_ONE
* BAG_HOUSE_BANK_SEVEN
* BAG_HOUSE_BANK_SIX
* BAG_HOUSE_BANK_TEN
* BAG_HOUSE_BANK_THREE
* BAG_HOUSE_BANK_TWO

For the name I don't know but I'm interested to know, does it keep it's name while in use?
this is INT constant from 7 for _ONE to 16 for _TEN
  Reply With Quote
08/07/23, 02:07 PM   #4
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2020
Posts: 185
Originally Posted by AlphaGammaBeta View Post
this is INT constant from 7 for _ONE to 16 for _TEN
These are the bagIds, not their names, read my edited post.
  Reply With Quote
08/08/23, 12:22 AM   #5
AlphaGammaBeta
Join Date: Aug 2023
Posts: 3
Originally Posted by Masteroshi430 View Post
ok, first there are 8 of them:

EDIT: it looks like these items have a "nickname" attribute so GetCollectibleNickname(*integer* _collectibleId_) should work.

collectible IDs are :
4673 Storage Coffer, Fortified
4675 Storage Coffer, Oaken
4676 Storage Coffer, Secure
4677 Storage Coffer, Sturdy

4674 Storage Chest, Fortified
4678 Storage Chest, Oaken
4679 Storage Chest, Secure
4680 Storage Chest, Sturdy

it's.... interest.. i'l try it
  Reply With Quote
08/08/23, 01:52 AM   #6
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
Hint:
There exist up to 10 house bank bagIds, not only 8

Code:
* BAG_HOUSE_BANK_ONE = 7
* BAG_HOUSE_BANK_TWO = 8
* BAG_HOUSE_BANK_THREE = 9
* BAG_HOUSE_BANK_FOUR = 10
* BAG_HOUSE_BANK_FIVE = 11
* BAG_HOUSE_BANK_SIX = 12
* BAG_HOUSE_BANK_SEVEN = 13
* BAG_HOUSE_BANK_EIGHT = 14
* BAG_HOUSE_BANK_NINE = 15
* BAG_HOUSE_BANK_TEN = 16
Edit:
Just noticed AlphaGammaBeta already found out ;-)
  Reply With Quote
08/08/23, 05:17 AM   #7
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2020
Posts: 185
Originally Posted by Baertram View Post
Hint:
There exist up to 10 house bank bagIds, not only 8

Code:
* BAG_HOUSE_BANK_ONE = 7
* BAG_HOUSE_BANK_TWO = 8
* BAG_HOUSE_BANK_THREE = 9
* BAG_HOUSE_BANK_FOUR = 10
* BAG_HOUSE_BANK_FIVE = 11
* BAG_HOUSE_BANK_SIX = 12
* BAG_HOUSE_BANK_SEVEN = 13
* BAG_HOUSE_BANK_EIGHT = 14
* BAG_HOUSE_BANK_NINE = 15
* BAG_HOUSE_BANK_TEN = 16
Edit:
Just noticed AlphaGammaBeta already found out ;-)

There are 10 BAG_HOUSE_BANK but you can only have 8 in your house right?
4 Storage Chests and 4 Storage Coffers, what are the who others? Probably unused and for later...
  Reply With Quote
08/08/23, 06:56 AM   #8
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
Oh, good to know, thank you for that info. I did never try how many are allowed in a house.
I thought it would be 10 as there are 10 bagIds for them.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » BAG_HOUSE_BANK name


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