Tylerart
VIP-
Posts
13 -
Joined
-
Last visited
-
Feedback
0%
About Tylerart
Profile Information
-
Gender
Male
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Tylerart's Achievements
Newbie (1/10)
2
Reputation
-
Does this script still support Oak Dungeon Doors? @Eagle Scripts
-
@CzarDid you ever get around to this?
-
I just purchased this script but i would like a refund
-
i would like a trial for this if possible
-
id like a trial as well
-
Can i get a trial for this: ]
-
Hey guys im new here so bare with me. I currently have my script set up in tasks which rechecks every 7 secconds public void onStart(){ tasks.add(new BasicTask(this)); tasks.add(new LetsAfk(this)); tasks.add(new HandleBank(this)); tasks.add(new HandleLobby(this)); } @Override public int onLoop() throws InterruptedException { tasks.forEach(Task::run); return 7000; } From what i understand the way tasks work is it checks for a task every 7 seconds and once it finds a one that is valid it will run that until its not. One of my tasks works that if its in a certain position to start a afk timer and then move the mouse in a random interval from 1 second to like 4 mins and then repeat. My issue is tho even though the task is being activated and running the correct code for that task it is still getting refreshed every 7 seconds completely overriding the longer afk timer. @Override public boolean canProcess() { return api.myPosition().equals(AFK_POS_Z); } public int waitTime(int min, int max) { return (int)(Math.random() * (max - min)) + min; } @Override public int process() { api.log("in AFK AREA"); String zamMessage = api.getWidgets().get(59, 17).getMessage().substring(10); api.log(zamMessage); //int zamMessageInt = Integer.parseInt(zamMessage); //api.log(zamMessageInt); String saraMessage = api.getWidgets().get(59, 18).getMessage().substring(0,1); api.log(saraMessage); int saraMessageInt = Integer.parseInt(zamMessage); api.log(saraMessageInt); if (api.mouse.isOnScreen()) { api.mouse.moveOutsideScreen(); } else { api.mouse.move((int) (100 + (Math.random() * 660)), (int) (100 + (Math.random() * 400))); } return waitTime(1000, 260000);//(int) (Math.random() * 1000)); } }
-
Entity portal = closestObjectForName(PORTAL_NAME); not working
Tylerart replied to Tylerart's topic in Scripting Help
Thanks man for your input ill look into that method do you mind if i add you on disc : ] -
Entity portal = closestObjectForName(PORTAL_NAME); not working
Tylerart replied to Tylerart's topic in Scripting Help
i ended up using this and it seems to be working great // code in loop public int onLoop() throws InterruptedException { Player player = myPlayer(); //if player is in bank area find portal if (BANK_AREA.contains(player)) { objects.closest("Guthix Portal").interact("Enter"); } return 50; } } ive seen RS2Object is that acceptable for osrs? -
can you add wine support : )
-
Tylerart started following Eagle Scripts