WoW:API TakeInboxMoney: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Move page script moved page API TakeInboxMoney to API TakeInboxMoney without leaving a redirect) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
<!-- Describe the purpose of the function, exhausting detail can be saved for a later section --> | <!-- Describe the purpose of the function, exhausting detail can be saved for a later section --> | ||
Take all money attached in a given letter in your inbox | |||
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> | <!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> | ||
Line 14: | Line 14: | ||
:(index) | :(index) | ||
:; | :;index: Number - a number representing a message in the inbox | ||
=== Returns === | === Returns === | ||
<!-- List each return value, together with its type --> | <!-- List each return value, together with its type --> | ||
:nil | |||
== Example == | == Example == | ||
<!-- If it helps, include an example here, though it's not required if the usage is self-explanatory --> | <!-- If it helps, include an example here, though it's not required if the usage is self-explanatory --> | ||
for i=GetInboxNumItems(), 1, -1 do | |||
TakeInboxMoney(i); -- BUG IN CHINA GAME. if number > 1, takeInboxMoney(N) = InboxMoney(1); | |||
end; | |||
Latest revision as of 04:47, 15 August 2023
Take all money attached in a given letter in your inbox
TakeInboxMoney(index)
Parameters[edit]
Arguments[edit]
- (index)
- index
- Number - a number representing a message in the inbox
Returns[edit]
- nil
Example[edit]
for i=GetInboxNumItems(), 1, -1 do TakeInboxMoney(i); -- BUG IN CHINA GAME. if number > 1, takeInboxMoney(N) = InboxMoney(1); end;