Stevee
2010-03-16 19:45:48
Yeh, I've been working on my autoalcher. this is about 4-5 hours into it, and it's my first script.
AFAIK, the only thing left is antiban. That and failsafes (it just terminatesscript and logsout atm).
Code:
**Updated 3/17/10 @10am**
http://pastebin.com/dqkL9n2m
AFAIK, the only thing left is antiban. That and failsafes (it just terminatesscript and logsout atm).
Code:
[LEFT][COLOR=#000000][B]program[/B][/COLOR] SteveAutoAlcher;
[COLOR=#008000]{.include srl/srl.scar}[/COLOR]
[COLOR=#008000]{[/COLOR]
[COLOR=#008000]-Consts[/COLOR]
[COLOR=#008000]-*Player username[/COLOR]
[COLOR=#008000]-*Player password[/COLOR]
[COLOR=#008000]-*Breaks[/COLOR]
[COLOR=#008000]-*Do you want the script to auto-bank when done?[/COLOR]
[COLOR=#008000]-**Bank pin[/COLOR]
[COLOR=#008000]-*Make DTM (DONE)[/COLOR]
[COLOR=#008000]-[/COLOR]
[COLOR=#008000]}[/COLOR]
[COLOR=#000000][B]var[/B][/COLOR]
i, x, y: Integer;[/LEFT]
[LEFT][COLOR=#000000][B]const[/B][/COLOR]
[COLOR=#008000]/////////////////////////////Setup Starts Here//////////////////////////////////[/COLOR]
HowManyAlchs = [COLOR=#000080]500[/COLOR]; [COLOR=#008000]//How much are we alchemizing?[/COLOR]
TakeBreaks = True; [COLOR=#008000]//Do You Want to take breaks[/COLOR]
BreakAfter = [COLOR=#000080]60[/COLOR]; [COLOR=#008000]//How Long you want to work for before you take a 15 min break (In Minutes (0 = Do not break))[/COLOR]
BreakFor = [COLOR=#000080]10[/COLOR]; [COLOR=#008000]//How long would you like to break for? (0 = Do not break)[/COLOR]
BreakForRandom = [COLOR=#000080]5[/COLOR]; [COLOR=#008000]//Add this many random minutes into BreakFor[/COLOR]
ChanceOfNotBreaking = [COLOR=#000080]60[/COLOR]; [COLOR=#008000]//Out of 100, chance of not breaking at all[/COLOR][/LEFT]
[LEFT][COLOR=#000000][B]Procedure[/B][/COLOR] DeclarePlayers;
[COLOR=#000000][B]begin[/B][/COLOR]
HowManyPlayers := [COLOR=#000080]1[/COLOR] ;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := [COLOR=#000080]0[/COLOR];[/LEFT]
[LEFT] [COLOR=#000000][B]with[/B][/COLOR] players[[COLOR=#000080]0[/COLOR]] [COLOR=#000000][B]do[/B][/COLOR]
[COLOR=#000000][B]begin[/B][/COLOR]
Name := [COLOR=#ff00ff]''[/COLOR];
Pass := [COLOR=#ff00ff]''[/COLOR];
Nick := [COLOR=#ff00ff]''[/COLOR];
Active := True;
Pin := [COLOR=#ff00ff]''[/COLOR];
[COLOR=#000000][B]end;[/B][/COLOR]
[COLOR=#000000][B]end[/B][/COLOR];
[COLOR=#008000]//////////////////////////////Setup Ends Here\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\[/COLOR][/LEFT]
[LEFT][COLOR=#000000][B]Procedure[/B][/COLOR] ClickNote;
[COLOR=#000000][B]var[/B][/COLOR]
BankNote :Integer;
[COLOR=#000000][B]begin[/B][/COLOR]
BankNote := DTMFromString([COLOR=#ff00ff]'78DA6354666060106340034C0C2640921188F'[/COLOR] +
[COLOR=#ff00ff]'F0301A31A90C189A98601AA064C0B030909026AF480840C01358A'[/COLOR] +
[COLOR=#ff00ff]'404299087384F0AB0100AA7605AA'[/COLOR]);
[COLOR=#000000][B]if[/B][/COLOR] (GameTab([COLOR=#000080]25[/COLOR])) [COLOR=#000000][B]then[/B][/COLOR]
[COLOR=#000000][B]begin[/B][/COLOR]
[COLOR=#000000][B]if[/B][/COLOR] FindDTM(BankNote, x, y, MIX1, MIY1, MIX2, MIY2) [COLOR=#000000][B]then[/B][/COLOR]
[COLOR=#000000][B]begin[/B][/COLOR]
Mouse(x, y, [COLOR=#000080]2[/COLOR], [COLOR=#000080]2[/COLOR], true);
[COLOR=#000000][B]end[/B][/COLOR] [COLOR=#000000][B]else[/B][/COLOR]
[COLOR=#000000][B]begin[/B][/COLOR]
Logout;
TerminateScript;
[COLOR=#000000][B]end;[/B][/COLOR]
[COLOR=#000000][B]end;[/B][/COLOR]
FreeDTM(BankNote);
[COLOR=#000000][B]end;[/B][/COLOR]
[COLOR=#000000][B]Procedure[/B][/COLOR] ClickAlch;
[COLOR=#000000][B]var[/B][/COLOR]
HighAlch :Integer;
[COLOR=#000000][B]begin[/B][/COLOR]
HighAlch := DTMFromString([COLOR=#ff00ff]'78DA6314676060106340016A0AE20C46409A1'[/COLOR] +
[COLOR=#ff00ff]'188FF0301231B902181AA86094A33C2682E20214C408D28909026'[/COLOR] +
[COLOR=#ff00ff]'A046164888125023052438F1AB0100BD08058F'[/COLOR]);
[COLOR=#000000][B]if[/B][/COLOR] ([COLOR=#000000][B]not[/B][/COLOR](GameTab([COLOR=#000080]28[/COLOR]))) [COLOR=#000000][B]then[/B][/COLOR] GameTab([COLOR=#000080]28[/COLOR]);
GameTab([COLOR=#000080]28[/COLOR]);
[COLOR=#000000][B]if[/B][/COLOR] FindDTM(HighAlch, x, y, MIX1, MIY1, MIX2, MIY2) [COLOR=#000000][B]then[/B][/COLOR]
[COLOR=#000000][B]begin[/B][/COLOR]
Mouse(x, y, [COLOR=#000080]2[/COLOR], [COLOR=#000080]2[/COLOR], true)
FreeDTM(HighAlch);
[COLOR=#000000][B]end[/B][/COLOR] [COLOR=#000000][B]else[/B][/COLOR]
LogOut;
TerminateScript;
FreeDTM(HighAlch);
[COLOR=#000000][B]end;[/B][/COLOR][/LEFT]
[LEFT][COLOR=#000000][B]Procedure[/B][/COLOR] DoBreak;
[COLOR=#000000][B]var[/B][/COLOR]
Breaktime, LastBreak, SinceBreak, BreakForRandom2, BreakFor2:Integer;
[COLOR=#000000][B]Begin[/B][/COLOR]
BreakTime := BreakAfter * [COLOR=#000080]60[/COLOR] * [COLOR=#000080]1000[/COLOR];
LastBreak := TimeFromMark(SinceBreak);
[COLOR=#000000][B]If[/B][/COLOR](BreakTime <= LastBreak) [COLOR=#000000][B]then[/B][/COLOR]
[COLOR=#000000][B]begin[/B][/COLOR]
Logout;
[COLOR=#000000][B]if[/B][/COLOR](BreakForRandom = [COLOR=#000080]0[/COLOR]) [COLOR=#000000][B]then[/B][/COLOR]
[COLOR=#000000][B]begin[/B][/COLOR]
Wait(BreakFor * ([COLOR=#000080]1000[/COLOR] * [COLOR=#000080]60[/COLOR]));
LoginPlayer;
SetAngle(True);
MarkTime(SinceBreak);
[COLOR=#000000][B]end[/B][/COLOR] [COLOR=#000000][B]else[/B][/COLOR]
[COLOR=#000000][B]begin[/B][/COLOR]
BreakForRandom2 := BreakForRandom * [COLOR=#000080]1000[/COLOR] * [COLOR=#000080]60[/COLOR] ;
BreakFor2 := BreakFor * ([COLOR=#000080]1000[/COLOR] * [COLOR=#000080]60[/COLOR])+(RandomRange([COLOR=#000080]0[/COLOR], BreakForRandom2));
Wait(BreakFor2);
LoginPlayer;
SetAngle(True);
MarkTime(SinceBreak);
[COLOR=#000000][B]end[/B][/COLOR]
[COLOR=#000000][B]end;[/B][/COLOR]
[COLOR=#000000][B]end[/B][/COLOR];[/LEFT]
[LEFT][COLOR=#000000][B]begin[/B][/COLOR]
[COLOR=#000000][B]For[/B][/COLOR] I := [COLOR=#000080]0[/COLOR] [COLOR=#000000][B]to[/B][/COLOR] HowManyAlchs [COLOR=#000000][B]do[/B][/COLOR]
[COLOR=#000000][B]begin[/B][/COLOR]
ClickAlch;
ClickNote;
[COLOR=#000000][B]If[/B][/COLOR](TakeBreaks) [COLOR=#000000][B]then[/B][/COLOR]
DoBreak;
[COLOR=#000000][B]end;[/B][/COLOR]
[COLOR=#000000][B]end.[/B][/COLOR][/LEFT]
**Updated 3/17/10 @10am**
http://pastebin.com/dqkL9n2m