Everything posted by Cyro
-
GUI in scripts?
i personal like to use windowbuilder Pro plugin for eclipse for Swing GUI it's easy to use and it generates a clean code
-
Banking with names!
Looks good but make use of naming conventions. It helps make understanding it easier for the person reading it. For example your method name is using correct naming conventions. Use mixed casing for parameter values with a prefix such as a or an. variables use mix casing as well and constants should utilize capitalizing each word with a underscore. for example: public int getBankItemByName(aItemName){ int itemID = 0; for (Item singleItem : client.getBank().getItems()) { if (single_item.getName().equals(aItemName)) { itemID = singleItem.getId(); return itemID; } } return null; } an int cant return null change that to -1 and use #equalsIgnoreCase(); instead of #equals();
-
Announcing OSBot 2!
interesting will be waiting for it So will the scripts be able to use JavaFX based GUI as well as Swing?
-
Get Time
Nice there are number of ways to do it My way is public String getTime(){ SimpleDateFormat sdf = new SimpleDateFormat( "hh:mm:ss a"); //a is the pm/am marker Calender calender = Calender.getInstance(); return sdf.format(calendar.getTimer()); }
-
Flawless Path Walking
Mind sharing that canReach? it's in the MethodProvider here, mostly everything is in there
- A SW rank
-
Question
After you have downloaded it open free script tab then click the refresh button Well, i can't download it that's the problem after u check it out with the cart u don't download anything so i don't see how it goes into my client folder in scripts. even if i refresh it's not there since it's not even in the scripts folder the scripts in the SDN will never be in your script folder when you add them, instead they will be added to your online collection. The client then will check your collection of scripts and display them on the script selector. The SDN is designed so scriptwriters' scripts can be closed source so others don't copy it especially the paid ones otherwise who will buy them if they can get it downloaded
- Question
-
Combat snippet
you are trying to see If the character is interacting with another and dont care which one it is #getFacing will return the character that the npc is interacting with if its not interacting with anything then it will return null so Use #getFacing()==null instead of #isFacing(character)
-
Combat snippet
nice only that i see NPCs there useless as you can just do for(NPC i:enemies){ ... }
-
Capturing the screen
nice i made one few days ago anyway thanks i would suggest you add something to change the file's name each time it saves, i usually just add the current time and date and time when file was saved e.g. "sceenshot2013-07-13 12 37 26 AM" this is how i do it SimpleDateFormat format = new SimpleDateFormat(yyyy-MM-dd HH mm ss a); Calender calender = Calender.getInstance(); File outputfile = new File(destination+fileName+format.format(calender.getTime())+".png"); this will help a lot of people
- AIO Walking Class (doens't glitch on break)
-
Wall safe - No Entity, Object?
well that the reason it in BETA still so all of this bugs get fixed, we are at stage 1 and it's going to be buggy but i say its pretty good now and you should be grateful. walking and camera turning work, might be something is wrong in your code, tho walking is being worked on more in 1.8.x that should fix those little bugs and with an intro to web walking. pb is at stage 4/5 and it been up for few years now, it had a lot of bugs throughout the way and now they are alright. hopefully when osbot is fully released when beta stage is over it will be working as good as any other bot. it's just a matter of time
-
foodid healing values
the way it is now is fine and there is no problem with it but just kinda messy. and enum are not hard and it was just a suggestion you dont have to use it.
-
foodid healing values
just what i was thinking of. he could then loop through them check if he id entered = to enumname.getId or something the return value. simpler and cleaner
-
Updates To Be Expected In 1.8.x!
nice updates are going to be coming up cant wait, good job guys
-
Inventory Hotkey (wrong topic I think)
im sure as i use it sometimes its the Esc(escape) button
-
Inventory Hotkey (wrong topic I think)
esc button
-
Take screenshot when leveling
you are going to add a button to client? or a method that takes pic every time you level? also can you add a method so we can use it in our scripts like saveScreenShot(); to the api
-
BETA v1.7.5
thanks for the update just what i needed it
-
[Scripting] Area Guide
dont think there is a site but there a program called dunkPathMaker doesnt quite support OSBot but should get the tiles for you
-
Random management system + new account GUI
nice
- Hunting
-
Random Event Solvers
randoms solver is included in the client anyway when saving a file in notepad make sure that save as type is All File (*.*) which is under the area where you write the name of the file
-
Calling all script writers!
learn the basics of java then it should be easy to make scripts using the api methods or ur own/others