Simple trade script
Posted: Sun Jul 02, 2006 4:34 pm
This is a one sided trade script.
It is set up to trade with a party member right now. It would be easy to modify it to trade with anyone else, trading anything else. It could even be done using parameters and target.
It is set up to trade with a party member right now. It would be easy to modify it to trade with anyone else, trading anything else. It could even be done using parameters and target.
Code: Select all
; Simple trade script. TradeIt.iss
;version 1
;July 2, 2006
;thanks to RedOne for the help.
;thanks to Lax and the other devs for not kicking and banning me ;)
;
; usage: TradeIt 1 (will run the script and trade with the first person in your group
; primary usage designed for a mage summoning items for group members.
function main(int n)
{
;pick up stack of item listed (in this case "Summoned: Black Bread"
shift EQItemNotify ${FindItem[=Summoned: Black Bread].InvSlot} LeftMouseUp
;open trade window with member of party, who is dependent on input 1-5
Spawn[${Group.Member[${n}]}]:LeftClick
wait until trade window is open
wait 50 ${Window[TradeWnd].Open}
;wait again, no human does anything instantly
wait 10
;pick pu a stack of "Summoned: Globe of Water"
shift EQItemNotify ${FindItem[=Summoned: Globe of Water].InvSlot} LeftMouseUp
wait 10
;place item on curor in trade window, by clicking on character trading with.
Spawn[${Group.Member[${n}]}]:LeftClick
wait 10
;press the trade button.
Window[TradeWnd].Child[TRDW_Trade_Button]:LeftMouseUp
}