Moderator: MacroQuest Developers

Code: Select all
|For warrior
|Call Give_Cleric_Money when you've run back to cleric
#event Busy "#*#tells you#*#busy right now#*#"
|Wait and try again if cleric rejects trade b/c of casting, etc
Sub Event_Busy
/autoinv
/delay 10s
/call Give_Cleric_Money
/return
Sub Give_Cleric_Money
/target CLERIC_NAME
/shiftkey /notify Inventory IW_Money0 leftmouseup
/delay 5
/click left target
/delay 5
/doevents
/shiftkey /notify Inventory IW_Money1 leftmouseup
/delay 5
/notify TradeWnd TRDW_MyMoney1 leftmouseup
/delay 5
/notify TradeWnd TRDW_Trade_Button leftmouseup
/return
Code: Select all
|Cleric code
#event Trade "#*#has offered you#*#"
Sub Event_Trade
/delay 5s
/notify TradeWnd TRDW_Trade_Button leftmouseup
/return

Code: Select all
#event Busy '#*#tells you#*#busy right now#*#" 
Code: Select all
/if ${Window[TradeWnd].Open} {
/delay 5s
/notify TradeWnd TRDW_Trade_Button leftmouseup
}