-
caramel
- Posts: 8
- Joined: Sat Sep 25, 2010 5:08 am
#1
Post
by caramel » Tue Oct 05, 2010 2:47 am
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,
-
Administrator
- Site Admin
- Posts: 5307
- Joined: Sat Jan 05, 2008 4:21 pm
#2
Post
by Administrator » Tue Oct 05, 2010 10:40 am
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.
-
caramel
- Posts: 8
- Joined: Sat Sep 25, 2010 5:08 am
#3
Post
by caramel » Tue Oct 05, 2010 12:24 pm
ok thanks for the answer.
Who is online
Users browsing this forum: Ahrefs [Bot] and 0 guests