Jump to content

DeEvade

Lifetime Sponsor
  • Posts

    5
  • Joined

  • Last visited

  • Feedback

    0%

About DeEvade

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

DeEvade's Achievements

Newbie

Newbie (1/10)

0

Reputation

  1. It's the token you are given after login, in the browser it gets saved in cookies and is used to auto login. I'm guessing it's used for client as well.
  2. Ok I see thanks, and there is no way to launch it like Jagex launcher does, using patched Runelite?
  3. What CLI parameter should be used to provide session-token for automatic OSBot login to Jagex accounts?
  4. I want my script to sleep after hoppings worlds, I'm having problems when my onLoop tries to define objects from the game, before it is properly loaded. Which is causing some issues. It works if i add a static sleep, but something like a conditional sleep would make it a lot more reliable and faster. I tried using getGameState(), but it's always returning LOGGED_IN. Is there something that I've missed? @Override public int onLoop() throws InterruptedException { String state = getClient().getGameState().toString(); if(state != "LOADING" && state != "HOPPING") { npc = getNpcs().closest(npcName); if(!getStore().isOpen()) { if(hasItems()) { if(area(npcName).contains(myPlayer())) { if(npc != null) { if(npc.exists()) { npc.interact("Trade"); new Sleep(() -> getStore().isOpen(), 2000).sleep(); buyOrSell(); } } else { log("Npc is null"); } } else { walkTo(npcName); } } else { getItems(); } } else { buyOrSell(); } } else { log("State: " + state); } return 10; }
×
×
  • Create New...