SRL Archive - First Scripts

Warriors Guild Token Bot


Yanhua

2011-12-17 20:11:47

What this does: Plays the "Shot-put" Minigame inside Warriors guild for tokens.

Instructions: Start ON THE TILE NEXT TO shot-put. Can be either 18lb ones or 22lb ones.

Updated: 19/12/2011


program WarriorGuildTokens;

{$DEFINE SMART}
{$i SRL\SRL.scar}
// INSTRUCTIONS: FILL YOUR USERNAME AND PASSWORD INSIDE THE '' and ''.

Const
NumbOfPlayers = 1; //How many players are you using
StartPlayer = 0; //Player to start auoting with! (0 means first char)
BreakEvery = 0; //How many loads to take a break after.
BreakFor = 0; //How many minutes to break for
Version = '1..0';

procedure DeclarePlayers;
var i:integer;
begin
NumberOfPlayers(NumbOfPlayers);
CurrentPlayer := StartPlayer;
for i := 0 to NumbOfPlayers-1 do
Players[i].BoxRewards := ['mote', 'ostume', 'XP', 'Gem', 'ithril', 'oal', 'une', 'oins'];

with Players[0] do
begin
Name := ''; //Player username.
Pass := ''; //Player password.
Active := True;
end;

end;

Procedure Throw;
Var
ShotputDTM, A, B, X, Y:Integer;
aFound:Extended;
Begin
A := (255+Random(3));
B := (446+Random(3));

ShotPutDTM := DTMFromString('mbQAAAHicY2VgYHBhYWAwB+JAIPYGYkcgZmBkYPgCpPiB9G8gzQakXRwdGTzd3BjsbWzAGMTGBhixYDAAAAEMB1w=');

If FindDTMRotated(ShotputDTM, X, Y, MSX1, MSY1, MSX2, MSY2, -Pi/2, Pi/2, Pi/30, aFound) Then
Begin
MMouse(X, Y, 3, 3);
If (IsUpText('lb sho')) Then
Begin
Wait(200+random(100));
Wait(100+random(50));
Mouse(X, Y, 0, 0 ,True);
Wait(3000+Random(1500));
writeln('Interface is up. Selecting Option 3 "Spin and Throw"');
MMouse(A, B, 0, 0);
Wait(500+random(200));
Mouse(A, B, 3, 3, True);
Wait(8000+Random(3500));
FreeDTM(ShotputDTM);
end;
end;
end;





begin
SetupSRL;
ActivateClient;
DeclarePlayers;
If Not LoggedIn Then
LogInPlayer;
Wait(1500+Random(200));
SetAngle(True);
Wait(500+Random(200));
MakeCompass('e');
Wait(500+Random(300));
repeat
Throw;
until(false);

end.

awesomem8

2011-12-18 00:24:11

Really great script! testing it right now and seems to be running perfectly! <3

Yanhua

2011-12-18 00:28:39

From: awesomem8
Really great script! testing it right now and seems to be running perfectly! <3


Thanks :) Really appreciate it.

Make sure to post here if you find any bugs or glitches, I'll fix them.

Enjoy your tokens :D

awesomem8

2011-12-18 01:37:20

Okay found 1 bug/problem. the script stops working if someone else is doing the activity on the same spot as you (under you).

Yanhua

2011-12-18 01:41:29

From: awesomem8
Okay found 1 bug/problem. the script stops working if someone else is doing the activity on the same spot as you (under you).


What happens? Does the script just stop?

Or does the mouse mis-click the shot put?

awesomem8

2011-12-18 02:04:29

it just puts the mouse over the pile of rock thingies and doesnt click or do anything further.

i think it also spammed "interface is up pressing option 3"

Yanhua

2011-12-18 02:24:35

From: awesomem8
it just puts the mouse over the pile of rock thingies and doesnt click or do anything further.

i think it also spammed "interface is up pressing option 3"


Updated the script with a probable fix.

Tell me if it works now please. :)

awesomem8

2011-12-18 02:57:11

sorry unsure if update god rid of the problem

Yanhua

2011-12-18 03:52:14

From: awesomem8
sorry unsure if update god rid of the problem


You're unsure?

Is it still happening?

LemonHaze

2011-12-18 04:55:34

what can you do with the tokens? i'll try it now :)

Yanhua

2011-12-18 05:40:44

From: lordvolt
what can you do with the tokens? i'll try it now :)


You need tokens to kill the NPC for defenders.

awesomem8

2011-12-18 15:26:26

well i saw someone doing the 18lb shotput while i was doing the 22lb one so i paused my bot and stood on same spot as him and then unpaused the bot and it worked fine.

But then i moved back to the 22lb one and the guy came over and stood on my spot and then the bot stopped and kept moving the mouse all over the pile of shotputs without clicking ever?

Maybe it is fixed only for the 18lb one idk?

awesomem8

2011-12-18 17:32:53

k figured out the actual problem: it puts the mouse over the colored item too far to the left so that it says "walk here" instead of "throw" option. this happens only after a long time. (might be caused by screen moving somehow?)

ive gotten 30k tokens so far btw :)

thanks for the pro script.

edit: i managed to fix the problem by turning the screen to a weird angle.

Yanhua

2011-12-18 17:46:01

From: awesomem8
k figured out the actual problem: it puts the mouse over the colored item too far to the left so that it says "walk here" instead of "throw" option. this happens only after a long time. (might be caused by screen moving somehow?)

ive gotten 30k tokens so far btw :)

thanks for the pro script.

edit: i managed to fix the problem by turning the screen to a weird angle.


Glad the script worked for you.

Sorry, I didn't really think of the the screen moving itself. Will give it a fix soon so it becomes flawless.

eXoTiK

2011-12-18 17:59:03

This will get you banned within a month. It clicks the same exact coordinates every single time. Learn to randomize.

Yanhua

2011-12-18 18:01:43

From: eXoTiK
This will get you banned within a month. It clicks the same exact coordinates every single time. Learn to randomize.


It is randomized within

MMouse(X, Y, 3, 3);

So no, you will not be detected.

eXoTiK

2011-12-18 18:10:08

I was referring to:


Mouse(X, Y, 0, 0, True);
MMouse(A, B, 0, 0);

Also, you heavily rely on exact points and then randomize them by up to 3 by 3 pixels. Randomization should be RANDOM, not input. Same goes for your x and y coordinates (x,y,a,b). You also should be checking for a DTM or BMP or even possibly an array of colors, not waiting for x amount of time and then trying an action.

Yanhua

2011-12-18 18:19:54

From: eXoTiK
I was referring to:


Mouse(X, Y, 0, 0, True);
MMouse(A, B, 0, 0);

Also, you heavily rely on exact points and then randomize them by up to 3 by 3 pixels. Randomization should be RANDOM, not input. Same goes for your x and y coordinates (x,y,a,b). You also should be checking for a DTM or BMP or even possibly an array of colors, not waiting for x amount of time and then trying an action.

I wrote that script in about 5 minutes.

As stated in a few posts back I will work on an update to locate the shot put better.

Such as FindOdj, FindBitMap, FindDTM.

Await a new release soon. :)

eXoTiK

2011-12-18 18:27:24

Oh I won't be using this. I was just critiquing your script.

Yanhua

2011-12-18 19:03:51

Alright, I've released a new version.

This update should fix it clicking the wrong thing if you move the camera slightly :)

Copy & paste the script from OP.

awesomem8

2011-12-18 20:07:22

this script is amazing for being created in such a short period of time and i greatly appreciate you for writing it.

edit: Im sure many leechers are using this and not even saying thank you.

fearlesskiller

2011-12-18 20:39:39

Uhm, is this used for str xp ?

awesomem8

2011-12-18 21:11:50

^
it gives very little strength xp, its primarily to get tokens in order to get defenders.


Thank you so much Yanhua

Yanhua

2011-12-18 21:17:48

From: awesomem8
^
it gives very little strength xp, its primarily to get tokens in order to get defenders.


Thank you so much Yanhua


Thanks for that awesomem8!

Really appreciate it when people acknowledge what I have done.
Good luck on the defenders! You'll have plenty of time in the room. :D

awesomem8

2011-12-19 01:01:44


Maxed tokens - It wont let you get more.

Yanhua

2011-12-19 01:05:35

From: awesomem8

Maxed tokens - It wont let you get more.


Excellent :)

That would be plenty to get a dragon defender!

Spelletje

2011-12-21 10:10:01

Will be me again.

It logs in, moves the cam and after that just stand there doing absolutly nothing

ok after copying it again and again, starting it again and again after the 8th time or so it started working


But not for long, stopped several times

naveenbeast

2012-02-04 11:52:35

Hey bro could you like update the script? I am getting SetAngle(True) Error while compiling… I have tried to fix it and I did get SMART up and running but then the script does not do anything :( Help me out please? :D

we r rangerz

2012-02-12 15:46:44

oh lord guys im geting horny :D just looknig at this :S

lays

2012-02-25 05:40:10

i guess the script is outdated ?

awesomem8

2012-06-13 14:14:27

i cant figure out how to update the dtm :(

kingsleyeng

2012-06-20 01:32:03

is it outdated or is there an anti leech?

(s)okkr7

2012-06-20 01:36:39

Could you guys look at the original post date? Wow..

Based Lord

2012-06-20 02:00:46

You guys can check out mine if you have enough combat level :)