Thread Tools Display Modes
01-05-06, 10:20 AM   #1
Gello
A Molten Giant
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 521
Need non-english to test this

Can anyone or their friend who has a non-English client run this with ammo quiver, pouches or soul bags and report back if it correctly identifies which are normal bags?

/script local i,id,s,b for i=20,23 do _,_,id = string.find(GetInventoryItemLink("player",i) or "","item:(%d+)") _,_,_,_,_,s=GetItemInfo(id) b=(s==INVTYPE_BAG) and " is" or " is not" DEFAULT_CHAT_FRAME:AddMessage("Bag "..(i-19)..b.." a normal bag.") end

It will say something like:
Bag 1 is a normal bag.
Bag 2 is not a normal bag.
Bag 3 is a normal bag.
Bag 4 is a normal bag.

(Bag 0 is always a normal bag--it's the Backpack and treated specially)

I think comparing INVTYPE_BAG with the 6th return of GetItemInfo on any client will report whether a bag can contain normal items or not. But have no way to test and would like to be sure.

edit: sigh. *(@#(@ emoticons should be banned from sites that deal with macros.
  Reply With Quote
01-08-06, 11:01 AM   #2
Gello
A Molten Giant
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 521
This apparently doesn't work unfortunately.

Anyone on a deDE or frFR client able to run this script with either normal bags or especially if you have a quiver/ammo pouch/soul bag:

/script local c,i,id,v5,v6=DEFAULT_CHAT_FRAME c:AddMessage(INVTYPE_BAG) for i=20,23 do _,_,id=string.find(GetInventoryItemLink("player",i) or "","item:(%d+)") _,_,_,_,v5,v6 = GetItemInfo(id or "") c:AddMessage("v5="..tostring(v5).." v6="..tostring(v6))end

and post its result?

It should say something like:

Bag
v5=Container v6=Bag
v5=Quiver v6=Ammo Pouch
v5=Container v6=Bag
v5=Container v6=Bag

Your help would be invaluable. Thanks!
  Reply With Quote
01-08-06, 05:33 PM   #3
wallenium
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Sep 2005
Posts: 6
Bag
v5=Container v6=Container
v5=Container v6=Container
v5=Container v6=Container
v5=Container v6=Container

^^translated from a deDE client , mage, only normal bags (no ammo, soulbags..)
  Reply With Quote
01-26-06, 04:03 AM   #4
SwissSoldier
A Kobold Labourer
Join Date: Jan 2006
Posts: 1
If you still need it...

Returned on a deDE client:

Tasche
v5=Behälter v6=Behälter
v5=Behälter v6=Behälter
v5=Behälter v6=Behälter
v5=Behälter v6=Seelentasche

used: Soul Pouch (allakhazam.com info and wow-handwerk.de info)

Tasche
v5=Behälter v6=Behälter
v5=Behälter v6=Behälter
v5=Behälter v6=Behälter
v5=Köcher v6=Munitionsbeutel

used: Small Ammo Pouch (allakhazam.com info and wow-handwerk.de info)
  Reply With Quote
01-26-06, 07:09 AM   #5
Thenedus
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Jul 2005
Posts: 7
deDE client with a quiver in the leftmost position:

Tasche
v5=Behälter v6=Behälter
v5=Behälter v6=Behälter
v5=Behälter v6=Behälter
v5=Köcher v6=Köcher

For comparison, the same layout on an enGB client:

Bag
v5=Container v6=Bag
v5=Container v6=Bag
v5=Container v6=Bag
v5=Quiver v6=Quiver
  Reply With Quote
01-26-06, 09:03 AM   #6
Gello
A Molten Giant
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 521
Thanks everyone!

It looks like the easiest way to check if a container can store normal items is to check if the 6th return of GetItemInfo is "Bag" on enUS, "Beh\195\164lter" on deDE and "Conteneur" on frFR clients.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Need non-english to test this


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