Joseph Posted June 26, 2014 Author Share Posted June 26, 2014 Doesn't have anything to do with misclicks. But dw about it :P (unless you were talking about deadspace in the chatbox, which I don't think exists, but I could be wrong..) Fair nuf Put it to a test, tell someone to trade you and click on an item and trade to deselect it Link to comment Share on other sites More sharing options...
Botre Posted June 26, 2014 Share Posted June 26, 2014 Put it to a test, tell someone to trade you and click on an item and trade to deselect it If the trade option is in the mouse destination's area it will result in a trade, no need for a test :p Link to comment Share on other sites More sharing options...
Joseph Posted June 27, 2014 Author Share Posted June 27, 2014 If the trade option is in the mouse destination's area it will result in a trade, no need for a test :p I highly doubt it Link to comment Share on other sites More sharing options...
Botre Posted June 27, 2014 Share Posted June 27, 2014 I highly doubt it Link to comment Share on other sites More sharing options...
Joseph Posted June 27, 2014 Author Share Posted June 27, 2014 I'm talking about having sn item selected and trying to accept a trade. I don't think it's possible. I'll test my theory out tomorrow and report back Link to comment Share on other sites More sharing options...
Botre Posted June 27, 2014 Share Posted June 27, 2014 I'm talking about having sn item selected and trying to accept a trade. I don't think it's possible. I'll test my theory out tomorrow and report back You are right, it will deselect and would only accept the trade if it double clicks for some reason :p I kinda forgot about the context, my bad 1 Link to comment Share on other sites More sharing options...
Mysteryy Posted June 27, 2014 Share Posted June 27, 2014 You are right, it will deselect and would only accept the trade if it double clicks for some reason I kinda forgot about the context, my bad Thus what I was arguing before. Due to the fact that I have no internet at home at the moment, I couldn't prove it. Like I was saying, if the client misclicks, ie. double clicks, then it could mess up. Otherwise, it would be a safe area to click in. :P Link to comment Share on other sites More sharing options...
Botre Posted June 27, 2014 Share Posted June 27, 2014 Thus what I was arguing before. Due to the fact that I have no internet at home at the moment, I couldn't prove it. Like I was saying, if the client misclicks, ie. double clicks, then it could mess up. Otherwise, it would be a safe area to click in. Yeah sorry I thought you meant another kind of misclick :p My bad brochachos Link to comment Share on other sites More sharing options...
Mysteryy Posted June 27, 2014 Share Posted June 27, 2014 Yeah sorry I thought you meant another kind of misclick My bad brochachos Haha, its all good man. Im just mad that I dont have internet at my house. t.t Link to comment Share on other sites More sharing options...
Botre Posted July 4, 2014 Share Posted July 4, 2014 (edited) Here's how I do it (edited): /** * @author Botrepreneur * @throws InterruptedException * @Version: 00.11 */ public static boolean deselect(Script script) throws InterruptedException { Timer timer = new Timer(); while (script.inventory.isItemSelected() && timer.getElapsed() < 30000L) { // GET ALL OPENABLE TABS: List<Tab> openableTabs = new ArrayList<Tab>(); for (Tab tab : Tab.values()) { if (!tab.isOpen(script.bot) && !tab.isDisabled(script.bot)) { openableTabs.add(tab); } } if (openableTabs != null && !openableTabs.isEmpty()) { int i = MethodProvider.random(0, openableTabs.size() - 1); if (openableTabs.get(i) != null && script.tabs.open(openableTabs.get(i))) { MethodProvider.sleep(MethodProvider.random(600, 900)); } } else { // DEAD SPACE, could use interface values instead Rectangle deadSpaceLeftColumn = new Rectangle(520, 205, 25, 260); Rectangle deadSpaceRightColumn = new Rectangle(740, 205, 25, 260); Rectangle deadSpaceRightFromMap = new Rectangle(720, 10, 45, 155); Rectangle[] deadSpaceAll = new Rectangle[] { deadSpaceLeftColumn, deadSpaceRightColumn, deadSpaceRightFromMap }; int i = MethodProvider.random(0, deadSpaceAll.length - 1); if (deadSpaceAll[i] != null && MoveMouse.toRectangle(script, deadSpaceAll[i], true, 3)) { MethodProvider.sleep(MethodProvider.random(600, 900)); } } } return !script.inventory.isItemSelected(); } Edited July 4, 2014 by Botrepreneur Link to comment Share on other sites More sharing options...
Joseph Posted July 4, 2014 Author Share Posted July 4, 2014 else { // DEAD SPACE Rectangle deadSpaceLeftColumn = new Rectangle(520, 205, 25, 260); Rectangle deadSpaceRightColumn = new Rectangle(740, 205, 25, 260); Rectangle deadSpaceRightFromMap = new Rectangle(720, 10, 45, 155); Rectangle[] deadSpaceAll = new Rectangle[] { deadSpaceLeftColumn, deadSpaceRightColumn, deadSpaceRightFromMap }; int i = MethodProvider.random(0, deadSpaceAll.length - 1); if (deadSpaceAll[i] != null && MoveMouse.toRectangle(script, deadSpaceAll[i], true, 3)) { MethodProvider.sleep(MethodProvider.random(600, 900)); } } where you have this at is a bit useless since. The code below will never be empty nor null if (openableTabs != null && !openableTabs.isEmpty()) { So you should add a boolean to switch between both methods. Also, rather then putting the tabs in an arraylist couldnt you loop through all tab, add a boolean that check to see if it isnt open. Interact with it and add a break statement to end the loop. Plus, why does the method return item is selected true return script.inventory.isItemSelected(); Link to comment Share on other sites More sharing options...
Botre Posted July 4, 2014 Share Posted July 4, 2014 (edited) where you have this at is a bit useless since. The code below will never be empty nor null For situations where no tab is openable (randomevents for example). The openableTabs array will be empty when nothing is added to it (if all tabs are disabled). Also, rather then putting the tabs in an arraylist couldnt you loop through all tab, add a boolean that check to see if it isnt open. Interact with it and add a break statement to end the loop. You absolutely could, the reason I add all openable tabs to an array is so that I can open a random one from that list. I like randomization Plus, why does the method return item is selected true Should be !script.inventory.isItemSelected() indeed, thanks. Edit: second time I fuck up a boolean return value today Edited July 4, 2014 by Botrepreneur Link to comment Share on other sites More sharing options...
Joseph Posted July 4, 2014 Author Share Posted July 4, 2014 For situations where no tab is openable (randomevents for example). The openableTabs array will be empty when nothing is added to it (if all tabs are disabled). You absolutely could, the reason I add all openable tabs to an array is so that I can open a random one from that list. I like randomization Should be !script.inventory.isItemSelected() indeed, thanks. Edit: second time I fuck up a boolean return value today correct me if im wrong, but i havent seen any random that disable all tabs. and i love randomization Link to comment Share on other sites More sharing options...
Precise Posted July 4, 2014 Share Posted July 4, 2014 am i missing something? why not just click the item again so then it is deselected? seems a bit much, that is all ^_^ Link to comment Share on other sites More sharing options...
Joseph Posted July 4, 2014 Author Share Posted July 4, 2014 am i missing something? why not just click the item again so then it is deselected? seems a bit much, that is all check the op Link to comment Share on other sites More sharing options...