12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

704 Part IV ■ <strong>Reference</strong>numWithdrawals—Maximum number <strong>of</strong> items (stacks) the player is allowed towithdraw from the tab per day (number)remainingWithdrawals—Maximum number <strong>of</strong> items (stacks) theplayer is currently allowed to withdraw from the tab (number)GetGuildBankTabPermissionsReturns in<strong>for</strong>mation about guild bank tab privileges <strong>for</strong> the guild rankcurrently being edited.canView, canDeposit, numWithdrawals = GetGuildBankTabPermissions(tab)Used in the default UI’s guild control panel.Arguments:tab—Index <strong>of</strong> a guild bank tab (between 1 <strong>and</strong> GetNumGuildBankTabs())(number)Returns:canView—1 if the guild rank has permission to view the tab’s contents; otherwisenil (1nil)canDeposit—1 if the guild rank has permission to deposit items into the tab;otherwise nil (1nil)numWithdrawals—Maximum number <strong>of</strong> withdrawals per day the guild rank isallowed <strong>for</strong> the given tab (number)GetGuildBankTextReturns text associated with a guild bank tab.text = GetGuildBankText(tab)Only returns valid data after QueryGuildBankText() has been called toretrieve the text from the server <strong>and</strong> the following GUILDBANK_UPDATE_TEXTevent has fired.Arguments:tab—Index <strong>of</strong> a guild bank tab (between 1 <strong>and</strong> GetNumGuildBankTabs())(number)Returns:text—Info text provided <strong>for</strong> the tab (string)GetGuildBankTransactionReturns in<strong>for</strong>mation about a transaction in the log <strong>for</strong> a guild bank tab.type, name, itemLink, count, tab1, tab2, year, month, day, hour = iGetGuildBankTransaction(tab, index)Only returns valid in<strong>for</strong>mation following the GUILDBANKLOG_UPDATE eventwhich fires after calling QueryGuildBankLog().Arguments:tab—Index <strong>of</strong> a guild bank tab (between 1 <strong>and</strong> GetNumGuildBankTabs())(number)index—Index <strong>of</strong> a log entry (between 1 <strong>and</strong> GetNumGuildBankTransactions(tab)) (number)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!