Everything posted by KMJT
- Change scholar PiP
-
Getting the ID's of nearby objects.
final int[] TIN_IDS = {1234, 1234, 1234, 1234};
-
Lost sdn scripter rank
Hello. I lost sdn scripter rank and it was replaced with vip (even though I haven't paid for vip). I also lost access to sdn scripter section. Is this a bug?
-
How I got busted for dealing drugs...
pm story plz
-
I'm trusted, I have 100% feedback.
I'm trusted, I have 100% feedback.
-
Mouse event
I think you are confused with what the width and height actually represent. Its been awhile since I used the method so I may be wrong but I think width and height represent the maximum displacement (in pixels) from your x and y coordinate parameters. So if you want to do move to an exact spot with no randomization whatsoever, I think you would do one of the following: client.moveMouse(new RectangleDestination(xCord, yCord, 0, 0)); client.moveMouse(new RectangleDestination(xCord, yCord, 1, 1)); And if you want to move your mouse to a position on the screen not necessarily at an exact point, but within a certain randomized screen area from your specified coordinates, you can do something like: client.moveMouse(new RectangleDestination(xCord, yCord, 20, 25)); I wish they would have straight forward methods like: moveMouse(xCord, yCord); clickMouse(xCord, yCord); Its been awhile since i've used click and move methods so I may be completely wrong lol.
-
Mouse click OSBot v2
What do you mean? Just looking through the osbot2 api I Can see the following methods: To move boolean moveMouse(MouseDestination destination) Moves the mouse to the specified destination. boolean moveMouse(MouseDestination destination, boolean drag) Moves the mouse to the specified destination. To click (among many others) boolean click(MouseDestination destination) Moves the mouse to the specified destination and performs a left click on the destination. boolean click(MouseDestination destination, boolean rightClick) Moves the mouse to the specified destination and performs a left or a right click as specified on the destination.
-
Warning: Amazon Scamming
I would be wary of it was through PP.
-
OSBot 2.0.16 BETA! (First PUBLIC release)
Particularly happy about these :P java.lang.String getSelectedItemName() Returns the name of the item selected. boolean isItemSelected() Returns whether an item in your inventory is selected.
-
Is it possible to give people access to a sdn script for free?
Makes sense I see why. thanks
-
Is it possible to give people access to a sdn script for free?
Say I charge $5.99 for my script, is there any way to grant some people access to it (to the sdn version, not by giving them a local version) for free? Or are they required to pay in order to use it? I guess it sounds like I am trying to sell the script off site to avoid the fee aha, thats not why i'm asking. Also, is it possible for me to get the sdn version of my script? I haven't checked my client in days so for all I know I was already given it. One more thing.. how would I see how many people are using my sdn script? Thanks
-
Software Engineering
Lol why are you in a program that you don't enjoy studying :P
-
itemSelected() method snippet
I may be wrong but from what I was told using your method although more efficient doesn't it eventually have to be updated? Personally I would rather sacrifice a bit of CPU then have to worry about updating something in the future Which is why they should just hook it in the API >.< How? The client.getMenu() or w/e the code is does not verify true uptext. It is hover uptext which does not guarantee that an item is selected. If you mean grabbing colours from the actual up text area, you can, although you would have to have a colour range since the up text colour is not constant. By that I mean if you are grabbing the rgb values of a direct point on the world "Use", a few seconds later that rgb value could be slightly off, i'm guessing because of background change. I haven't really tested the rgb value range in the uptext so for all I know it is more efficient. I'll test the rgb range later tonight.
-
itemSelected() method snippet
Probably not the most efficient but better than nothing. It is pretty straight forward. Whatever item you want to add this method to put the item in the very first inventory slot to debug the points (3 x and 3 y coordinate values). If you debug your coordinate values from any spot other than the very first inventory slot, the method will not work. The coordinate points that you are debugging will be of the white outline (when an item is selected). Make sure that these colors match exactly the rgb values (255,255,255) which is the white outline around the item. When choosing your confirm points try to spread the points out and choose points that you think are unique (for example if there is a point that is bent inwards into the item, that would be a good point to choose since it is unlikely that any other item in the game shares that distinct feature). I put in 3 confirm points but you can easily edit the method to add more/less confirm points. The more confirm points there are, the more accurate the method will be. Although imo anything over 3 confirm points is overkill if you are choosing points that are spread apart and unique. public int onLoop() throws InterruptedException { //test example if(itemSelected(568,221, 580,237, 590,227)) log("ROPE UPTEXT"); else if(itemSelected(571,235, 573,242, 585,223)) log("KNIFE UPTEXT"); else log("no uptext"); return 50; } boolean itemSelected(int highlightedX1, int highlightedY1, int highlightedX2, int highlightedY2, int highlightedX3, int highlightedY3) { Color highlightColor = new Color(255,255,255); for(int rows=0, y1=highlightedY1, y2=highlightedY2, y3=highlightedY3; rows<7; rows++) { for(int columns=0, x1=highlightedX1, x2=highlightedX2, x3=highlightedX3; columns<4; columns++) { if(client.getColorPicker().isColorAt(x1,y1,highlightColor) && client.getColorPicker().isColorAt(x2,y2,highlightColor) && client.getColorPicker().isColorAt(x3,y3,highlightColor)) return true; x1+=42; x2+=42; x3+=42; } y1+=36; y2+=36; y3+=36; } return false; }
-
Can a free sdn script later be switched to non free?
Ok cool i'll check it out thanks
-
Can a free sdn script later be switched to non free?
What free program do you use to obfuscate?
-
Can a free sdn script later be switched to non free?
Unneeded hassle
-
Can a free sdn script later be switched to non free?
As in putting the .class files out to the public? Would rather not do that.
-
Can a free sdn script later be switched to non free?
Ok, thank you sir
-
Can a free sdn script later be switched to non free?
If I release a script on the sdn for free for testing purposes, can I later switch it to paid? If so what happens to all the people that currently have been using the free version? Are they unable to use it now? Also, if it is a quest script, what do I do about the 6 hour proggy requirement?
- Scripter Ranks Proposal
-
Scripter Ranks Proposal
Will the new rank "script writer" get free vip?
-
I'm having a withdrawing issue.
Refer to my thread here: http://osbot.org/forum/topic/42524-clientgetbankisopen-true-returning-too-early/ I think you are having problem because the bank isOpen() method is returning true, but it is not yet visible, so it is impossible to interact with it. Try checking the actual bank interface: //pre-condition: Bank booth is on screen public void openBankBooth(int timeout) throws InterruptedException { while(client.getInterface(12) == null) { Thread.sleep(5); Entity bankBooth = closestObjectForName("Bank booth"); if(bankBooth != null) { if(bankBooth.interact("Bank")) { long markTime = System.currentTimeMillis(); while((client.getInterface(12) == null) && ((System.currentTimeMillis()-markTime) < timeout)) Thread.sleep(5); } } } } That is the current method I use. I also suggest you use dynamic sleeps instead of static sleeps to improve the efficiency of your script. Here is what I personally use to withdraw a charge item (array): //pre-condition: Bank is open public void withdrawChargeItem(int[] itemID, int timeout) throws InterruptedException { boolean done = false; while(!done) { for(int i = 0; i < itemID.length; i++) { if(client.getInventory().contains(itemID[i])) return; } for(int i = 0; i < itemID.length; i++) { if(client.getBank().contains(itemID[i])) { if(client.getBank().withdraw1(itemID[i])) { long markTime = System.currentTimeMillis(); while((!client.getInventory().contains(itemID[i])) && ((System.currentTimeMillis()-markTime) < timeout)) Thread.sleep(5); break; } } } } }
- new rule
-
BigBoiBets Is A Scam...
Didn't one of their leaders have a doubling scamming vid out? lol