Everything posted by Vilius
-
Real N Word hour! Who up?
No, wtf
-
[HELP!] - I Need Name Ideas!
But why name an inanimate object?
-
The difference between dynamic and static skill levels
wew gr8 tutorial for plebs
- ONE word - Corruption
- oh dear
-
Paint disappearing when minimizing client, will only show when I hover over it ?
make a graphics var Graphics2D paint = (Graphics2D) g.create(); and do: paint.drawString(); etc. I think its because you are using an entity debugger which overrides your paint.
-
Walking A Path --> Newer API
You can make an area in lumby and walk from it to cammy with one line, the spacing between the areas can be as big as you want. It will even handle boats, obstacles for you.
-
onPaint caveats
wew, you are quick, guessing its the same in bed with a girl?
-
Walking A Path --> Newer API
Just make 2 areas where you want to walk Area area1 = new Area(x,y,x,y); Area area2 = new Area(x,y,x,y); And simply walk to any one of them by doing: getWalking().webWalk(area1); getWalking().webWalk(area2); by using the webwalker you dont need to have predefined paths, it makes a new path for itself to walk which is far better.
-
PROGGY COMPETITION
Android developer at google, huh? pics or didnt happen when you go to work take a picture of you holding up your osbot username and I believe you
-
Is it just me?
Lmao, I saw singing bots too
-
It's a boy!
wooo Just bummed there is no
-
PSA: why the client isn't working after the update.
Runescape updated, client hasn't, please calm your tits and wait till the developers update the client. And for god sakes don't come to the chatbox and ask "OMG HALP MY BOT NO WORK AFTER UPDATE, PLS FIX" You will just piss people off and noone will help you. -Much love, Vilius and the osbot community p.s really calm yo tits.
-
Using synchronized() to your advantage
I appreciate the constructive criticism my friend
-
Using synchronized() to your advantage
So, I have seen people struggle pausing their scripts while their gui is open. Sometimes they try using a boolean public void onStart(){ gui.initComponents() pause = true; } public int onLoop(){ if(pause == false){ //do stuff } } In theory it works, but its not really what you want to do, do you? You essentially want to halt the scripts thread from working until the gui is closed or the start button is pressed, because you only want it to start doing stuff only after the user has his settings done so this is where synchronization of objects comes into play. we just add this to your main class: public class Main extends Script{ Object lock = new Object(); public void onStart(){ GUI.initComponents(); synchronized(lock){ lock.wait(); } } public int onLoop(){ return 100; } } And it halts the thread. When a thread invokes a synchronized statement, it automatically acquires the intrinsic lock for that method's object and releases it when the method returns. Every object has an intrinsic lock associated with it. A thread that needs exclusive and consistent access to an object's fields has to acquire the object's intrinsic lock before accessing them, and then release the intrinsic lock when it's done with them. But now you are asking how is my gui functioning if my script is halted? Its because the gui will be handled on another thread which the synchronized statement doesn't affect. Alright, so we know we halted our script thread, now what? We need to start it again, so we know our gui is handled on another thread which is not affected by the synchronized statement, which in term would mean the thread is "free" to do anything with the object So we just do this on the button: JButton button = new JButton("Start"); frame.add(button); button.addActionListener{e ->{ synchronized(main.lock){ main.lock.notify(); } frame.setVisible(false); } as we notify the object, the object now releases its intrinsic lock and lets the script thread run as normal as before the lock. Hope you learned something. If I have made mistakes feel free to correct me
-
New Emoji Vote!
- No, I'm not dead.
I should care, because....?- [Webwalking] Issue's with walking in edgevile{WebWalking]
http://osbot.org/forum/topic/91870-walkingwebwalkingarea/ http://osbot.org/forum/topic/90819-walkingwalkpositionobject/ pls, its broken afaik or just something is not working it will be fixed. But it might be that the script is broken too- Cursor Help
Sure, everything is fine when you look up a tutorial on another botting site with a different api. You need to make one for yourself Just place this in your onPaint() method and you should be set. Point mP = getMouse().getPosition(); g.drawLine(mP.x - 5, mP.y + 5, mP.x + 5, mP.y - 5); g.drawLine(mP.x + 5, mP.y + 5, mP.x - 5, mP.y - 5);- Want to see a new emoji? Post here :mald:
Chatbox resized a gif for me woo: :burn:- Want to see a new emoji? Post here :mald:
or or Didn't find any animated one though- Want to see a new emoji? Post here :mald:
or this one: even @Alek approves:- Got my socks 5 proxy ready!
I see 9 socks not 5. u fail- Soft clay
the sleeps gave me kanker- #justRunescapeThings
- No, I'm not dead.