hansen19498 Posted September 4, 2016 Share Posted September 4, 2016 My backpack is full, full of different items, (note). I want all the items automatically placed in the first trading window. I can not find the api, who can help me thank you Quote Link to comment Share on other sites More sharing options...
Chris Posted September 4, 2016 Share Posted September 4, 2016 hello friend. you need this -> http://osbot.org/api/org/osbot/rs07/api/Trade.html Quote Link to comment Share on other sites More sharing options...
hansen19498 Posted September 4, 2016 Author Share Posted September 4, 2016 你好朋友。你需要这个- > http://osbot.org/api/org/osbot/rs07/api/Trade.html if(trade.isFirstInterfaceOpen()&&!inventory.isEmpty()){ trade.offerAll(); sleep(random(800,1400));} Help me see, how to modify the 1 Quote Link to comment Share on other sites More sharing options...
Chris Posted September 4, 2016 Share Posted September 4, 2016 offerAll(java.lang.String... names) .offerAll("item 1", "item2"); Quote Link to comment Share on other sites More sharing options...
hansen19498 Posted September 4, 2016 Author Share Posted September 4, 2016 offerAll(java.lang.String中...名称) .offerAll(“项目1”,“ITEM2”); Backpack each slot names are not the same 1 Quote Link to comment Share on other sites More sharing options...
Chris Posted September 4, 2016 Share Posted September 4, 2016 Backpack each slot names are not the same public boolean offerAll(java.lang.String... names) Offers all the items in the filter in the trade screen. Parameters: names - The ids of the items to be offered. Returns: True if all items specified do no longer remain in the inventory. i dont know what u mean. explain better so I can understand friend Quote Link to comment Share on other sites More sharing options...
hansen19498 Posted September 4, 2016 Author Share Posted September 4, 2016 公共布尔offerAll(java.lang.String中...名称) 信息在屏幕贸易过滤器中的所有项目。 :参数 要提供项目的id -名称。 返回: 如果真指定的所有项目都不再停留在清单中。 我不知道是什么ü意味着。解释更好,所以我能理解朋友 public static final String[] goods_ID = { "Amulet of strength","Strength potion(3)","Strength potion(2)", ,"Air rune","Water rune","earth rune","firer rune" ,"Blue wizard hat","Blue wizard robe" , "wizard hat" ,"Shade robe top","Shade robe"} if(trade.isFirstInterfaceOpen()&&!inventory.isEmpty()){ trade.offerAll(goods_ID); sleep(random(800,1400));} My test results, the mouse will move on each item, but does not click Quote Link to comment Share on other sites More sharing options...
Chris Posted September 4, 2016 Share Posted September 4, 2016 try this friend http://osbot.org/forum/topic/102089-easy-trade-method/ public static final String[] goods_ID = { "Amulet of strength","Strength potion(3)","Strength potion(2)", ,"Air rune","Water rune","earth rune","firer rune" ,"Blue wizard hat","Blue wizard robe" , "wizard hat" ,"Shade robe top","Shade robe"} if(trade.isFirstInterfaceOpen()&&!inventory.isEmpty()){ trade.offerAll(goods_ID); sleep(random(800,1400));} My test results, the mouse will move on each item, but does not click Quote Link to comment Share on other sites More sharing options...
Aiban Posted September 4, 2016 Share Posted September 4, 2016 public static final String[] goods_ID = { "Amulet of strength","Strength potion(3)","Strength potion(2)", ,"Air rune","Water rune","earth rune","firer rune" ,"Blue wizard hat","Blue wizard robe" , "wizard hat" ,"Shade robe top","Shade robe"} if(trade.isFirstInterfaceOpen()&&!inventory.isEmpty()){ trade.offerAll(goods_ID); sleep(random(800,1400));} My test results, the mouse will move on each item, but does not click Hey friend try Trade.offerX(goods_ID); Quote Link to comment Share on other sites More sharing options...