kooldude
2007-04-19 16:03:08
EDIT: NO MORE SCRIPT DELETED IT, WAS Detectedable
2007-04-19 16:03:08
2007-04-19 17:09:44
Procedure Dropage;
begin
if(IsAxeWeilded = true)then
begin
DropAll; //or you could have DropTo(1,28);, doesn't matter.
end;
if(IsAxeWeilded = false)then
begin
Drop(2,28);
end;
end;
Going to look over it more and give you more feedback on this post if needed. I'll edit it. Good job for your first script though (If it is) Keep it up.2007-04-19 17:32:49
From: JAD
I'd make it so you have something in the constants that says IsAxeWeilded = True/False. Then, have it do something like this in the dropping procedure:Going to look over it more and give you more feedback on this post if needed. I'll edit it. Good job for your first script though (If it is) Keep it up.
Procedure Dropage;
begin
if(IsAxeWeilded = true)then
begin
DropAll; //or you could have DropTo(1,28);, doesn't matter.
end;
if(IsAxeWeilded = false)then
begin
Drop(2,28);
end;
end;
Edit: You have it ask if axe is weilded, just use that for dropping 2,28 or all, or else its not really used much then is it? :p
Edit2: You have RunAwayDirection('E'); // N, E , S, W, (North, East, South, West)
Keep in mind, you should never have the user need to setup anything except the player arrays, and the constants. Have a constant called something, then make it like RunAwayDirection(constantyoudeclared) And then the user can set it. Not everybody is a good scripter so you need to make it user compatible for the noobiest of noobs ;)
Edit3: Your standards are way off ;) You should learn how to use proper standards and impliment them in your script. You also need to look for the color with tolerance, and you could look for a few colors like
if(FindColorTolerance(x,y,Color1….etc))or
(FindColorTolerance(x,y,Color2….etc))then
begin……….etc.
You really need to check for randoms more, look for IsUpText so it doesn't click on something besides the tree, and not have it wait just 10000 seconds, have it wait until the text isn't up of the tree. Good try, you just need a lot more in it to make it good ;)
{ //-------------------------------------------------------------\\
|| INSTRUCTIONS ||
||-------------------------------------------------------------||
|| BY: Kooldude ||
|| ||
|| 1. Axe in first INV slot... ||
|| 2. Drag Crosshair into RS window. ||
|| 3. Hit play and fill out forms. ||
|| 4. AXE HEAD FINDER WILL WORK, Normally :) ||
||-------------------------------------------------------------||
|| INSTRUCTIONS ||
\\-------------------------------------------------------------//
}
program Powercutter;
{.include SRL\SRL.SCAR}
{.include SRL\SRL\Skill\Woodcutting.SCAR}
var
Startxp, Totallogs, TotalXP,EndXP :integer;
const
TreeColor= 4024416; //Color of tree
////////////Declaring PLayers/////////////
Procedure DeclarePlayers;
Begin
HowManyPlayers := 3;
CurrentPlayer:= 0;
NumberOfPlayers(HowManyPlayers);
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := ''; //3 Lowercase Letters of your username
Players[0].Integer1 := 35; //Loads For Player
Players[0].Boolean1 := False; //Equip Axe?
Players[0].Active := True;
Players[1].Name := '';
Players[1].Pass := '';
Players[1].Nick := '';
Players[1].Integer1 := 35;
Players[1].Boolean1 := False;
Players[1].Active := True;
Players[2].Name := '';
Players[2].Pass := '';
Players[2].Nick := '';
Players[2].Integer1 := 35;
Players[2].Boolean1 := False;
Players[2].Active := True;
End;
/////////////////Loading Bitmaps////////////////////////
Var
xii,yii,Bitmap:integer;
Procedure DeclareBMPS;
begin
Bitmap := BitmapFromString(110, 15, 'z78DAED994116C2300844A' +
'FE4A27D5EC0E7FD8FE4A29BB49171C268833A59B0203C02E13725' +
'ED7A5B97E5BA5A5A9691170F8F92C3CFA665B513D2BB61599FC97' +
'B33369B561359D6CFBACFEB7BEAB5C58C22676CB025EFE14C26FB' +
'AAED633E6ACCA4993C9F49BECA66B21A93ADE63F9964F8D4ED751' +
'AA3ECF8D8B01E7738B98C18DE62D2FAF75D86C9FDECF3C8B5D9F7' +
'33C9779EEDEAD89EB1CC3D355107321A1BB37BD1EA7C46984946A' +
'39C93BA676EF60C2671DD193D633937B6962885F9D10E30A7D199' +
'CCD13B8B49A5BEDFC8241E8AFF5F61124B9649863433893D7F82C' +
'9918A1F4FE2D94CF6916498C45D10FE1694BB4760CFD852EF2773' +
'2B4631E35C14265F91A9DE6546EF38F1CEE078D8FDACF9DDC67F9' +
'AFC1FC74C5ACE65F2015BA88D2F');
end;
Procedure ClickBMPS;
begin
wait(300+random(32))
movemousesmooth(xii,yii)
wait(32+random(16))
clickmouse(xii,yii,true)
end;
Procedure FindBMPS;
begin
if(FindBitmap(Bitmap,xii,yii))then
ClickBMPS;
end;
///////////////Anti Randomz/////////////// Credits to fourscape :)
Procedure TheAntiRandoms;
Begin
Status('Random Check')
FindNormalRandoms;
wait(10)
FindTalk;
wait(10)
if (FindFight) then
begin
Status('Running From a fight.')
RunAwayDirection('E'); // N, E , S, W, (North, East, South, West)
Wait(8500 + random(3500));
RunBack;
end;
Wait(10);
FindTalk;
end;
////////////////Finding Tree/////////////////
Procedure FindTree;
begin;
repeat
if FindColor(x,y,TreeColor,0,0,765,500) then
begin
Wait(10000+random(234))
Mouse(x,y,10,13,true)
TheAntiRandoms;
end else
Writeln('Cant Find Willows')
until (InventoryFull);
if (InventoryFull) then
DropTo(2,28)
Totallogs := Totallogs + 27;
end;
/////////////////Ent//////////////////// <--- Credits goto _Charm Willow raper
Function CharmEnt(ex, ey: Integer): Boolean;
Var
Xe, Ye: Integer;
Begin
Status('FindEnt');
If(FindColorSpiralTolerance(Xe, Ye, 5535856, ex - 20, ey - 20, ex + 20, ey + 20, 12))then
Begin
MMouse(Xe, Ye, 5, 5);
Wait(100+Random(50));
End else
Begin
Exit;
End
If(IsUpTextMulti('hop down Will', 'down Willow', 'own Wil')) or (IsUpTextMulti('illow', 'low', 'Will'))then
Begin
If(FindColorSpiralTolerance(Xe, Ye, 383705, 1, 1, 180, 39, 20))or
(FindColorSpiralTolerance(Xe, Ye, 65535, 1, 1, 200, 40, 20))or
(FindColorTolerance(Xe, Ye, 55769, 85, 15, 115, 15, 20))then
Begin
EntsAvoided:= EntsAvoided + 1;
Result:= True;
End else
Result:= False;
Exit;
End
End;
//////////////////Progress Report////////////////////
Procedure ProgressReport;
Begin
SRLRandomsReport;
WriteLn('[>-----------------------Rayz Report-----------------------<]')
WriteLn('[>Script Time: ' + (TimeRunning) + '')
WriteLn('[>Logs Chopped: ' + IntToStr (Totallogs) + '')
WriteLn('[>XP Gained: ' + IntToStr (TotalXP) + '')
WriteLn('[>----------------------------------------------------------<]')
end;
/////////////////Progress///////////////////
Procedure Progress;
begin
StartXP := GetXp('Woodcutting')
EndXP := GetXp('Woodcutting')
TotalXP := (EndXP - StartXP) + (TotalXP)
ProgressReport;
end;
//////////////////MainLoop////////////////////// Credits To Fugate
begin
SetupSrl;
DeclarePlayers;
Totallogs:= 0;
If (Not(LoggedIn)) then LoginPlayer;
FindAxeHeadColor;
repeat
If (Not(LoggedIn)) then LoginPlayer;
ProgressReport;
FindTree;
loginplayer;
until(false)
wait(1300)
DeclareBMPS;
FindBMPS;
until(false);
end.
2007-04-19 18:15:50
2007-04-19 20:05:53
2007-05-02 04:48:49
2007-05-02 04:53:50
2007-07-22 05:48:39
2007-07-22 05:50:57
2007-12-01 08:41:27
2007-12-01 08:43:36