WoW:Events/Trade: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (automated upload)
 
m (automated upload)
Line 1: Line 1:
__NOTOC____NOEDITSECTION__{{eventlistheader}}
__NOTOC____NOEDITSECTION__{{eventlistheader}}
<!-- DO NOT EDIT. THIS IS AN AUTOMATICALLY GENERATED PAGE. -->
<!-- DO NOT EDIT. THIS IS AN AUTOMATICALLY GENERATED PAGE. -->
<!-- DO NOT EDIT. THIS IS AN AUTOMATICALLY GENERATED PAGE. -->
<!-- DO NOT EDIT. THIS IS AN AUTOMATICALLY GENERATED PAGE. -->
:{{icon-information}}Note that this page is automatically generated; editing it is pointless. To edit event descriptions, edit the entries in the alphabetical pages, e.g. [[Events/A]], [[Events/B]], etc. Changes there will be copied over to here within a few hours.
== Trade related events ==
== Trade related events ==


Line 31: Line 38:


; arg1 : index of the trade slot changed
; arg1 : index of the trade slot changed
{{evt|TRADE_POTENTIAL_BIND_ENCHANT|Trade}}
?




{{evt|TRADE_REPLACE_ENCHANT|Trade}}
{{evt|TRADE_REPLACE_ENCHANT|Trade}}


Fired when the the player must confirm an enchantment replacement in the trade window.  
Fired when the player must confirm an enchantment replacement in the trade window.  


; arg1 : enchantment  
; arg1 : new enchantment  
; arg2 : item name
; arg2 : current enchantment




Line 52: Line 64:
{{evt|TRADE_REQUEST_CANCEL|Trade}}
{{evt|TRADE_REQUEST_CANCEL|Trade}}


''It appears that this event was removed from the game. It was once used to ask you if you wanted to accept or reject a trade. It no longer triggers, not even when "Block Trades" is enabled.''
Fired when a trade attempt is cancelled. Fired after TRADE_CLOSE when aborted by player, before TRADE_CLOSE when done by target.


Fired when a trade attempt is cancelled. Fired after TRADE_CLOSE when aborted by player, before TRADE_CLOSE when done by target.
Upon a trade being cancelled (as in, either part clicking the cancel button), TRADE_CLOSE is fired twice, and then TRADE_REQUEST_CANCEL once.




Line 60: Line 72:


Fired when the Trade window appears after a trade request has been accepted or auto-accepted
Fired when the Trade window appears after a trade request has been accepted or auto-accepted
{{evt|TRADE_SKILL_CLOSE|Trade}}
Fired when a trade skill window is closed.
{{evt|TRADE_SKILL_SHOW|Trade}}
Fired when a trade skill window is opened.
{{evt|TRADE_SKILL_UPDATE|Trade}}
Fired immediately after TRADE_SKILL_SHOW, after something is created via tradeskill, or anytime the tradeskill window is updated (filtered, tree folded/unfolded, etc.)





Revision as of 12:48, 28 March 2010

Event API


"I" iconNote that this page is automatically generated; editing it is pointless. To edit event descriptions, edit the entries in the alphabetical pages, e.g. Events/A, Events/B, etc. Changes there will be copied over to here within a few hours.


Trade related events

"PLAYER_TRADE_MONEY"
Category: Trade
 

Fired when the player trades money


"TRADE_ACCEPT_UPDATE"
Category: Trade
 

Fired when the status of the player and target accept buttons has changed. Target agree status only shown when he has done it first. By this, player and target agree status is only shown together (arg1 == 1 and arg2 == 1), when player agreed after target.

arg1
Player has agreed to the trade (1) or not (0)
arg2
Target has agreed to the trade (1) or not (0)


"TRADE_CLOSED"
Category: Trade
 

Fired when the trade window is closed by the trade being accepted, or the player or target closes the window.


"TRADE_MONEY_CHANGED"
Category: Trade
 

Fired when the trade window's money value is changed.


"TRADE_PLAYER_ITEM_CHANGED"
Category: Trade
 

Fired when an item in the target's trade window is changed (items added or removed from trade). First call not fired when start trading by dropping item on target.

arg1
index of the trade slot changed


"TRADE_POTENTIAL_BIND_ENCHANT"
Category: Trade
 

?


"TRADE_REPLACE_ENCHANT"
Category: Trade
 

Fired when the player must confirm an enchantment replacement in the trade window.

arg1
new enchantment
arg2
current enchantment


"TRADE_REQUEST"
Category: Trade
 

It appears that this event was removed from the game. It was once used to ask you if you wanted to accept or reject a trade. It no longer triggers, not even when "Block Trades" is enabled.

Fired when another player wishes to trade with you.

arg1
player name


"TRADE_REQUEST_CANCEL"
Category: Trade
 

Fired when a trade attempt is cancelled. Fired after TRADE_CLOSE when aborted by player, before TRADE_CLOSE when done by target.

Upon a trade being cancelled (as in, either part clicking the cancel button), TRADE_CLOSE is fired twice, and then TRADE_REQUEST_CANCEL once.


"TRADE_SHOW"
Category: Trade
 

Fired when the Trade window appears after a trade request has been accepted or auto-accepted


"TRADE_TARGET_ITEM_CHANGED"
Category: Trade
 

Fired when an item in the target's trade window is changed (items added or removed from trade).

arg1
index of the trade slot changed


"TRADE_UPDATE"
Category: Trade
 

Fired when the trade window is changed.