stampede10343
2008-02-06 20:11:04
<!– BEGIN TEMPLATE: formanswers –>
stampede10343 - SRL Member Application Form
stampede10343
What is the meaning to life?
Where you Referred to SRL? If yes, by whom?
no
Programming Knowledge
Looked at a few… Never bothered to learn any
Other Communitys
Sythe but i dont really do anything cause of all the spamming
How Long have You Played Runescape
5 years
Are you affilated in anyway with Jagex LTD?
No
—————————————————–
Please write down a paragraph about Yourself.
This will be my :duh: third time applying for a membership, and i think I've learned about some new features and tried to implement them into my script.
I've reviewed almost all of the beginner tutorials and most of the Intermediate tutorials about all the basics and some TPointArrays, and Color Tolerance Speed, stuff like that. I have a decent understanding of Radial Walk, though i only experimented with it. I try to make sure there are fail safes where they need to by looking at similar scripts. I know a little about DDTM's and used one is this script(which actually works:)). I think i got the standards down, please tell me if they're are right. I'm hoping for this to be my final application, three is kinda pushing the limit, but i think im ready. I know that i still need to get my posts and activity up but its getting there and im trying not to spam or add useless info to the forums. So thanks
again, you guys for all your comments and motivation!
——————————————————
Please Post a Sample of your Work. Only SCAR Scripts Accepted
——————————————————
<!– END TEMPLATE: formanswers –>
stampede10343 - SRL Member Application Form
stampede10343
What is the meaning to life?
Where you Referred to SRL? If yes, by whom?
no
Programming Knowledge
Looked at a few… Never bothered to learn any
Other Communitys
Sythe but i dont really do anything cause of all the spamming
How Long have You Played Runescape
5 years
Are you affilated in anyway with Jagex LTD?
No
—————————————————–
Please write down a paragraph about Yourself.
This will be my :duh: third time applying for a membership, and i think I've learned about some new features and tried to implement them into my script.
I've reviewed almost all of the beginner tutorials and most of the Intermediate tutorials about all the basics and some TPointArrays, and Color Tolerance Speed, stuff like that. I have a decent understanding of Radial Walk, though i only experimented with it. I try to make sure there are fail safes where they need to by looking at similar scripts. I know a little about DDTM's and used one is this script(which actually works:)). I think i got the standards down, please tell me if they're are right. I'm hoping for this to be my final application, three is kinda pushing the limit, but i think im ready. I know that i still need to get my posts and activity up but its getting there and im trying not to spam or add useless info to the forums. So thanks
again, you guys for all your comments and motivation!
——————————————————
Please Post a Sample of your Work. Only SCAR Scripts Accepted
{.Script Info:
# ScriptName = Stamp's ChickenKiller v1.7
# Author = Stampede10343
# Description = Kills Chickens and Collects Feathers
# Version = 1.7
# Date = 02/02/08
# Comments = Set your constants, and your players up and press play :)
/Script Info}
program ChickenKiller;
{.include SRL/SRL/Misc/Smart.scar}
{.include SRL/SRL.scar}
var
x, y, c: Integer;
ChickenPen, Feather: Integer;
Chickens, PlayerTimer: Integer;
const
TimePerPlayer = 10;// How long to fight and switch players (in mins)
FightTimeOut = 10000;// Max Time it takes to kill a chicken
dbug = false; // Shows extra info via WriteLn, its not really needed
YourSRLID = '';// SRL ID#
YourSRLPass = '';// SRL stats Pass
function Fighting(x, y: Integer): Boolean; Forward;
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := ''; //username
Players[0].Pass := ''; //password
Players[0].Nick := ''; //3-4 letters from your username
Players[0].Skill := 'strength';
Players[0].Integers[0] := 1; // Fight Mode 1 2
Players[0].Active := True; // 3 4
end;
{ NOT MINE I borrowed from Munk }
function countfeathers:integer;
var
feathers: integer;
count: String;
begin
result:=0;
feathers:=DTMFromString('78DA639464606010614001DBD7AC61E002D28' +
'C40FC1F081845810C5E0634C08844026921202148400D485E8C08' +
'73A409A8E107124A04D480FC2443408D3CA6DF31D448000949FC6' +
'A00153F07BB');
gametab(4);
wait(200+random(50));
if finddtm(feathers,x,y,mix1,miy1,mix2,miy2) then
begin
count:=GetTextAtEx(x-16, y-17, 0, statchars, False, False, 0, 1, 65535, 10, false, tr_AlphaNumericChars);
count:=trim(TrimOthers(count));
if not(count='') then
begin
result:=strtoint(count);
end;
end;
freedtm(feathers);
end;
{ NOT MINE I borrowed from Munk }
procedure AntiBan;
begin
if(dbug)then WriteLn('Doing ze AntiBan!!');
case random(60) of
0: IdleTime(2000, 2000, 0.4);
1: GameTab(1 + random(5));
2: IdleTime(100, 10000, 0.4);
3: BoredHuman;
4: RandomRClick;
5: HoverSkill(Players[CurrentPlayer].Skill, false);
6: GameTab(1 + random(5));
7: AlmostLogout;
8: RandomMovement;
end;
GameTab(4);
MakeCompass('N');
wait(50);
end;
procedure Feathers;
var
f : Integer;
begin
if(not(LoggedIn))then exit;// added
AntiBan;
repeat
Flag;
if(not(LoggedIn))then Exit;
if(Fighting(x, y))then Exit;
begin
if(dbug)then writeln('Looking for feathers');
f := f + 1;
if(FindObj(x, y, 'eather', 469253, 5))then
begin
MMouse(x, y, 5, 5);
wait(30 + random(10));
Mouse(x, y, 0, 0, false);
wait(100 + random(30));
ChooseOption('eather');
FTWait(2);
wait(150 + random(100));
end;
end;
until(f >= 3);
end;
procedure WaitInFight;
begin
if(not(LoggedIn))then exit;// added
FFlag(0);
if(not(Fighting(x, y)))then Exit;
wait(150 + random(50));
repeat
if(dbug)then writeln('Waiting to get out of fight');
FTWait(2);
FindNormalRandoms;
until(not(Fighting(x, y)));
end;
procedure AssembleDTM;
var
SubPoints: array[0..3] of TDTMPointDef;
MainPoint : TDTMPointDef;
PenTDTM: TDTM;
begin
MainPoint .x:=633;
MainPoint .y:=86;
MainPoint .areasize:=1
MainPoint .areashape:=0;
MainPoint .color:=5987170;
MainPoint .tolerance:=255;
SubPoints[0].x:=621;
SubPoints[0].y:=79;
SubPoints[0].areasize:=2;
SubPoints[0].areashape:=0;
SubPoints[0].color:=15658734;
SubPoints[0].tolerance:=10;
SubPoints[1].x:=651;
SubPoints[1].y:=89;
SubPoints[1].areasize:=2;
SubPoints[1].areashape:=0;
SubPoints[1].color:=15922923;
SubPoints[1].tolerance:=10;
SubPoints[2].x:=616;
SubPoints[2].y:=93;
SubPoints[2].areasize:=2;
SubPoints[2].areashape:=0;
SubPoints[2].color:=15922923;
SubPoints[2].tolerance:=10;
SubPoints[3].x:=647;
SubPoints[3].y:=93;
SubPoints[3].areasize:=2;
SubPoints[3].areashape:=0;
SubPoints[3].color:=15922923;
SubPoints[3].tolerance:=10;
PenTDTM.MainPoint := MainPoint;
PenTDTM.SubPoints := SubPoints;
ChickenPen:= AddDTM(PenTDTM);
end;
function CheckGate: Boolean;
var
cx, cy: Integer;
begin
if(not(LoggedIn))then exit;//added
AntiBan;
cx := MSCX;
cy := MSCY;
if(dbug)then WriteLn('Opening Gate');
if(FindColorTolerance(x, y, 2906746, cx - 150, cy - 150, cx + 150, cy + 150, 5))then
begin
MMouse(x, y, 3, 3);
if(IsUpTextMulti('pen', 'Open', 'pen'))then
GetMousePos(x, y);
Result := True;
end;
if(Result)then
Mouse(x, y, 0, 0, true);//fixed
end;
procedure Callibrate;
var
WhichAngle : Extended;
begin
AntiBan;
if(not(LoggedIn))then Exit;
if(FindBlackChatMessage('can''t reach that'))then CheckGate;
if(dbug)then WriteLn('Callibrating');
if(FindDTMRotated(ChickenPen, x, y, MMX1, MMY1, MMX2, MMY2, - Pi/2, Pi/2, 0.1,
WhichAngle))then
begin
mouse(x, y, 4, 4, true);
c := 0;
end;
end;
function Fighting(cx, cy: Integer): Boolean;
var
cx, cy: Integer;
begin
if(not(LoggedIn))then exit;
if(FindColor(cx, cy, 255, x - 10, y - 20, x + 10, y + 20)or
FindColor(cx, cy, 65280, x - 10, y - 20, x + 10, y + 20)or
FindColor(cx, cy, 192, x - 10, y - 20, x + 10, y + 20)or
FindColor(cx, cy, 16728128, x - 10, y - 20, x + 10, y + 20))then
begin
Result := True;
end else
Result := False;
end;
procedure FindChicken;
var
Points1: TPointArray;
Points2, p: TPointArray;
cx, cy, i: Integer;
q: TPoint;
begin
AntiBan;
if(not(LoggedIn))then Exit;
if(Fighting(x, y))then exit;
cx := MSCX;
cy := MSCY;
FFlag(0);
FindColorsSpiralTolerance(cx, cy, Points1, 857701, MSX1, MSY1, MSX2, MSY2, 10);
FindColorsSpiralTolerance(cx, cy, Points2, 8431292, MSX1, MSY1, MSX2, MSY2, 10);
i := i + 1;
p := CombineTPA(Points1, Points2);
q := MiddleTPA(p);
MMouse(q.x, q.y, 5, 5);
wait(10 + random(20));
if(i >= 5)then Callibrate;//Added
if(IsUpTextMulti('tack', 'hicken', 'cken'))then
begin
Mouse(q.x, q.y, 0, 0, true);
FTWait(4);
FindNormalRandoms;
FFlag(0);
if(FindBlackChatMessage('can''t reach that'))then CheckGate;
end;
if(Random(30) = 2)then
begin
if(dbug)then writeln('Random Skill Check');
HoverSkill(Players[CurrentPlayer].Skill, false);
wait(700 + random(500));
end;
inc(Chickens);
inc(Players[CurrentPlayer].Integers[3]);
inc(ReportVars[0]);
CheckGate;
end;
procedure SetupPlayer;
Begin
if(not(LoggedIn))then exit;
wait(250);
LoginPlayer;
SetFightMode(Players[CurrentPlayer].Integers[0]);
SetRun(True);
SetAngle(True);
MakeCompass('N');
GameTab(4);
wait(500);
end;
procedure Proggy;
var
i, f: Integer;
begin
for i := 0 to HowManyPlayers - 1 do
begin
writeln(IntToStr(i) + ': ' + Players[i].Nick + ' |' + Left(BoolToStr(Players[i].Active), 1) + '| '
+ 'Collected: ' + IntToStr(Players[i].Integers[2] - Players[i].Integers[1]) + '| Killed: ' + IntToStr(Players[i].Integers[3]));
f := f + Players[i].Integers[1];
Writeln('');
writeln('|<---------------------------->|');
writeln('|< Stamp''s Chicken Killer 1.5 >|');
writeln('|<---------------------------->|');
writeln('|< Killed : ' + inttostr(Chickens) + ' Chickens >|');
writeln('|< Collected : ' + IntToStr(f) + ' Feathers >|');
writeln('|< Worked For : ' + TimeRunning + ' >|');
writeln('|<---------------------------->|');
ReportVars[1]:=f-feather;
feather := f;
SRLRandomsReport;
end;
end;
begin
SmartSetupEx(51 , false, false);
while(not(SmartReady))do wait(1000);
SetTargetDC(SmartGetDC);
SetupSRL;
ScriptID := '601';
SRLID := YourSRLID;
SRLPassword := YourSRLPass;
if(YourSRLID = '')then
begin
WriteLn('Get A SRL Stats ID, script terminated...');
TerminateScript;
end;
DeclarePlayers;
AssembleDTM;
MouseSpeed := 30;
repeat
begin
SetupPlayer;
Proggy;
Players[CurrentPlayer].Integers[2]:= CountFeathers;
MarkTime(PlayerTimer);
repeat
FindChicken;
WaitInFight;
c := c + 1;
if(c = 3)then
begin
Callibrate;
end;
if(dbug)then writeln('Done Waiting for Fight');
Feathers;
FindNormalRandoms;
until(TimePerPlayer * 60000 <= TimeFromMark(PlayerTimer));
Players[CurrentPlayer].Integers[1] := CountFeathers - Players[CurrentPlayer].Integers[2];
Proggy;
if(not(LoggedIn))then NextPlayer(False);
if(LoggedIn)then NextPlayer(True);
end;
until(false);
end.——————————————————
<!– END TEMPLATE: formanswers –>