-
Posts
780 -
Joined
-
Last visited
-
Days Won
1 -
Feedback
100%
Everything posted by d0zza
-
Most IDE's nowadays have their own GUI builders that you can use
-
Take a look at the API found here: osbot.org/api/ There are heaps of methods that return different things for what you want. For what you know for know just assume getInventory() is the same thing as importing OSBot's inventory API and calling inventory. If you want some more help you can pm me and I could possibly give you a fletching snippet and explain it to you
-
Added you on skype
-
Disputed member: @Ship Thread Link: N/A Explanation: He messaged me on skype asking if I had any gold to sell. We agreed on 85m at $1/m through paypal. I went first as I had sold him gold a few days ago and had no problem. After I traded him over the gp he proceeded to delete me from his skype and I have not received any payment from him.
-
Is there a way to disable auto login for a certain amount of time?
d0zza replied to d0zza's topic in Scripting Help
I guess I wasn't clear enough, I don't want it to break every set amount of minutes, I want it to break when it gets to a certain point in the script meaning the break depends on what state the script is in. This should work, thanks! -
Oh fuck me I know why, I should be using a while loop, not a for loop
-
This line here: if (getMouse().click(false)) { should be clicking the mouse, just because I have it in an if statement doesn't mean its not going to do anything. getMouse().click() is a boolean function that returns true if the mouse is clicked or false if it isn't.
-
I'm trying to use getMouse().click but it doesn't seem to be clicking when I want it to. My code is as follows: for (i = 0; i < 28; i++) { if (InventorySlotDestination.getSlot(i).contains(getMouse().getPosition())) { if (getMouse().click(false)) { i++; sleep(random(100, 125)); } } else { Rectangle rect = InventorySlotDestination.getSlot(i); getMouse().move(rect.x + (rect.width / 2), rect.y + (rect.height / 2)); sleep(random(100, 125)); } } Basically I'm just trying to click on all items in my inventory, my mouse moves through the inventory as intended but doesn't click on anything. I don't want to use inventory.interact() as that doesn't serve the right purpose for what I want to do.
-
Not too sure but maybe the jagex made the portals more than one type of entity? Like sometimes it's an NPC and other times it's an object so maybe try using Entity API?
-
I was also trying to use Store.sell() about a month ago for a script and gave up because I was having problems with it too
-
I'm not sure if this is still the case but a month or two ago when I was testing acceptTrade() I realised the widgets are wrong. So I had to find what widgets to interact with myself using the widget debugger.
-
So I'm trying to make a combat script. If another player is in combat with the closest monster to me how do I make my script attack the next closest monster? I've tried making a function to do this: public NPC closestAttackable() { List<NPC> npcs = getNpcs().getAll(); for (i = 0; i < npcs.size(); i++) { if (!npcs.get(i).isUnderAttack() && myPlayer().getArea(7).contains(npcs.get(i))) { return npcs.get(i); } } return null; } but this seems to always return null, any advice?