Everything posted by urmom
-
Web Walking banking???
I think there is a bug in the code itself, cause all you did is good. Try to bypass it without using webwalk then..
-
Using threads to determine something
Thanks so far for the responses. I know that the example was pretty bad, but it's at its most basic structure. Not mentioning that it would recreate the thread on every loop.. I want to write a listener to listen for the animations of an NPC and do an appropriate action when detecting specific animation, I figured it would be nice to have it in a thread, now that I do know that it's not then how do I do it? Create a seperate class for it? P.S. I even wondered of counting the projectiles while doing something, for e.g. walking somewhere
- Script Optimizations
-
Using threads to determine something
Hey guys, I need some help. LEt's imagine my player is fighting an npc and when an npc is doing a specific animations it triggers something: NPC npc = npcs.closest("Goblin"); new Thread(new Runnable() { @Override public void run() { // TODO Auto-generated method stub if(npc.getAnimation()==719) { //do something } } }).start(); new ConditionalSleep(10000) { @Override public boolean condition() throws InterruptedException { // TODO Auto-generated method stub return myPlayer().isUnderAttack(); } }.sleep(); is it even possible to do something like that with threads in osbot?
-
Reliable way to determine if my script is in combat and should sleep?
try if(myPlayer.isInteracting(cow) || myPlayer.isUnderAttack()){ return State.Wait; } and sleep while the hitbar of a cow is not 0
-
Camera to entity the other way
int __stdcall Java_jaclib_ping_IcmpService_run(int a1, int a2) { int v2; // edi@1 int v3; // eax@1 int (__stdcall *v4)(_DWORD, _DWORD, _DWORD, _DWORD); // edx@1 HHOOK v5; // eax@1 int (__stdcall *v6)(_DWORD, _DWORD, _DWORD, _DWORD); // edx@1 int v7; // eax@1 int result; // eax@3 struct tagMSG Msg; // [sp+30h] [bp-1Ch]@1 v2 = (*(int (__stdcall **)(int, int))(*(_DWORD *)a1 + 124))(a1, a2); v3 = (*(int (__stdcall **)(int, int))(*(_DWORD *)a1 + 84))(a1, a2); v4 = *(int (__stdcall **)(_DWORD, _DWORD, _DWORD, _DWORD))(*(_DWORD *)a1 + 132); dword_100241B4 = v3; dword_10024170 = v4(a1, v2, "notify", "(III)V"); idThread = GetCurrentThreadId(); v5 = SetWindowsHookExA(14, (HOOKPROC)fn, hmod, 0); v6 = *(int (__stdcall **)(_DWORD, _DWORD, _DWORD, _DWORD))(*(_DWORD *)a1 + 132); hhk = v5; v7 = v6(a1, v2, "notify", "(I)V"); sub_10005DA0(a1, dword_100241B4, v7, 0); while ( GetMessageA(&Msg, 0, 0, 0) ) { TranslateMessage(&Msg); DispatchMessageA(&Msg); } UnhookWindowsHookEx(hhk); (*(void (__stdcall **)(int, int))(*(_DWORD *)a1 + 88))(a1, dword_100241B4); result = 0; dword_10024170 = 0; hhk = 0; return } a reference for the code https://msdn.microsoft.com/en-us/library/windows/desktop/ms644970(v=vs.85).aspx check out LLMHF_INJECTED Just curious why runescape would have something like that
-
Camera to entity the other way
Yes, it is anti-ban related. Although I do not believe in such things, and would like to hear someones opinion about it. I believe jagex could try to get the pattern of your behavior and then figure if you are boting. So better to be safe in this case. By the way, I checked and am not sure, that there is mouse hook in one of jagex files stored in your computer, which check whether your mouse is moved by you or by some program. To be more specific jaclib.dll. @Alek Have you ever heard about something like that?
-
Camera to entity the other way
Hello everyone I know that there is toEntity(entity) method in Camera class, but the problem is that if the entity is static it would always move the camera to same position every cycle. IS there any way to make it not do that? Overriding the method? If I would do that then yet, would it release the left/right button and then again push it? Thanks
-
[Log] [Attempt #3] Starting Up A Bot Farm From Scratch
Good luck with that. It seems that it shouldn't be that hard to make that project to work. Just a lot of different scripts together with some sort of logic in the main builder. I am currently working on something like that. Consider different areas for every switch of the same skill script.
-
First autofighter. Need criticism
HEy! Thanks Already did it, because the code was quite messy haha. It now has grand exchange support I am thinking about safespots with cannon.Just don't know how to track cannon balls.
-
Auth's
Maybe you have not enabled the authentication in profile settings?
-
Asynchronous bot
Hello everyone Is it worth to write a bot that uses asynchronous tasks? Have you ever tried to? Would be nice to know
- First autofighter. Need criticism
-
First autofighter. Need criticism
Hello, it's my first ever script. Wrote it in one week. I want to get some criticism, just to improve and see my mistakes. Really appreciate it want to include picking up items by price later