WoW:API GetGuildBankTransaction: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(bp)
Line 2: Line 2:
Get information for specific item transaction from Guild Bank.
Get information for specific item transaction from Guild Bank.
  type, name, itemLink, count, tab1, tab2, year, month, day, hour = GetGuildBankTransaction(tab, index)
  type, name, itemLink, count, tab1, tab2, year, month, day, hour = GetGuildBankTransaction(tab, index)


== Arguments ==
== Arguments ==
<!-- List each argument, together with its type -->
;tab : Number - Tab number, ascending from 1 to [[API GetNumGuildBankTabs|GetNumGuildBankTabs]]().
:(tab, index)
;index : Number - Transaction index, ascending from 1 to [[API GetNumGuildBankTransactions|GetNumGuildBankTransactions]](tab). Higher indices correspond to more recent entries.
 
:;tab : Number - Tab number. 1 - [[API GetNumGuildBankTabs|GetNumGuildBankTabs]]()
:;index : Number - Transaction index. Bottom (oldest) transaction is 1, top is [[API GetNumGuildBankTransactions|GetNumGuildBankTransactions]](tab).


== Returns ==
== Returns ==
<!-- List each return value, together with its type -->
;type : String - Transaction type. ("deposit", "withdraw" or "move")
:type, name, itemLink, count, tab1, tab2, year, month, day, hour 
;name : String - Name of player who made the transaction.
 
;itemLink : String - [[itemLink]] of transaction item.
:;type : String - Transaction type. ("deposit", "withdraw" or "move")
;count : Number - Amount of items.
:;name : String - Name of player who made the transaction.
;tab1 : Number - For type=="move", this is the origin tab.
:;itemLink : String - [[itemLink]] of transaction item.
;tab2 : Number - For type=="move", this is the destination tab.
:;count : Number - Amount of items.
;year : Number - The number of years since this transaction took place.
:;tab1 : Number - For type=="move", this is the origin tab.
;month : Number - The number of months since this transaction took place.
:;tab2 : Number - For type=="move", this is the destination tab.
;day : Number - The number of days since this transaction took place.
:;year : Number - The number of years since this transaction took place.
;hour : Number - The number of hours since this transaction took place.
:;month : Number - The number of months since this transaction took place.
:;day : Number - The number of days since this transaction took place.
:;hour : Number - The number of hours since this transaction took place.

Revision as of 16:06, 6 July 2010

WoW API < GetGuildBankTransaction

Get information for specific item transaction from Guild Bank.

type, name, itemLink, count, tab1, tab2, year, month, day, hour = GetGuildBankTransaction(tab, index)

Arguments

tab
Number - Tab number, ascending from 1 to GetNumGuildBankTabs().
index
Number - Transaction index, ascending from 1 to GetNumGuildBankTransactions(tab). Higher indices correspond to more recent entries.

Returns

type
String - Transaction type. ("deposit", "withdraw" or "move")
name
String - Name of player who made the transaction.
itemLink
String - itemLink of transaction item.
count
Number - Amount of items.
tab1
Number - For type=="move", this is the origin tab.
tab2
Number - For type=="move", this is the destination tab.
year
Number - The number of years since this transaction took place.
month
Number - The number of months since this transaction took place.
day
Number - The number of days since this transaction took place.
hour
Number - The number of hours since this transaction took place.