PDA

View Full Version : SimpleChopper



The Prince of Randomness?
06-21-2006, 04:54 AM
SimpleChopper
Normal Tree powerchopper


program WoodCutter;
{.include srl/srl.scar}
{.include srl/srl/skill/woodcutting.scar}

Procedure DeclarePlayers;
begin
HowManyPlayers :=2;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer:=0;

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

Players[1].Name :='';
Players[1].Pass :='';
Players[1].Nick :='';
Players[1].Active:=True;
end;

procedure FindWcRandoms;
begin
FindNormalRandoms;
FindHead;
FindEnt(4156042);
if not loggedin then RandomNextPlayer(False);

end;

procedure FindTree;
var x,y,prevcount,a:integer;
begin
prevcount:=invcount;
if FindObj(X,y,'hop',3760254,10) then
Mouse(x,y,10,5,true);
a:=0;
repeat
wait(2000);
a:=a+1;
if a=3 then break;
until(invcount>prevcount)
end;


begin
Setupsrl;
declareplayers;
FindAxeHeadColor;
repeat
FindTree;
FindWcRandoms;
if InvFull then DropAllLogs;
until(getskilllevel('woodcutting')=99);
end.

PyRo.
06-21-2006, 05:01 AM
Awsome, been looking for one, thanks. Future plans include a banker? I need one for fletching arrows :P With your permission could I try to add my own banker to this?

The Prince of Randomness?
06-21-2006, 07:27 AM
I could make on in 5 minutes, (thats twice the time it took to make this) but i cant right now, go ahead. but dont post it.

PyRo.
06-21-2006, 07:35 AM
Ok thanks :P Good practice.

masterofjoe
06-22-2006, 01:12 AM
Good script. Nice and simple, but effective.

sjohal2006
06-22-2006, 06:22 AM
When you can make, please add the banker thanks.

The Prince of Randomness?
06-22-2006, 08:35 PM
Works fine does it?
Any ideas where to add the banker?

sjohal2006
06-23-2006, 06:43 AM
Im not fussed where howveer close would be good

PyRo.
06-23-2006, 07:14 PM
Varrock West works well. Drynor is the best, except guards kill newbs.

The Prince of Randomness?
06-24-2006, 12:35 AM
Im going to do Varrock Central, you know west of the dummy area above the water source fountain there are three trees? from there into east bank.

sjohal2006
06-24-2006, 09:24 AM
Thats great :)

bangali
11-04-2006, 09:33 AM
BEST POWER SCRIPT EVER...cos it owns..it lags a bit like freezes when cuttin like 5th tree tehn resets and lags but unlike other script doesnt lag majorly..i'v never found a good script like this since im a newb at scripting lol but verry nice!hope you make a another type of cutter soon

Larrylucky
11-04-2006, 03:49 PM
Line 170: [Hint] (178:43): Variable 'NEWLINE' never used in script C:\Program Files\SCAR 2.03\includes\srl\srl\core\Globals.scar
SRL Compiled in 310msec.
[Runtime Error] : Out Of Range in line 16 in script

Mod Mopar
11-22-2006, 06:30 PM
Where do i need to start? at bank or?

cause
11-22-2006, 06:55 PM
I noticed in"FindObj(X,y,'hop',3760254,10)" what is "hop"? i also noticed no colours, and thats your only find tree, does SRL do all the colours and junk?

Mod Mopar
11-22-2006, 07:00 PM
It doesn't seems to work for me .. everytime it has checked my axe, it set my mouse t my character, but nothing happens ...

Mod Mopar
11-22-2006, 07:07 PM
it does everything, except cutting a tree ... -_-

Mod Mopar
11-22-2006, 07:53 PM
Finaly got it working .. Now is it just me or is it sooo slow?

cause
11-23-2006, 12:08 AM
quit triple posting and look at teh dang code!! fix it if u want!!

testje
11-23-2006, 09:10 PM
Nice script!
Very good, never knew that scripts could be this easy.
I will tell you if I tested this expensive.

Ok, I've tested it, and it lags a little bit.
Is it ok if I edit the script and add a firemaking procedure?

noobauto1
11-26-2006, 08:20 AM
it did work for me but now it hines about something colorcircleD line 802

seany
11-28-2006, 04:15 PM
script looks clean and tidy.. also works fairly well... i cant give you a report because i havnt tried it for long enough :P

also cause asked what hop is!! well the script looks at the top left part of the screen to see the words 'Chop' make sure that a tree is actually a tree... but in the script you cant put Chop in the script because there C is a cap and it could become unreliable or somthing so you put 'hop'

ok? :P

cause
11-29-2006, 01:53 AM
lol, figured it would be that easy:P