alltehsmallthings
2013-09-24 03:46:50
Hey guys, i'm in the process of making my very first script. It's going to be a PowerChopper, then im going to try a PowerMiner. Buutt i was wondering if someone can let me use their AntiBan? :)
2013-09-24 03:46:50
2013-09-24 04:01:06
2013-09-24 04:02:07
2013-09-24 04:30:12
From: alltehsmallthings
Im actually on your second video for tutorials. Idk the antiban you used. along with another loop
2013-09-24 04:34:04
2013-09-24 04:45:39
From: alltehsmallthings
function CutDemUp:Boolean;
var
x , y: Interger;
begin
if FindObjCustom(x, y, ['Chop', 'Down', 'Willow', [2308157, 1979192, 2968145], 15); Then
WriteLn('Fuck yeah it worked');
end;
begin
SetupSRL;
DeclarePlayers;
Repeat
CutDemUp;
Until(false);
end.
[Error] (47:1): Identifier expected at line 46
Compiling failed.
function CutDemUp: Boolean;
var
x, y: Integer;
begin
if FindObjCustom(x, y, ['Chop', 'Down', 'Willow'], [2308157, 1979192, 2968145], 15) Then
WriteLn('Fuck yeah it worked');
end;
begin
SetupSRL;
DeclarePlayers;
repeat
CutEmUp;
until (false);
end.2013-09-24 05:07:23
2013-09-24 05:26:17
program KushTrimmer; //program name
{$DEFINE SMART8} //Defining the use of SMART.
{$I SRL-OSR/SRL.Simba} //Including Oldschool SRL library.
{$I SPS/sps-osr.simba} //Including Oldschool SPS library.
{$I SRL-OSR/srl/misc/SmartGraphics.simba} //For painting on SMART.
const
PSHIFT = 350;
GTHRESHOLD = 25;
PLAYER_NAME = ''; //Username here.
PLAYER_PASS = ''; //Password here.
PLAYER_NICK = ''; // 3-4 characters of your in-game name. NOT the first character.
M1D1 = False; //Set to True if you would like to mine one and drop one.
LOG_INT = 5; //Interval to display a log report in minutes.
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
Players[0].Name := PLAYER_NAME;
Players[0].Pass := PLAYER_PASS;
Players[0].Nick := PLAYER_NICK;
Players[0].Active := True;
end;
procedure Antiban;
begin
FindNormalRandoms; //Looks for any randoms.
case Random(90) of
0: RandomRClick; //Randomly right clicks somewhere on the screen.
2: PickUpMouse; //Acts like you've just picked up your mouse.
3: RandomMovement;//Randomly moves the mouse around.
4: BoredHuman; //Will examine/move mouse around on objects.
6: MakeCompass('N'); //Makes compass face North.
7: SetAngle(SRL_ANGLE_HIGH); //Moves view angle as high as possible.
8: Wait(5000+random(2000)); //Waits from 5000ms-7000ms.
9: HoverSkill(skill_Woodcutting,false); //Hovers woodcutting skill.
end;
end;
function CutDemUp: Boolean; //Sets CutDemUp; as a boolean (true/false result)
var
x, y: Integer; //Stating variables.
begin
if FindObjCustom(x, y, ['Chop', 'Down', 'Willow'], [2308157, 1979192, 2968145], 15) then
begin
WriteLn('It worked!'); //So if it finds the above line, it will write this line.
end; //Ensure if you are having more than 1 thing under the if..then that you have a begin..end.
end; //I put one in just for safe keeping.
begin;
SetupSRL; //Sets up SRL.
DeclarePlayers; //Declares players (logs in)
Antiban; //Does antiban procedure
repeat
CutDemUp; //Repeats CutDemUp; function until it can't continue. You NEED failsafes.
until(false);
end.2013-09-24 05:29:13
From: alltehsmallthings
[Error] (47:1): Identifier expected at line 46
Compiling failed.
There you go. I dont understand whats goin on.
program KushTrimmer;
{$DEFINE SMART8}
{$I SRL-OSR/SRL.Simba}
{$I SPS/sps-osr.simba}
{$I SRL-OSR/srl/misc/SmartGraphics.simba}
const
PSHIFT = 350;
GTHRESHOLD = 25;
PLAYER_NAME = ''; //Username here.
PLAYER_PASS = ''; //Password here.
PLAYER_NICK = ''; // 3-4 characters of your in-game name. NOT the first character.
M1D1 = False; //Set to True if you would like to mine one and drop one.
LOG_INT = 5; //Interval to display a log report in minutes.
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
Players[0].Name := PLAYER_NAME;
Players[0].Pass := PLAYER_PASS;
Players[0].Nick := PLAYER_NICK;
Players[0].Active := True;
end;
procedure Antiban;
begin
FindNormalRandoms;
case Random(90) of
0: RandomRClick;
2: PickUpMouse;
3: RandomMovement;
4: BoredHuman;
6: MakeCompass('N');
7: SetAngle(SRL_ANGLE_HIGH);
8: Wait(5000+random(2000));
9: HoverSkill(skill_Woodcutting,false);
end; // this is the end; of CASE
end; // you forgot the add an end; here - this is the end; of procedure Antiban; Begin
function CutDemUp: Boolean;
var
x, y: Integer;
begin
if FindObjCustom(x, y, ['Chop', 'Down', 'Willow'], [2308157, 1979192, 2968145], 15) Then
WriteLn('Fuck yeah it worked');
result := true; //added the result of the boolean
end;
begin;
SetupSRL;
DeclarePlayers;
Antiban;
repeat
Cutdemup; //changed the name to the correct function
until(false)
end.
2013-09-24 16:35:42
2013-09-24 17:03:41
2013-09-24 17:21:16
From: alltehsmallthings
I got this so far, It actually works :P awesome. BUTTT it just keeps clickin on the tree.
program KushTrimmer; //program name
{$DEFINE SMART8} //Defining the use of SMART.
{$I SRL-OSR/SRL.Simba} //Including Oldschool SRL library.
//{$I SPS/sps-osr.simba} //Including Oldschool SPS library.
{$I SRL-OSR/srl/misc/SmartGraphics.simba} //For painting on SMART.
const
PSHIFT = 350;
GTHRESHOLD = 25;
PLAYER_NAME = ''; //Username here.
PLAYER_PASS = ''; //Password here.
PLAYER_NICK = ''; // 3-4 characters of your in-game name. NOT the first character.
M1D1 = False; //Set to True if you would like to mine one and drop one.
LOG_INT = 5; //Interval to display a log report in minutes.
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
Players[0].Name := PLAYER_NAME;
Players[0].Pass := PLAYER_PASS;
Players[0].Nick := PLAYER_NICK;
Players[0].Active := True;
end;
procedure Antiban;
begin
FindNormalRandoms; //Looks for any randoms.
case Random(90) of
0: RandomRClick; //Randomly right clicks somewhere on the screen.
2: PickUpMouse; //Acts like you've just picked up your mouse.
3: RandomMovement;//Randomly moves the mouse around.
4: BoredHuman; //Will examine/move mouse around on objects.
6: MakeCompass('N'); //Makes compass face North.
7: SetAngle(SRL_ANGLE_HIGH); //Moves view angle as high as possible.
8: Wait(5000+random(2000)); //Waits from 5000ms-7000ms.
9: HoverSkill(skill_Woodcutting,false); //Hovers woodcutting skill.
end;
end;
function CutDemUp: Boolean; //Sets CutDemUp; as a boolean (true/false result)
var
x, y: Integer; //Stating variables.
begin
if FindObjCustom(x, y, ['Chop', 'Down', 'Willow'], [2308157, 1979192, 2968145], 15) then
Begin
SmartGetMousePos(x, y)
Case Random(2) of
0:Mouse(x, y, 5, 5, True);
1:Begin
Mouse(x, y, 5, 5, False);
WaitOption('Chop', 500);
End;
End;
End;
End;
function IsCutting:boolean; //added this
var
playerbox: tbox;
begin
playerbox := inttobox(x1, y1, x2, y2); {you need to make a box around your player}
if pixelshift(playerbox, 500) > 150 {pixelshiftnumber (like 150)} then
result := true;
end;
begin;
SetupSRL; //Sets up SRL.
DeclarePlayers; //Declares players (logs in)
Antiban; //Does antiban procedure
End;
repeat
if (not iscutting) then
begin
CutDemUp; //now it will click on a tree
end
else //else...
begin
//antiban?, droppinglog procedure?
end;
until(false);
end.
2013-09-24 18:22:54