da_professa
2006-11-25 00:27:20
Hey,
Lately I have been working on my normal log cutter + Banker. I have a few questions, I 'll make it as easy for u guyz to read and answer as possible.
This script starts off at varrock west bank. Lowest bank slot.. It will first make map perfect north, then just walk a little bit thorough some random set points, since there are normal trees everywhere. It is supposed to cut logs and bank em
I need a better way of walking to the trees. Is there a better way that u guyz can think of. Yesterday I saw that if u go all the way south there is water.. Should i just make it keep going south east until it gets the water..
I do not really understand how to use the tree bitmaps to find the tree color.. Like I posted in previous topic (juniors), the script seem to find the bitmap in paint, but not in runescape. Most scripts that I have checked, I notice that they use deformed bitmap. I don't understand diformed bitmaps. It would be GREAT help if you could just help me with that.
I want to make a procedure in which while waiting it checks for Ent, and if good randoms. Is it possible to do it..
Multi Players.. HOw do I say if this happens then go to next player, and don't use this player again.. Or in other cases if total loads reached then next player and do come back to this player….
I want this to be the best script I make. It will be in the free section, and I want it to be an overnight script.. I know there are many things in there that are not fail proof, I will work on them as soon as I have all my procedures up and running. Plz post any ideas and help that you may have for me.. If its a link to a tutorial, or if its complete criticism, I'll like.. I just don't want 20 views and 0 replies..
Thx a lot guyz!!
Almost Forgot to post script.. Here it is (don't laugh ;))
Lately I have been working on my normal log cutter + Banker. I have a few questions, I 'll make it as easy for u guyz to read and answer as possible.
About Script
This script starts off at varrock west bank. Lowest bank slot.. It will first make map perfect north, then just walk a little bit thorough some random set points, since there are normal trees everywhere. It is supposed to cut logs and bank em
Problem 1
I need a better way of walking to the trees. Is there a better way that u guyz can think of. Yesterday I saw that if u go all the way south there is water.. Should i just make it keep going south east until it gets the water..
Problem 2
I do not really understand how to use the tree bitmaps to find the tree color.. Like I posted in previous topic (juniors), the script seem to find the bitmap in paint, but not in runescape. Most scripts that I have checked, I notice that they use deformed bitmap. I don't understand diformed bitmaps. It would be GREAT help if you could just help me with that.
Problem 3
I want to make a procedure in which while waiting it checks for Ent, and if good randoms. Is it possible to do it..
Problem 4
Multi Players.. HOw do I say if this happens then go to next player, and don't use this player again.. Or in other cases if total loads reached then next player and do come back to this player….
Other Ideas
I want this to be the best script I make. It will be in the free section, and I want it to be an overnight script.. I know there are many things in there that are not fail proof, I will work on them as soon as I have all my procedures up and running. Plz post any ideas and help that you may have for me.. If its a link to a tutorial, or if its complete criticism, I'll like.. I just don't want 20 views and 0 replies..
Thx a lot guyz!!
Almost Forgot to post script.. Here it is (don't laugh ;))
{Normal Log Cutter than banks}
// Note To self.. USe Broken Axe thing.. ALSO BANKING AFTER INV FULL>> LOG DTM........ Ask About waiting while checking for ent..
program normalcuts;
{.include SRL/SRL.scar}
{.include SRL/srl/extended/xmapwalk.scar}
{.include SRL/srl/skill/woodcutting.scar}
// SET THESE UP!!//
const
Treecolor1 = 4345174; // Don't Really Need To Touch It.. Also Uses Other Method To Find Tree :D
Treecolor2 = 2908240; // Don't Really Need To Touch It.. Also Uses Other Method To Find Tree :D
Treecolor3 = 4020312; // Don't Really Need To Touch It.. Also Uses Other Method To Find Tree :D
//Waittoclick = ; Will be added In next version
rundirection = 'S';
Tolerancetree = 5;
StartPlayer = 0;
SkillUp = 'Strength';//For Genie
TotalLoads =10; // Number of Loads to do before switching players
// -----------------------------//
var logdtm, treebmp, Tree1, PlayersAmount, BrokenAxeMask, treecolor12, banked : integer;
var AxeThere : Boolean;
//Setup Players//
Procedure DeclarePlayers;
begin
PlayersAmount := 1;//Number Of Players you will be playing with
NumberOfPlayers(PlayersAmount);
CurrentPlayer:= StartPlayer;
Players[0].Name :='--username here--';
Players[0].Pass :='*Woah! that was close*';
Players[0].Nick :='\ ';
Players[0].Active:=True;
end;
Procedure Setup;
begin;
SetupSRL;
ActivateClient;
DeclarePlayers;
if(not(LoggedIn))then
LoginPlayer;
PerfectNorth;
LoginPlayer;
logdtm := DTMFromString('78DA63DCC5CCC050C7C8800CD2FDF518E6B73' +
'1328044FF0301E336A09A5254350C0C8C482490DE0F54534440CD' +
'21A09A0A026A8E01D534A3AA315050C0B4AB9D809A8D40359DA86' +
'A4A836550D5AC04AA6944551365278CA20600D6BD126A');
BrokenAxeMask := BitmapFromString(9, 10, 'z78DA7373230D1890' +
'05C8D34BAA2EE2D5E3F21131FEC56FCBE091A53C34007F307225'); // I stole this from some script.. I'll post credit in final version
Tree1 := BitmapFromString(4, 1, '38382C50602C38402C40' +
'4826');
end;
Procedure randoms;
begin
SRLrandomsreport;
FindNormalRandoms;
FindLamp(SkillUp);
FindTalk;
if(findfight) then begin
Writeln('Found Fight Running Away');
RunAwayDirection(rundirection);
SleepAndMoveMouse(7000+Random(2000));
Writeln('Should Be Gone Now!');
RunBack;
end;
RandomRClickEvery(5+Random(3000));
BoredEvery(10+Random(200));
FindBirdsNest;
if(not(FindHead)) then writeln('Hmm No Axe.. Lets Look For one');
end;
procedure allgood;
begin;
if(FindAxeHeadColor) then Axethere := true;
if(not(FindAxeHeadColor)) then begin
WriteLn('Can Not Find Axe Head Color');
WriteLn('Logging Out');
AxeThere:=False;
FTWait(12);
LogOut;
NextPlayer(false);
end;
end;
procedure banking;
var x,y : integer;
begin;
if (not(invfull)) then exit;
OpenBankQuiet('veb');
FindInvDtm(x,y,logdtm);
Mouse(x,y,2,2,false);
ChooseOption(x,y,'All');
banked := banked+1
end;
procedure totrees;
begin;
allgood;
mouse(590,112,0,0,true);
CountFlag(0);
Mouse(631,136,1,1,true);
CountFlag(1);
Mouse(631,120,1,1,true);
CountFlag(0)
end;
Procedure Ent;
Begin
if (FindEnt(treecolor1)) or (FindEnt(treecolor2)) or(FindEnt(treecolor3)) or (FindEnt(treecolor12)) then begin
EntsAvoided:=EntsAvoided + 1;
WriteLn('Ent Found!! ');
Mouse(648, 83, 1, 1, True);
FTWait(20+Random(10));
End
End;
procedure cuttinthewood;
var x,y,xx,yy,attemp : Integer;
Begin
attemp := 0
repeat;
attemp := attemp+1
randoms;
if(not(FindHead)) then exit;
WriteLn('Head Found 1');
WriteLn('Head Found2');
if(InvFull) then exit;
WriteLn('Head Found3');
if (not(loggedin)) then exit;
WriteLn('Head Found4');
//if (TotalLoads > Banked) then exit;
WriteLn('Head Found5');
if(FindMainColor(x,y,treecolor1,tolerancetree,true)) or (FindMainColor(x,y,treecolor2,tolerancetree,true)) or (FindMainColor(x,y,treecolor3,tolerancetree,true)) or (FindMainColor(x,y,treecolor12,tolerancetree,true)) then begin
MMouse(x,y,2,2);
if(IsUpTextMulti('Chop','down','Tree')) then
begin;
Mouse(x,y,1,1,true);
Ent;
Writeln('done 1');
FTWait(2+random(2));
Writeln('done 1');
Ent;
//Writeln('done 2');
//FTWait(4+random(2));
//Ent;
//Writeln('done 3');
//FTWait(4+random(2));
//Ent;
//Writeln('done 4');
//FTWait(4+random(2));
//Ent;
//Writeln('done 5');
//FTWait(4+random(2));
//Ent;
//FTWait(4+random(2));
//Ent;
//FTWait(4+random(2));
// Ent;
end;
end;
until(attemp = 7);
WriteLn('No Tree Found With The Colour');
WriteLn('Trying To Find New Colour');
repeat;
attemp := attemp+1;
if(FindBitMaP(tree1,xx,yy)) then
MMouse(xx,yy,1,1);
if(isuptextmulti('Chop','down','Tree')) then begin
treecolor12 := GetColor(xx,yy);
end;
WriteLn('Your Lucky! Found the tree');
FreeBitmap(tree1);
exit;
until(attemp = 4);
WriteLn('Hmm... Still Have not found tree');
WriteLn('Hold On Things Might Get A Bit LAGGy');
repeat;
treebmp := BitmapFromString(7, 7, '48483628300C30302038381A38' +
'401E68702E50583A5868322830003838244850325860185058273' +
'8402428302048582428300048502658603348502E486007586832' +
'58682228301A48501650602748501650603078882030401B28300' +
'A48502658603348501A50603038482268783418180820281C4040' +
'2F70784D30381E70803F60703258603070784D60684448582C586' +
'81A');
attemp := attemp+1
if(FindBitMaP(treebmp,xx,yy)) then begin
MMouse(xx,yy,1,1);
if(isuptextmulti('Chop','down','Tree')) then begin
treecolor12 := GetColor(xx,yy);
WriteLn('Your Lucky! Found the tree');
FreeBitmap(treebmp);
exit;
end;
end;
until(attemp = 4);
WriteLn('I think we are lost');
WriteLn('Logging Out! Hopefully you got another player');
Logout;
NextPlayer(false);
end;
procedure LoadsDone;
begin;
if (TotalLoads > Banked) then begin;
WriteLn('Max Loads Done');
WriteLn('Switching Players');
FTWAIT(50 + random (10));
LogOut;
NextPlayer(true);
end;
end;
begin
Setup;
totrees;
repeat;
cuttinthewood;
//add to walk back
banking;
until(false);
end.