MaxSkiller Posted June 21, 2014 Posted June 21, 2014 (edited) hello, i got some quesiton about OSBOT 2 I was wondering if it was possible to check equipment while not in the equipment tab. I'm trying to check an equipment while banking, Any way this is possible? Thx! Edited June 21, 2014 by MaxSkiller
blabla123 Posted June 21, 2014 Posted June 21, 2014 (edited) I think you can check everything except rings and arrows? Not 100% sure tho EDIT: Try looking through Programming and Scripting sub-sections. I remember seeing it there somewhere. Edited June 21, 2014 by blabla123
MaxSkiller Posted June 21, 2014 Author Posted June 21, 2014 (edited) I think you can check everything except rings and arrows? Not 100% sure tho EDIT: Try looking through Programming and Scripting sub-sections. I remember seeing it there somewhere. OK will do, Ya i'm trying to check a ring I only can find something about osbot1 I'll figure somehting out myself ^^ Edited June 21, 2014 by MaxSkiller
blabla123 Posted June 21, 2014 Posted June 21, 2014 Yeah, you can take advantage of the time when you're using your ring (I assume we're talking about dueling ring here). That way you have equipment tab open and you can store the remaining uses in some variable which you will base your condition on , while you're banking.
MaxSkiller Posted June 21, 2014 Author Posted June 21, 2014 Yeah, you can take advantage of the time when you're using your ring (I assume we're talking about dueling ring here). That way you have equipment tab open and you can store the remaining uses in some variable which you will base your condition on , while you're banking. Ya did it that way now, but i'm not a fan of storing values... can be messed pretty hard xD
Joseph Posted June 21, 2014 Posted June 21, 2014 Ya did it that way now, but i'm not a fan of storing values... can be messed pretty hard xD you have to check your tab once so it can check to see what items your wearing, it doesnt work to well with rings or arrows. Hes a little work around for dueling rings. Just leave the dueling ring in your inventory. Easier, less messy, and wont break.
MaxSkiller Posted June 21, 2014 Author Posted June 21, 2014 (edited) you have to check your tab once so it can check to see what items your wearing, it doesnt work to well with rings or arrows. Hes a little work around for dueling rings. Just leave the dueling ring in your inventory. Easier, less messy, and wont break. Ya, Well I made my own Equipment class now, Like all the other 15 classes I made myself bcs: - glitching methods, - Sometimes very slow (for example deselecting item from inven) - not supporting the functions I need - Some easy methods requires unneeded data (in my opinion) - A lot of basic functions are missing( or can't find them bcs the naming) (for example clicking a certain point on the screen) - the interface debugger isn't easy to use, you cna only extract data from an interface + child when u input them, instead why don't make a interface overview so i can search a certain option? would saved me atleast 1 hour today. I don't know, is this still going to change? I hope so atleast xD Edited June 21, 2014 by MaxSkiller
Joseph Posted June 21, 2014 Posted June 21, 2014 (edited) Ya, Well I made my own Equipment class now, Like all the other 15 classes I made myself bcs: - glitching methods, - Sometimes very slow (for example deselecting item from inven) - not supporting the functions I need - Some easy methods requires unneeded data (in my opinion) - A lot of basic functions are missing( or can't find them bcs the naming) (for example clicking a certain point on the screen) - the interface debugger isn't easy to use, you cna only extract data from an interface + child when u input them, instead why don't make a interface overview so i can search a certain option? would saved me atleast 1 hour today. I don't know, is this still going to change? I hope so atleast xD i think they have methods that you need, your just not finding them like for example the right click on a certain place. Under the mouse class (i read your other thread this might help) also i hope they fix the equipment tab Edited June 21, 2014 by josedpay
MaxSkiller Posted June 21, 2014 Author Posted June 21, 2014 i think they have methods that you need, your just not finding them like for example the right click on a certain place. Under the mouse class (i read your other thread this might help) Ya, how do I even make a MouseDestination? i tried almost everything ... I saw this method before, but liek I said: why make is so confusing?
Joseph Posted June 21, 2014 Posted June 21, 2014 (edited) Ya, how do I even make a MouseDestination? i tried almost everything ... I saw this method before, but liek I said: why make is so confusing? is really isnt that confusing as long as you use the api. Go in to the MouseDestination class, and look at there sub-classes. Mouse Destination is a super class of those above. You can see RectangleDestination click on it the constructor support using (x,y,w,h), or a rectangle So you could easy do mouse.click(new RectangleDestination(bot, x, y, width, height), true); Or if the destination of an item keeps changing. You can do int slot = inventory.getSlot("coins"); mouse.click(inventory.getMouseDestination(slot), true); Its all about polymorphism, learn it Edited June 21, 2014 by josedpay
Khaleesi Posted June 21, 2014 Posted June 21, 2014 is really isnt that confusing as long as you use the api. Go in to the MouseDestination class, and look at there sub-classes. Mouse Destination is a super class of those above. You can see RectangleDestination click on it the constructor support using (x,y,w,h), or a rectangle So you could easy do mouse.click(new RectangleDestination(bot, x, y, width, height), true); Or if the destination of an item keeps changing. You can do int slot = inventory.getSlot("coins"); mouse.click(inventory.getMouseDestination(slot), true); Its all about polymorphism, learn it Looks good thx!