SRL Archive - RS3 Outdated / Broken Scripts

New updated power chopper!


kooldude

2007-04-21 13:37:03

SET TREE COLOR!

This is my first "Good" script.

Not Fully Anti Randoms, Just talking Randoms

Just fill in the stuff needed and Press Play :)



{ //-------------------------------------------------------------\\
|| INSTRUCTIONS ||
||-------------------------------------------------------------||
|| BY: Kooldude ||
|| ||
|| 1. Axe in first INV slot... ||
|| 2. Drag Crosshair into RS window. ||
|| 3. Hit play and fill out forms. ||
|| 4. AXE HEAD FINDER WILL WORK, Normally :) ||
||-------------------------------------------------------------||
|| INSTRUCTIONS ||
\\-------------------------------------------------------------//
}
program Powercutter;
{.include SRL\SRL.SCAR}
{.include SRL\SRL\Skill\Woodcutting.SCAR}

var
Startxp, Totallogs, TotalXP,EndXP :integer;

const
TreeColor= 2785392; //Color of tree
IsAxeWeilded = false; // Change to True If Axe Is Weilded
TreeFindTime = 6000; // Time In Miliseconds Till u click next tree
// 1000 MiliSeconds = 1 Second

////////////Declaring PLayers/////////////
Procedure DeclarePlayers;
Begin

HowManyPlayers := 3;
CurrentPlayer:= 0;
NumberOfPlayers(HowManyPlayers);

Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := ''; //3 Lowercase Letters of your username
Players[0].Integer1 := 35; //Loads For Player
Players[0].Boolean1 := False; //Equip Axe?
Players[0].Active := True;

Players[1].Name := '';
Players[1].Pass := '';
Players[1].Nick := '';
Players[1].Integer1 := 35;
Players[1].Boolean1 := False;
Players[1].Active := True;

Players[2].Name := '';
Players[2].Pass := '';
Players[2].Nick := '';
Players[2].Integer1 := 35;
Players[2].Boolean1 := False;
Players[2].Active := True;

End;


///////////////Anti Randomz/////////////// Credits to fourscape :)
Procedure TheAntiRandoms;
Begin
Status('Random Check')
FindNormalRandoms;
wait(10)
FindTalk;
wait(10)
if (FindFight) then
begin
Status('Running From a fight.')
RunAwayDirection('E');
Wait(8500 + random(3500));
RunBack;
end;
Wait(10);
FindTalk;
end;

////////////////Finding Tree/////////////////

Procedure FindTree;
begin;
repeat
if FindColor(x,y,TreeColor,0,0,765,500) then
begin
Wait(TreeFindTime)
MMouse(x,y,2,2)
if(IsUpText('Willow'))then
begin
Mouse(x,y,2,2,true)
Writeln('Clicked Tree!')
end;
TheAntiRandoms;
end else
Writeln('Cant Find Willows')
until (InventoryFull);
end;

////////////////////Dropage//////////////////
Procedure Dropage;
begin
if(IsAxeWeilded = true)then
begin
DropAll;
end;
if(IsAxeWeilded = false)then
begin
Dropto(2,28);
end;
end;

/////////////////Ent//////////////////// <--- Credits goto _Charm Willow raper
Function CharmEnt(ex, ey: Integer): Boolean;
Var
Xe, Ye: Integer;
Begin

Status('FindEnt');

If(FindColorSpiralTolerance(Xe, Ye, 5535856, ex - 20, ey - 20, ex + 20, ey + 20, 12))then
Begin
MMouse(Xe, Ye, 5, 5);
Wait(100+Random(50));
End else
Begin
Exit;
End

If(IsUpTextMulti('hop down Will', 'down Willow', 'own Wil')) or (IsUpTextMulti('illow', 'low', 'Will'))then
Begin
If(FindColorSpiralTolerance(Xe, Ye, 383705, 1, 1, 180, 39, 20))or
(FindColorSpiralTolerance(Xe, Ye, 65535, 1, 1, 200, 40, 20))or
(FindColorTolerance(Xe, Ye, 55769, 85, 15, 115, 15, 20))then
Begin
EntsAvoided:= EntsAvoided + 1;
Result:= True;
End else
Result:= False;
Exit;

End

End;

//////////////////Progress Report////////////////////
Procedure ProgressReport;
Begin
SRLRandomsReport;
ClearDebug;
WriteLn('[>-----------------------Rayz Report-----------------------<]')
WriteLn('[>Script Time: ' + (TimeRunning) + '')
WriteLn('[>Logs Chopped: ' + IntToStr (Totallogs) + '')
WriteLn('[>XP Gained: ' + IntToStr (TotalXP) + '')
WriteLn('[>----------------------------------------------------------<]')
end;

/////////////////Progress///////////////////
Procedure Progress;
begin
StartXP := GetXp('Woodcutting')
EndXP := GetXp('Woodcutting')
TotalXP := (EndXP - StartXP) + (TotalXP)
ProgressReport;
end;

//////////////////MainLoop////////////////////// Credits To Fugate
begin
SetupSrl;
DeclarePlayers;
Totallogs:= 0;
If (Not(LoggedIn)) then LoginPlayer;
FindAxeHeadColor;
repeat
If (Not(LoggedIn)) then LoginPlayer;
ProgressReport;
Progress;
FindTree;
Dropage;
loginplayer;
until(false)
end.

JAD

2007-04-21 13:45:48

Change the FindColor to FindColorTolerance, and then, after the coords box put a ,5 or whatever you think the tolerance should be. I like a tolerance of 3-5, around there should be good. You REALLY need that though for this script to function properly.

sp33dy36

2007-04-23 14:44:17

yea there u go i downloaded it and it did work great but i changed it to what u said jad thanks im still new to scripting but im getting help and nice job on script

sp33dy36

2007-04-23 14:45:21

good job dude i like it but what jad says helps opps srry for repost

Stake

2007-05-03 06:18:03

Nice script. :]

@sp33dy36: Don't double post. :)

Gobslayer24

2007-05-24 18:29:21

Include file C:\Program Files\SCAR 2.03\includes\SRL\SRL.SCAR does not exist.
Include file C:\Program Files\SCAR 2.03\includes\SRL\SRL\Skill\Woodcutting.SCAR does not exist.
Failed when compiling

what does that mean? pm me or post on here plz.

The devil

2007-05-25 23:01:26

Ummm nice script.

evilwalrus

2007-05-29 11:26:34

ty ill post proggres up soon

SmAcKmE

2007-05-29 19:22:22

not thw best…… use obj and you say this is a power chopper

Smartzkid

2007-05-29 19:44:09

This could turn into a pretty nice script with a bit of time

My recommendation is to use FindEnt(x,y) before you click on the tree

As (if) this script progresses, I may have more suggestions for you

kikz0rz

2007-06-01 08:47:47

nice script :)

i hacked 2 loads, and im guna run it over night tonight.

btw proggress report didnt work :/ it sayd>>

[>———————–Rayz Report———————–<]
[>Script Time: 16 Minutes and 36 Seconds
[>Logs Chopped: 0
[>XP Gained: 0
[>———————————————————-<]


ent finder doesnt work :S? axe finder doesnt work either

randomchaos

2007-06-02 23:05:51

i keep getting this error:

[Runtime Error] : Exception: Access violation at address 00651174 in module 'scar.exe'. Read of address 00000034 in line 315 in script C:\Program Files\SCAR 2.03\includes\srl\srl\core\Text.scar

anyone know how to fix it?