Post
by Chill » Tue Nov 09, 2004 2:35 pm
Okay this is pretty easy. Way I think I would handle it, would be to write a hail event: "#!# says, Hail <TRADERNAME>" or something like that. /doeventes in a loop to watch for hails. when you get hailed, you can check to see if the person hailing is in your guild if you want, if so use /notify to close your trader window. The person could then give you whatever. watch for the trade window to be open and if it is use /notify again to spam the trade accept button at some interval (once a seccond or whatever). When the window closes, /trader back up, and /notify the start trader button once it pops up.
Not much code, but you can use search to look up the /notify button, a list of UI Windows and Elements, and find a bazillion Hail event examples. Other things you might add: do a check in the hail to see if you have any spots free. Maybe ignore hails if you are full (or tell them sorry, youre full). Could then tell them how many slots you have free if not full /t ${Hailer} 7 slots free, open trade when ready - or what not. You might also want to log who gives you what items - you could use /mqlog for that.
Hope this helps, and good luck.