| Gallery | |
|
|
|
| Gallery | |
|
|
|
1. save the code as orb.plQuote:
hi man after the step Download and install Strawberry Perl
Open a cmd.exe as administrator and run cpan Win32::GuiTest
i save the script . pl but dont works, what i need ?
Are you blind to not see what it states in the cmd?Quote:
I followed all the instructions, but once I was ingame the perl orb.pl command just loaded forever and nothing happened.
[Only registered and activated users can see links. Click Here To Register...]
use strict;
use warnings;
use Win32::GuiTest qw(:ALL);
use Time::HiRes qw(usleep);
use LWP::UserAgent;
use constant HTKEY => 'a';
use constant START => VK_SPACE;
my $sleep = 1;
my $cond = 0;
while (1) {
start() if $cond == 1;
if (IsKeyPressed(START)) { $cond = 1 }
else { $cond = 0 }
}
sub start {
$sleep = 1000000 * (1/as())/2;
SendKeys(HTKEY);
usleep($sleep);
SendMouse("{RIGHTCLICK}");
usleep($sleep);
}
sub as {
my $ua = LWP::UserAgent->new( ssl_opts => { verify_hostname => 0 }, protocols_allowed => ['https'] );
my $req = HTTP::Request->new(
GET => 'https://127.0.0.1:2999/liveclientdata/allgamedata',
);
my $res = $ua->request($req);
if ($res->content =~ /"attackSpeed": (\d+\.\d+),/) {
return $1
}
}
Very good switch - in fact, might be easier to use in game while holding/releasing space bar instead of using multiple other hotkeys!Quote:
I made just a simple adaptation to use it as the traditional space bar (it can be improved ofc):
Code:use strict; use warnings; use Win32::GuiTest qw(:ALL); use Time::HiRes qw(usleep); use LWP::UserAgent; use constant HTKEY => 'a'; use constant START => VK_SPACE; my $sleep = 1; my $cond = 0; while (1) { start() if $cond == 1; if (IsKeyPressed(START)) { $cond = 1 } else { $cond = 0 } } sub start { $sleep = 1000000 * (1/as())/2; SendKeys(HTKEY); usleep($sleep); SendMouse("{RIGHTCLICK}"); usleep($sleep); } sub as { my $ua = LWP::UserAgent->new( ssl_opts => { verify_hostname => 0 }, protocols_allowed => ['https'] ); my $req = HTTP::Request->new( GET => 'https://127.0.0.1:2999/liveclientdata/allgamedata', ); my $res = $ua->request($req); if ($res->content =~ /"attackSpeed": (\d+\.\d+),/) { return $1 } }