SRL Archive - RS3 Outdated / Broken Scripts

The Termite by Whatsthat


whatsthat

2007-11-27 19:52:58

Welcome to my thread, and the new powercutter "The Termite"


THANK YOU!!!:D :D :D

POST PROGGIES, DON'T LEECH, ASK FOR PERMISSION TO BORROW (script stuff)

Yeah I already had the character that's in the script jacked, so don't even bother…

Newest Version (V1.0) uploaded, test please!!!

whatsthat

2007-11-27 22:21:02

noone can help me :(

xiitteri

2007-11-28 16:13:04

What is this?

TurtleVVisperer

2007-11-28 16:36:00

Ok, line 15 needs a semicolon, after that I get an error on line 107 saying "Unknown identifier 'RotateEvery' in script." I tried changing it around and even replaced the entire procedure with another person's antiban and I couldn't fix it. I don't know much at all though. I hope you get it running, I'd love to test it. It looks good.

I hope someone with some experience comes along to help.

gerauchert

2007-11-28 16:43:55

 // BY WHATSTHAT
// THIS IS MEH FIRST SCRIPT
// THANK YOU FOR TRYING IT FOR ME :D


program New;
{.include SRL/SRL.scar}

var Loads: Integer;

const
LoadsPerPlayer = 25; //This is how many loads each character will do.
TreeColor = 0; //Use the color picker to fill in a tree color.
WaitPerTree = 5000;
AxeEquiped = False; // <--- NEEDED SEMI COLON THERE

procedure DeclarePlayers;
begin
NumberOfPlayers(4);
CurrentPlayer := 0;

Players[0].Name := ''; //Your character's name.
Players[0].Pass := ''; //Your character's password.
Players[0].Nick := ''; //Your character's nickname, should be 2-3 letters.
Players[0].Active := True; //Is this characting going to be active?

Players[1].Name := '';
Players[1].Pass := '';
Players[1].Nick := '';
Players[1].Active := False;

Players[2].Name := '';
Players[2].Pass := '';
Players[2].Nick := '';
Players[2].Active := False;

Players[2].Name := '';
Players[2].Pass := '';
Players[2].Nick := '';
Players[2].Active := False;
end;

procedure ChopTree;
var
x, y, MyMark : integer;
begin
if not Loggedin then Exit;
MarkTime(MyMark);
repeat
if FindObj(x, y, 'hop', TreeColor, 30) then
begin
Mouse(x, y, 0, 0, False);
if ChooseOption('hop') then
begin
Exit;
end;
end;
if TimeFromMark(MyMark) > (2 * 60 * 100) then
begin
Logout;
Exit;
end;
until false
end;

function FindFastRandoms: Boolean; // WT-Fakawi
var
i: Integer;
begin
for i:=1 to 10 do
begin
case I of
1: if FindDead then
Result := True;
2: if FindMod then
Result := True;
3: if FindMime then
Result := True;
4: if FindMaze then
Result := True;
5: if FindQuiz then
Result := True;
6: if FindDemon then
Result := True;
7: begin
if NoGameTab then
begin
Result := True;
Players[CurrentPlayer].loc := 'No GameTab';
Logout;
Exit;
end;
end;
8: if FindTalk then Result:= True;
end;
wait(1);
end;
end;

procedure Antiban;
var
DBanMe : Integer;
begin
DBanMe:= Random(20); // <--- CHANGED THAT TO A HIGHER NUMBER SO IT DOESNT LOOK SO OFTEN
case DbanMe of
1:HoverSkill('random', False);
3:GameTab(2 + Random(10)); //<<< TOOK OUT ROTATEEVERY CUZ IT DOESNT EXIST ANYMORE
4:MMouse(Random(MSY1), Random(MSX1), 0, 0);
end; // <--- NEEDED TO END YOUR CASE STATEMENT
end;

procedure AntiRandoms;
Begin // YOU ONLY NEED FINDNORMALRANDOMS HERE!
FindMod;
FindNormalRandoms;
FindTalk;
FindMime;
FindMaze;
DwarfItem;
FindDemon;
Solvepinball;
FindLamp(Players[CurrentPlayer].Skill);
UseBoxSolver := True
UseCerterSolver := True
UseSandwichSolver :=True
end;

function UberEnt: Boolean; //by Nashi, Edited By HyperSecret
var
x, y:integer;
begin
if (FindColorTolerance(x, y, 383705, 9, 9, 233, 24, 20)) or
(FindColorTolerance(x, y, 65535, 9, 9, 233, 24, 20)) then
begin
GetMousePos(x, y);
Mouse(x, y, 5, 5, False);
if (FindText(x, y, 'Chop down', upchars, x - 50, y - 50, x + 100, y + 50)) then
begin
if (FindColor(x, y, 65535, x + 70, y, x + 100, y + 10)) then
begin
Mouse(MMCX, MMCY, 5, 5, True);
Writeln('Found ent. Waiting for ent to go away.');
Result := True;
EntsAvoided := EntsAvoided + 1;
end;
end;
end;
end;
// GOT RID OF SOLVE CHAT RANDOM 2....YOU ONLY NEED FINDNORMALRANDOMS NOW //


procedure Proggy;
begin
ClearDebug;
Writeln('[]========================================[]');
Writeln('---------------->Termite by Whatsthat<----------------');
Writeln(' did ' + IntToStr(Loads) + ' Loads' + ' ');
Writeln('---------------------------------------------');
Writeln('[]========================================[]');
end;

begin
SetupSRL;
Disguise('Termite');
Writeln('Starting up the termite, thank you for using!')
DeclarePlayers;
if Loggedin then Logout;
LoginPlayer;

repeat
ChopTree;
if InvFull then
begin
DropToPosition(2, 28)
Inc(Players[CurrentPlayer].Banked);
if Players[CurrentPlayer].Banked mod LoadsPerPlayer = 0 then
begin
NextPlayer(True);
end;
end;
if not Loggedin then NextPlayer(False);
until false
end.

Ok i fixed your stuff lol :D explanations are next to the areas that i fixed. A suggestion of mine would be to learn proper standards. Hit up the tut island section if you dont know about them. Other than that looks like a good first script. Keep testing it and working out the things that will go wrong until you have an ownage script! Keep it up!

[S]paz

2007-11-28 16:46:29

ok i dont have mcuh time so i only made it compile right…

// BY WHATSTHAT
// THIS IS MEH FIRST SCRIPT
// THANK YOU FOR TRYING IT FOR ME :D


program New;
{.include SRL/SRL.scar}

var Loads: Integer;

const
LoadsPerPlayer = 25; //This is how many loads each character will do.
TreeColor = 0; //Use the color picker to fill in a tree color.
WaitPerTree = 5000;
AxeEquiped = False; //<----- needed a ; after false...

procedure DeclarePlayers;
begin
NumberOfPlayers(4);
CurrentPlayer := 0;

Players[0].Name := ''; //Your character's name.
Players[0].Pass := ''; //Your character's password.
Players[0].Nick := ''; //Your character's nickname, should be 2-3 letters.
Players[0].Active := True; //Is this characting going to be active?

Players[1].Name := '';
Players[1].Pass := '';
Players[1].Nick := '';
Players[1].Active := False;

Players[2].Name := '';
Players[2].Pass := '';
Players[2].Nick := '';
Players[2].Active := False;

Players[2].Name := '';
Players[2].Pass := '';
Players[2].Nick := '';
Players[2].Active := False;
end;

procedure ChopTree;
var
x, y, MyMark : integer;
begin
if not Loggedin then Exit;
MarkTime(MyMark);
repeat
if FindObj(x, y, 'hop', TreeColor, 30) then
begin
Mouse(x, y, 0, 0, False);
if ChooseOption('hop') then
begin
Exit;
end;
end;
if TimeFromMark(MyMark) > (2 * 60 * 100) then
begin
Logout;
Exit;
end;
until false
end;

function FindFastRandoms: Boolean; // WT-Fakawi
var
i: Integer;
begin
for i:=1 to 10 do
begin
case I of
1: if FindDead then
Result := True;
2: if FindMod then
Result := True;
3: if FindMime then
Result := True;
4: if FindMaze then
Result := True;
5: if FindQuiz then
Result := True;
6: if FindDemon then
Result := True;
7: begin
if NoGameTab then
begin
Result := True;
Players[CurrentPlayer].loc := 'No GameTab';
Logout;
Exit;
end;
end;
8: if FindTalk then Result:= True;
end;
wait(1);
end;
end;

procedure Antiban;// took out the rotate but i can always get u some.. be creative and hover some lvls or w/e.... boredhuman is a good one
var
DBanMe : Integer;
begin
DBanMe:= Random(3);
case DbanMe of
1:HoverSkill('random', False);
2:GameTab(2 + Random(10));
3:MMouse(Random(MSY1), Random(MSX1), 0, 0);
end;
end;

procedure AntiRandoms;
Begin
FindMod;
FindNormalRandoms;
FindTalk;
FindMime;
FindMaze;
DwarfItem;
FindDemon;
Solvepinball;
FindLamp(Players[CurrentPlayer].Skill);
UseBoxSolver := True
UseCerterSolver := True
UseSandwichSolver :=True
end;

function UberEnt: Boolean; //by Nashi, Edited By HyperSecret
var
x, y:integer;
begin
if (FindColorTolerance(x, y, 383705, 9, 9, 233, 24, 20)) or
(FindColorTolerance(x, y, 65535, 9, 9, 233, 24, 20)) then
begin
GetMousePos(x, y);
Mouse(x, y, 5, 5, False);
if (FindText(x, y, 'Chop down', upchars, x - 50, y - 50, x + 100, y + 50)) then
begin
if (FindColor(x, y, 65535, x + 70, y, x + 100, y + 10)) then
begin
Mouse(MMCX, MMCY, 5, 5, True);
Writeln('Found ent. Waiting for ent to go away.');
Result := True;
EntsAvoided := EntsAvoided + 1;
end;
end;
end;
end;

function SolveChatRandom2: Boolean;// is this needed cos of findfastrandoms???
var
Event: string;
begin
if (not SolveChatRandoms) or (not AreTalking) then
Exit;
Event := GetNPCEvent;

case Capitalize(Event) of
'Unknown': Exit;
'Pious Pete': // Candle Lighting
begin
Writeln(Players[CurrentPlayer].Name + ': Stupid Pete =(');
Logout;
LoginPlayer
Result := True;
Exit;
end;
'Mysterious Old Man': // Maze + Pinball
begin
if ((GetColor(83, 431) = 0) and (GetColor(88, 418) = 0)) or
((GetColor(83, 430) = 0) and (GetColor(88, 417) = 0)) or
((GetColor(151, 426) = 0) and (GetColor(470, 393) = 0) and
(GetColor(372, 370) = 128)) then
begin
SolvePinball;
end
Exit;
end;
'Quiz Master': FindQuiz; // Quiz Master
'Prison Pete': // ScapeRune balloons
begin
Inc(ScapeRunes);
Writeln(Players[CurrentPlayer].Name + ': Yay Balloon Animals!');
Logout;
LoginPlayer
Result := True;
Exit;
end;
'Sergeant Damien': FindDemon; // Camo
'Leo The Gravedigger': // Zombie
begin
Writeln(Players[CurrentPlayer].Name + ': I Don' + chr(39) + 't Want To Dig Any Graves! ');
Logout;
LoginPlayer
Result := True;
Exit;
end;
'Evil Bob': // ScapeRune island
begin
Inc(ScapeRunes);
Writeln(Players[CurrentPlayer].Name + ': An Evil Cat? What is the World Coming To?!');
Logout;
LoginPlayer
Result := True;
Exit;
end;
'Freaky Forester': // Lederhosen
begin
Writeln(Players[CurrentPlayer].Name + ': Since When Do Birds Have More Than One Tail...');
Logout;
LoginPlayer
Result := True;
Exit;
end;
'Mr Mordaut': // Surprise Exam
begin
Writeln(Players[CurrentPlayer].Name + ': School? NO WAY!');
Logout;
LoginPlayer
Result := True;
Exit;
end;
end;
end;

procedure Proggy;
begin
ClearDebug;
Writeln('[]========================================[]');
Writeln('---------------->Termite by Whatsthat<----------------');
Writeln(' did ' + IntToStr(Loads) + ' Loads' + ' ');
Writeln('---------------------------------------------');
Writeln('[]========================================[]');
end;

begin
SetupSRL;
Disguise('Termite');
Writeln('Starting up the termite, thank you for using!')
DeclarePlayers;
if Loggedin then Logout;
LoginPlayer;

repeat
ChopTree;
if InvFull then
begin
DropToPosition(2, 28)
Inc(Players[CurrentPlayer].Banked);
if Players[CurrentPlayer].Banked mod LoadsPerPlayer = 0 then
begin
NextPlayer(True);
end;
end;
if not Loggedin then NextPlayer(False);
until false
end.

otherwise is good… but there are no failsafes

if FindObj(x, y, 'hop', TreeColor, 30) then
wat about if it can find the tree…

if not (FindObj(x, y, 'hop', TreeColor, 30)) then
break;// for example...

good start keep it up

spaz


EDIT… oh thx gerauchet… lol beat me to it….. :P

TurtleVVisperer

2007-11-28 17:27:51

Tried both of those guy's revisions and it'll log in and Find the Compass but will just stand there.
I'm using a VM so I can't see what the mouse is doing. I'll try it on my normal computer in a little while to see what it's doing for me.

[S]paz

2007-11-28 17:29:45

make sure ur near ur tree and set the color right… if u have to u canbt remember… and as i said i didn't have much time so i dont know it it actually works.. i jst made it compile,…

spaz

whatsthat

2007-11-28 22:17:26

omg, omg thank you guys so much, i will improve this and hopefully turn it into a great banker

i will add failsafes, gotta check that crap out, time to move on to FFA scripts and the intermediate tut island!!!

whatsthat

2007-11-29 21:17:56

updated, thanks for help mastas

rune_h4ck3r

2007-11-30 02:46:42

Not bad for a first script ;)

Good job. I will try it out and post proggies.:)

whatsthat

2007-11-30 07:17:09

aight thanks for taking my character, still wanna post proggy?

whatsthat

2007-12-01 16:58:18

ok, im probably gonna add dtms in here by the end of next week

distress

2007-12-03 12:34:32

Pretty much errors, easily fixed, keep up the good work!
btw, the ent avoider doesn't work for me.

griff11

2007-12-03 17:04:39

cool

whatsthat

2007-12-03 22:27:49

From: distress
Pretty much errors, easily fixed, keep up the good work!
btw, the ent avoider doesn't work for me.


i dont get any errors, but yeah ent finder doesnt work really well, update comes out soon so keep your eyes peeled though

ryuraito

2007-12-04 15:40:36

didnt find any errors, nice name btw its ferny xD

altec

2007-12-04 16:24:56

ok seetting it on, tested it works, ill post proogy soon :D

d3vdowg

2007-12-05 09:45:08

pretty nice for your frist one

whatsthat

2007-12-06 20:22:21

thanks guys, update comes soon, still working on it though

Pierre14

2007-12-06 20:45:44

Nice script as it is your first!
but one suggestion add auto color it make it more easy! Keep it up.:D

xxshadow9xx

2007-12-07 01:42:53

Thanks, Good Job!

whatsthat

2007-12-07 19:35:51

thanks for the suggestion

UnseenWiz

2007-12-07 23:51:29

:f: Woot It Works:f:

Autiep03

2007-12-08 16:08:23

Quite nice for a first script

Well done, work hard on the updates;)

whatsthat

2007-12-10 00:47:36

lol, update is taking longer than i thought, its coming though

afroman

2007-12-10 04:01:54

Wow, this is your first script? Very well done. I look forward to your future work. :)

joshuaman76

2007-12-10 20:11:55

mmkay is this a good script or not im confused…

ancheryay

2007-12-11 12:49:42

Lovvve it :D:D:D:D

whatsthat

2007-12-12 23:26:29

lol test and find out

OwnedPl0x?!?!

2007-12-13 07:40:57

nice script although i do see some similar code from a TuT >_<

btw i found these errors:
 if FindObj(x, y, 'hop', TreeColor, 30) then
begin
Mouse(x, y, 0, 0, False);
if ChooseOption('hop') then
begin
Exit;
end;

Your missing the Wait(WaitPerTree); wich was called but not used :D

 if FindObj(x, y, 'hop', TreeColor, 30) then
begin
Mouse(x, y, 0, 0, False);
if ChooseOption('hop') then
begin
Wait(WaitPerTree);
Exit;
end;

Second… When looking @ the main loop, you forgot to put the proggy pocedure in it >_<

overall a great script :)

whatsthat

2007-12-13 15:42:11

thanks man, yeah im trying to work out all that tut stuff

noob-2

2007-12-13 20:22:38

this made my lol rl rofl reading the heading, sounds cool

proof

2007-12-24 01:11:18

I'm using it and it works good. Just needs AntiRandoms. And concentrate on one tree at a time.

DarkAges33

2007-12-25 21:06:27

nicee

MasterSparta

2007-12-26 00:31:06

It works very well. Thanks for your contribution to my leveling!!!

Autiep03

2008-01-19 14:11:40

Good first script. I did the things that were mentioned above and it worked.

MylesMadness

2008-01-19 14:32:56

I want to know why whatsthat is already a lesser demon…

Ivo09

2008-01-19 20:42:16

nice script but try to get it fixed b4 you post next time. Very nice script though.

lilpiggy

2008-01-19 21:11:00

it worked for me, but only when those guys fixed it :p

P3rs0nal1ty

2008-01-26 13:45:46

i got it to work but the color kinda messes it up becus, my guys wc isnt high enough for oaks. and almost all the trees are same color… and it trys to cut oaks…

whatsthat

2008-02-05 13:22:16

do you guys think i should update this script?

silentkillerjoe

2008-02-13 15:55:39

will u ever make it bank?

KoodiHirmu

2008-02-28 11:40:15

Wont work for me :(

avalance

2008-02-28 16:13:18

Plz update to 3.14 i'm tired of trying out old version scripts for scar's and slr.

Iamk

2008-02-28 19:01:37

I tried it our as you requested and it gave me this error:

Line 94: [Error] (12673:8): Unknown identifier 'FindMime' in script C:\Program Files\SCAR 3.14\Scripts\TermiteV1.0.scar

Outdated?

shrubie1

2008-03-01 04:57:41

good script

pieman24

2008-03-01 06:41:36

pretty good. waaaaaaaaaaaaaaaaaaay better than i can do. curse me and my disunderstanding of scripting :(

vnb

2008-04-04 16:50:37

Line 94: [Error] (12673:8): Unknown identifier 'FindMime' in script

Whines this,probably all of the events.

Mickskillet

2008-04-06 02:57:11

whats it supposed to do??

EvilChicken!

2008-04-06 03:32:44

11-27-2007, 09:52 PM

Anyone, close this for gods sake!

kevin_cook2oo7

2008-05-15 16:47:35

decent for a first script, ;).

Laur€ns

2008-05-19 14:30:09

It won't compile, something with Rotate =/

kingmyth

2008-05-21 21:56:24

I think ill try this one overnight tonight.

y0m0mma0123

2008-05-28 17:36:43

what is the new update going to consist of

King of the Nites

2008-05-28 19:10:24

From: kingmyth
I think ill try this one overnight tonight.


The script is outdated… So I don't think you will be running it overnight;)

From: y0m0mma0123
what is the new update going to consist of


Have you noticed that he isn't active anymore and he asked people if he should update it like 3 months ago, and I'm guessing he's not.

Can someone please close this so it doesn't keep getting bumped up?

kolnel

2008-05-30 05:51:29

Let s test it ^^

destige

2008-06-06 08:42:34

testing ur script..

blade12

2008-06-09 21:08:37

nice woodcutter.

fPsnx

2008-06-10 10:27:18

Works good so far

Hobbit

2008-06-10 11:05:30

It doesn't work anymore….

Closed.