You can use my predefined commands or make your own commands, it's up to you but you SHOULD change MAGICWORD to prevent another players from controling your characters

Below is a sample script that does automated trade. You want to trade an item from slot 1 on character1 to character2. Character1 has to run bot, character2 doesn't have to do so. These 2 characters are in the same party.
Code: Select all
trader = RoMScript("GetPartyMember(1);");
-- these 3 belows vars map to 3 commands in Commander addon
magicWord = "MAGICWORD";
agreeTrade = "AgreeTrade";
acceptTrade = "AcceptTrade";
cmdAgreeTrade = "SendChatMessage('" .. magicWord .. " " .. agreeTrade .. "', 'WHISPER', 0, '" .. trader .. "');";
cmdAcceptTrade = "SendChatMessage('" .. magicWord .. " " .. acceptTrade .. "', 'WHISPER', 0, '" .. trader .. "');";
sendMacro("RequestTrade('party1');");
yrest(1000);
sendMacro(cmdAgreeTrade);
yrest(1000);
sendMacro("PickupBagItem(GetBagItemInfo(1))"); -- I use slot 1 for demonstration
yrest(1000);
sendMacro("ClickTradeItem(1)") ;
yrest(1000);
sendMacro(cmdAcceptTrade);
yrest(1000);
sendMacro("AcceptTrade('');");
yrest(1000);
sendMacro(cmdAcceptTrade);
yrest(1000);
sendMacro("AcceptTrade('');");
yrest(1000);
Happy botting !