Everything posted by Vilius
-
Sherlock Holmes
Benedict Cumberbatch is the best actor for Sherlock :xfeels:
-
12 days of gfxmas
Oh shit waddup: http://i.imgur.com/KaRRMCI.png :xdoge:
- yeee
-
Knowing when you are logged in
1. The api tells you what those numbers stand for10 = Logged out 20 = Loading please wait... 30 = Logged in 2. The client.isLoggedIn() returns true even if its loading. From what I saw you wanted a check for when everything is loaded, not loading. Please read the API docs next time :xfeels:
-
Knowing when you are logged in
if(getClient().getLoginStateValue() == 30) //either if(getClient().getLoginState().equals(Client.LoginState.LOGGED_IN)) Havent tested that though, wrote from my phone too.
-
how do I know the position?
getWalking().webWalk(Banks.LUMBRIDGE_UPPER); There is a class in osbot called Banks which has all the osrs banks. http://osbot.org/api/org/osbot/rs07/api/map/constants/Banks.html
- 12 days of gfxmas
-
TzTok Wine Maker
Having sleeps everywhere will not be consistent, what if the client lags? What if something else happens? That will throw the whole timing off. You should deffinitely think of how you could remove the sleeps. Just my 2 cents :xfeels:
-
Negative feedback
Disputed Member: @PurpleWard Why it should be removed: I got the 2def accidentaly or more so I was setup to get it. Details: So I was told by a mod to dispute my negative feedback from long time ago, because he saw something fishy to me getting the 2def and the buyer getting banned almost the next day. So basically the guy ordered some quests on its pure, me not thinking much didnt check if it was longrange I attacked the quest NPC and got the 2def after one low hit. It was a small hit but it still got the 2def. The setup part came to mind when the guy got banned almost the next day and declined any compensation or rebuild of the acc. Possibly he wanted to do some damage to me or any other service provider in that matter, before he scam quit. Link to topic: It has been deleted long time ago.
-
Programming languages
Tell me this after you try BrainFuck
- iPad Mini 2 or iPad Mini 4?
-
OSBot 2.4.102 - Shortcuts, Tabs, and Scrolls
Thank you papi! :xcate:
-
Understanding Configs
Instead of doing if(...){ ... }else if(...){ ... } You should use: switch(getConfigs().get(5)){ case 1: //do stuff break; case 2: //do stuff break; } Just my two cents.
-
Price check on 85/85/85...
Nzm and some others
-
Price check on 85/85/85...
Need an est price for non reg, no black marks account with: 85att/85str/85def/85rng/85mage/43 pray.
- ^Free^ Sexy Avi Wednesday
-
There are consistently no CBA's in chat.
Yup, we need more CBA's, there are a lot of active people in the chatbox who could be a CBA.
-
[Help] Powerline Network [Question]
Basically what it does, you plug an ethernet cable to one of the powerline adapters then it makes your house electricity lines act as an "ethernet cable" and it sends information to the other adapter. From which you can connect another ethernet cable to a computer/tv/etc. And it gives a pass trough to electricity too. What it doesnt do, give you wifi capabilities. To get wifi and ethernet you need a different plug. Like: http://www.tp-link.com/en/products/details/cat-18_TL-WPA4220KIT.html The issue with the one I provided that it removes the accessibility to the electrical socket.
-
[Local] Wine of zamorak grabber
My friend asked for a wine of zamorak grabber, so I threw one up real quick. What it does: Grabs wines, moves the mouse on the desk for faster pickup. Banks at Falador west. Logs out if no runes I added a basic painter: Time ran Money gained (Not profit, doesnt count (wine price - rune price)) Magic xp gained Current state Pic: You can modify it or do w/e. Download: https://www.mediafire.com/?c4drcl4i1fzdcyr src for those who want it, its a basic state based script.
- Overmorrow
-
finding npc help
Area yourArea = new Area(...); NPC npc = getNpcs().filter(npc -> npc != null && yourArea.contains(npc) && npc.getName().equals("NPC NAME"));
-
if player is in closest bank
Ofcourse, you can do that too, I'm not judging. I just find sorting the areas to be more useful rather than just iterating through them. And for the new guy it will be easier to understand boolean logic, I guess. Albeit this snippet I posted was for closest position finding from an array list, but it works for areas too, more versatile I suppose.
-
if player is in closest bank
oops should be: return entry1.getRandomPosition().distance(myPlayer()) - entry2.getRandomPosition().distance(myPlayer()); you should only add the banks in on start, then sort the array list when you want to walk or do something.
-
if player is in closest bank
Just do closestArea.add(...); no need to make more sorters.
-
if player is in closest bank
List<Area> closestArea = new ArrayList<Area>(); closestArea.add(Banks.AL_KHARID); closestArea.sort(new Comparator<Area>() { public int compare(Area entry1, Area entry2) { return entry1.getRandomPosition().distance(myPlayer()) - entry2.getRandomPosition().distance(myPlayer()); } }); getWalking().webWalk(closestArea.get(0)); if(!closestArea.get(0).contains(myPlayer()) getWalking().webWalk(closestArea.get(0)); here you go man, just add more banks to the ArrayList closestArea.get(0) returns the closest area.