Jump to content

Vilius

Scripter II
  • Posts

    1495
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Everything posted by Vilius

  1. 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:
  2. if(getClient().getLoginStateValue() == 30) //either if(getClient().getLoginState().equals(Client.LoginState.LOGGED_IN)) Havent tested that though, wrote from my phone too.
  3. 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:
  4. 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.
  5. Tell me this after you try BrainFuck
  6. 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.
  7. Need an est price for non reg, no black marks account with: 85att/85str/85def/85rng/85mage/43 pray.
  8. Yup, we need more CBA's, there are a lot of active people in the chatbox who could be a CBA.
  9. 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.
  10. 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.
  11. Overmorrow - the day after tomorrow.
  12. Area yourArea = new Area(...); NPC npc = getNpcs().filter(npc -> npc != null && yourArea.contains(npc) && npc.getName().equals("NPC NAME"));
  13. 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.
  14. 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.
  15. Just do closestArea.add(...); no need to make more sorters.
  16. 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.
  17. You can use JavaFX by wrapping it in swing using JFXPanel
  18. Vilius

    anglerfish

    99 cooking or fishing?
  19. if(!getClient().getUsername().equals("Lewis")) stop; Place that in your on start and it should work.
×
×
  • Create New...