SRL Archive - Archive

dewrange - SRL Member Application


dewrange

2013-04-04 10:27:43

How Long have You Played Runescape?
9 Year(s)


Are you affilated in anyway with Jagex LTD?
no

Were you Referred to SRL?



What is your general programming knowledge?
I generally only know pascal, everything I know, I learned from these forums


Are you a member of any other communities?
no


Tell us about yourself…
From: dewrange
I wrestled my entire life, and have played runescape for more than half of my life. I cam to this community years ago and never took part in it. Quite frankly i was intimidated by it. One day I sat down and decided i was going to learn how to code because quite frankly everyone in this community makes it quite obvious that it is about learning not botting. I have learned much and still have much to learn. I have created a few scripts for my personal use but have only released one public. I enjoy the game of runescape and I enjoy coding. The challenge that comes from coding is actually just as exciting as it is frustrating to me. I am interested in sticking with this community for years to come as i plan on expanding my coding/scripting abilities much farther than i have already expanded.



Please show us one (or multiple) of your scripts.
program DaoudFlaxSpinner;


{$DEFINE SMART8}
{$i srl-osr/srl.simba}

var
x: integer;
y: integer;
bowstring: integer;
flaxspun: integer;

const
flaxtospin = 101;



procedure DeclarePlayers();
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Nick := '';
Name := '';
Pass := '';
Active := true;
Integers[0] := 0;
end;
end;

procedure ifbanknotopen;
begin
if invempty
then begin
if findobjcustom(x, y, ['Bank', 'booth', 'ooth'], [9672856, 586609], 5)
then begin
mmouse(x, y, 2, 2);
sleep(300);
if waituptextmulti(['Bank', 'booth', 'ooth'], 300)
then begin
clickmouse2(mouse_left);
repeat
wait(3000);
if findobjcustom(x, y, ['Bank', 'booth', 'ooth'], [9672856, 586609], 5)
then begin
mmouse(x, y, 2, 2);
if waituptextmulti(['Bank', 'booth', 'ooth'], 300)
then begin
clickmouse2(mouse_left);
end;
end;

until bankscreen
end else
sleep(1);
end;
end;
end;




procedure withdrawflax;
begin
if bankscreen then
begin
if findcolorspiraltolerance (x, y, 12236376, 400, 57, 441, 85, 10)
then
MMouse(433, 78, 5, 5);
wait(300);
if IsUpTextMultiCustom(['lax', 'Flax', 'Fl', 'ax']) then
begin
clickmouse2(mouse_right);
wait(500);
ChooseOption('All');
sleep(1000);
if InvFull then
begin
SetAngle(SRL_ANGLE_HIGH);
makecompass('n');
mmouse(627, 136, 3, 3);
wait(200);
clickmouse2(mouse_left);
sleep(randomrange(5500, 6300));
end;
end;
end;
end;


procedure climbdownstairs;
begin
if (not(findcolorspiraltolerance(x, y, 5929348, 558, 212, 725, 457, 1)))
then begin
if findobjcustom(x, y, ['Stair', 'case', 'ase'], [604499, 4145992], 5)
then begin
mmouse(x, y, 2, 2);
if WaitUpTextMulti(['Stair', 'case', 'ase'], 300) then
begin
clickmouse2(mouse_left);
makecompass('e');
sleep(3000);
end;
end;
end;
end;

procedure clickspinwheel;
begin
if findcolorspiraltolerance(x, y, 942345, 620, 216, 721, 457, 10)
then begin
if findobjcustom(x, y, ['wheel', 'whe', 'eel', 'Spin', 'ning'], [13553364, 938614], 2)
then begin
repeat
if findobjcustom(x, y, ['wheel', 'whe', 'eel', 'Spin', 'ning'], [13553364, 938614], 2)
then
mmouse(x, y, 2, 2);
wait(100);
clickmouse2(mouse_left);
sleep(randomrange(4000, 5000));
until (findcolorspiraltolerance(x, y, 65024, 223, 120, 286, 160, 5))
repeat
sleep(1);
until (findcolorspiraltolerance(x, y, 65024, 223, 120, 286, 160, 5))
if findcolorspiraltolerance(x, y, 65024, 223, 120, 286, 160, 5)
then begin
mmouse(261, 110, 2, 2);
clickmouse2(mouse_right);
sleep(600);
chooseoption('Make X');
wait(500);
typesend('28');
repeat
sleep(1);
if findcolorspiraltolerance(x, y, 5526618, 69, 370, 95, 393, 5)
then begin
mmouse(271, 448, 2, 2);
wait(200);
clickmouse2(mouse_left);
sleep(500);
clickmouse2(mouse_left);
if findcolorspiraltolerance(x, y, 939130, 290, 176, 322, 194, 5)
then begin
mmouse(x, y, 2, 2);
wait(300);
if waituptextmulti(['Spin', 'eel', 'wheel'], 300)
then
wait(500);
clickmouse2(mouse_left);
sleep(500);
end;
if findcolorspiraltolerance(x, y, 65024, 223, 120, 286, 160, 5)
then
mmouse(261, 110, 1, 1);
clickmouse2(mouse_right);
sleep(300);
chooseoption('Make X');
wait(500);
typesend('28');
end else

sleep(1);

until (not(findcolorspiraltolerance(x, y, 942345, 620, 449, 721, 457, 10)));
if (not(findcolorspiraltolerance(x, y, 942345, 620, 449, 721, 457, 10)))
then begin
setangle(SRL_ANGLE_LOW);
makecompass('e');
wait(300);
mmouse(681, 118, 2, 2);
wait(300);
clickmouse2(mouse_left);
makecompass('n');
sleep(randomrange(4500, 5000));
end;
end;
end;
end;
end;

procedure climbupstairs;
begin
if findcolorspiraltolerance(x, y, 5929348, 682, 430, 725, 457, 1)
then begin
makecompass('n');
if findobjcustom(x, y, ['Stair', 'case', 'ase', 'tair'], [606817,5988193], 5)
then begin
mmouse(x, y, 2, 2);
wait(500);
if waituptextmulti(['Stair', 'case'], 300)
then begin
clickmouse2(mouse_left);
sleep(1000);
mmouse(248, 406, 1, 1);
wait(500);
clickmouse2(mouse_left);
wait(1500);
end;
end;
end;
end;

procedure walktobank;
begin
if findcolorspiraltolerance(x, y, 5929348, 682, 453, 723, 458, 1)
then begin
if findobjcustom(x, y, ['Bank', 'ank', 'ooth'], [973893, 5273484], 5)
then begin
mmouse(x, y, 2, 2);
wait(500);
if waituptextmulti(['Bank', 'ank', 'ooth'], 300)
then
clickmouse2(mouse_left);
sleep(6000);
end;
end;
end;

procedure depositbowstring;
begin
if bankscreen
then begin
deposit(1, 28, true);
end;
end;




begin
setupsrl;
Declareplayers;
repeat
//ifbanknotopen;
withdrawflax;
climbdownstairs;
clickspinwheel;
climbupstairs;
walktobank;
depositbowstring;
inc(flaxspun)
until((flaxspun * 28) >= (flaxtospin));
end.

//////////////////////////////////////////////////////////////////////////
program daoudscurser;

{$DEFINE SMART8}
{.include SRL/SRL.simba}

var
count: integer;
x: integer;
y: integer;
spell: integer;
confuse: integer;
curse: integer;
confusedtm: integer;
confusenothighlighted: integer;
cursedtm: integer;
cursenothighlighted: integer;
howmanycaststodo: integer;

procedure declarevariables;

begin
spell := curse;
howmanycaststodo := 3000;
end;


Procedure DeclarePlayers;
Begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Active := True;
End;




procedure doconfuse;

begin
confusenothighlighted := DTMFromString('mlwAAAHicY2dgYMhiYmDIA+ISIM4B4iQgToHid0D5Z0D8Hoh/QOkXQPwNiFeyvQWSjBgYJM6KVYYBpzgMQwEATHQM0w==');
if spell = confuse
then begin
if finddtm(confusenothighlighted, x, y, 0, 0, 736, 456)
then begin
mouse(x, y, 10, 10, mouse_left);
wait(randomrange(400, 1000));
freedtm(confusenothighlighted);
end;
end;
end;

procedure docurse;

begin
cursenothighlighted := DTMFromString('mlwAAAHicY2dgYJjLhMALgHgWEs3KyMDABMQcQMzGiMoXFedkCA9fj4IZGBjBGESyomFGIjAUAAAtMQpV');

if spell = curse
then begin
if finddtm(cursenothighlighted, x, y, 0,0, 736, 456)
then begin
mouse(x, y, 10, 10, mouse_left)
wait(randomrange(400, 550));
freedtm(cursenothighlighted);
end;
end;
end;

procedure clickguardconfuse;

begin
if spell = confuse
then begin
confusedtm := DTMFromString('mlwAAAHicdck7CoAwEEXRp2DcpmhpsHFV2ZeQyk+rzXgTJKRx4HBnmF7S3EoLVngMGDHh5L/hwoMDETeC22VmpVKTm3T5Ummiav/zzQvkbBjA');
if finddtm(confusedtm, x, y, 0, 0, 736, 456)
then begin
findcolorspiraltolerance(x, y, 857975, 14, 41, 408, 308, 5);
wait(500);
mouse(x, y, 2, 2, mouse_left);
wait(randomrange(600, 1000));
freedtm(confusedtm);
end;
end;
end;

procedure clickguardcurse;

begin
if spell = curse
then begin
cursedtm := DTMFromString('m1gAAAHic42JgYFjAxMAwG4jnAfFcIJ4IxFOZIOJLoeLTgJiNkYGBFYiZgJgDiHmA+C9Q/z8g5gKyBaA4PHw9g6g4J5gG4f///2PFzEB9QOVgGsamBCMAAEfzHtY=');
if finddtm(cursedtm, x, y, 0, 0, 736, 456)
then begin
findcolorspiraltolerance(x, y, 857975, 14, 41, 408, 308, 5);
wait(randomrange(400, 600));
mouse(x, y, 2, 2, mouse_left);
wait(randomrange(400, 550));
freedtm(cursedtm);
end;
end;
end;




procedure mainloop;
begin
declarevariables;
DeclarePlayers;
//doconfuse;
//clickguardconfuse;
docurse;
clickguardcurse;
wait(randomrange(75, 100));
inc(count);
end;


begin
setupsrl;
repeat(mainloop)
until (count = howmanycaststodo);
end.

Ian

2013-04-04 10:55:10

Standards are a bit odd for example the
end;
end;
end;


Also

 repeat
sleep(1);
until (findcolorspiraltolerance(x, y, 65024, 223, 120, 286, 160, 5))

looks like a potential infinite loop, although it's hard to be sure how much of a problem it would be because you didn't comment what it was looking for at that spot.

Also, I don't think you meet two of the "pre-requisites" to the application, as outlined in Daniel's Guide to SRL Members:


From: Daniel

Submitting Your Application:
First of all, do you meet the following requirements?
  • I am nice and helpful around the forums?
  • I have got to know many people from the community?


Try to get your activity up, improve your script, and try more advanced object finding methods than FindColorSpiralTolerance and FindObjCustom. Maybe give TPAs and ATPAs a try :)

dewrange

2013-04-04 11:07:22

From: BMWxi
Standards are a bit odd for example the
end;
end;
end;


Also

 repeat
sleep(1);
until (findcolorspiraltolerance(x, y, 65024, 223, 120, 286, 160, 5))

looks like a potential infinite loop, although it's hard to be sure how much of a problem it would be because you didn't comment what it was looking for at that spot.

Also, I don't think you meet two of the "pre-requisites" to the application, as outlined in Daniel's Guide to SRL Members:




Try to get your activity up, improve your script, and try more advanced object finding methods than FindColorSpiralTolerance and FindObjCustom. Maybe give TPAs and ATPAs a try :)


thank you very much for the feedback! i understand where you are coming from.

Justin

2013-04-04 11:39:59

Activity is too low for my liking, sorry, best of luck though!

[XoL]

2013-04-04 14:05:32

Your activity is low! like others have said, but work on that and your script and you are a shoe in!

dewrange

2013-04-04 14:34:32

okay i get it now, it isn't just about scripting, you guys want to see activity on the forums. i will work on that over the next month and reapply!

Vinyl Scratch

2013-04-04 19:40:29

I'm glad you understand the activity part of it, but it helps to have scripting ability, too! :p

So, here's some stuff you might want to try:

-Don't declare x, and y globally, because it's a big nono in SRL members.
-You really need to have good standards, so that we can read your script well, and judge accordingly.
-Custom object/monster finding is a great way to get in, and combat scripts are harder to script, so I'd try that if I were you.
-Randomization is a must (+/- on x and y, so that it doesn't click staticly.
-Good antiban is a must
-Failsafes are a must (Pixelshift.. Marktime().. ect.)


One thing that'll help is joining the Skype group, you can ask for help, and such when needed. That's what I did, lol. ;)

Anyway, I'm going to vote no, because you need more activity and scripting abilities.

Good luck on your next application!

cause

2013-04-06 17:40:44

begin
setupsrl;
repeat(mainloop)
until (count = howmanycaststodo);
end.

It would be nice if there was a failsafe here…something like adding a variable that is incremented every time it can't do something or a couple things in a row…then resets when it successfully executes (can't find the door 5 times? then kill the script).

In general there could be more failsafes…for example if you can't find the stairs, you still try and do the next thing in the queue of things to do…and using findobjcustom means your mouse is probably bouncing around more than a beachball at a Nickleback concert.

Overall you are definitely on the right track, develop these scripts a little more and I think you could get in next time you apply (provided your activity goes up too :) ) (apply again in a month)

I will Look to your coming on the first light of the 30th day, at dawn look to the east.

Vinyl Scratch

2013-04-07 12:12:50

From: cause
using findobjcustom means your mouse is probably bouncing around more than a beach ball at a nickleback concert.


Lol'd so hard.

He's right though, it's not the best function to use. I used it in my first script, not a good cowfinder, I must say.

I can't wait to see you around the community more!

dewrange

2013-04-08 09:23:06

From: cause
begin
setupsrl;
repeat(mainloop)
until (count = howmanycaststodo);
end.

It would be nice if there was a failsafe here…something like adding a variable that is incremented every time it can't do something or a couple things in a row…then resets when it successfully executes (can't find the door 5 times? then kill the script).

In general there could be more failsafes…for example if you can't find the stairs, you still try and do the next thing in the queue of things to do…and using findobjcustom means your mouse is probably bouncing around more than a beachball at a Nickleback concert.

Overall you are definitely on the right track, develop these scripts a little more and I think you could get in next time you apply (provided your activity goes up too :) ) (apply again in a month)

I will Look to your coming on the first light of the 30th day, at dawn look to the east.



lol, this is probably the funnest rejection i have ever had to experience

Hobbit

2013-04-20 17:44:21

Didn't make it this time. Take the suggestions given to you above and feel free to reapply in 4 weeks time. :)

Cheers
Hobbit