Page 1 of 1

on event ?

Posted: Tue Oct 05, 2010 2:47 am
by caramel
How can I get a bot listening to an event ?

for example a bot waiting the Event:TRADE REQUEST

it's to use to trade between 2 bots:

Code: Select all

-- select the player 1 in party
			-- ask for a trade
			sendMacro("RequestTrade("party1")"); yrest(500);
			-- put item in trade
			sendMacro("PickupBagItem(GetBagItemInfo(78))"); yrest(500);
			sendMacro("ClickTradeItem(1)"); yrest(500);
			-- press ok
			sendMacro("AcceptTrade("")"); yrest(500);
			-- player 1 press ok
			-- press trade
			sendMacro("AgreeTrade()"); yrest(500);
			-- player 1 press trade
Thanks in advance,

Re: on event ?

Posted: Tue Oct 05, 2010 10:40 am
by Administrator
That is really best left for an addon to handle. Communication between the bot and RoM are generally too slow for constant checking like this.

Re: on event ?

Posted: Tue Oct 05, 2010 12:24 pm
by caramel
ok thanks for the answer.