SRL Archive - OSR Outdated / Broken Scripts

[07Scape] Lumbridge Oak chop-seller!


Knoot

2013-02-26 13:24:19

Hello, this skiddie script chops Oak and sells to the General Store at Lumbridge.

Start it by between the 2 oaks behind the shop.

Features [Added/In progress/Not Added]
Chops Oak behind General Store in Lumbridge.
Sell Oak logs to the Shop Assistant.
Makes Oak shortbows and sells
Deathwalking.
Home tele if lost.
Fix broken axe.

Update log:
v0.3 - Added Fletching
v0.4 - Fixed bad DTM's

Known bugs:
Wont free DTM's.
Bad DTM's

ajg0001991

2013-02-26 13:51:22

gratz on release

DannyRS

2013-02-26 14:05:29

DTM Fix: Edited to remove script so people have to register to download ;)

Xeronate

2013-02-26 14:18:34

What are the chances of getting banned using this script? I see there are some random waits, slightly random clicks, but I don't see any dedicated antiban? If I use it I'll probably add some antiban to it? Any other suggestions on how to decrease banrate? Grats on the release. I'll post a proggy if I decide its safe =)

MrCM

2013-02-26 15:27:17

script doesnt sell at shop
Some one can fix that?
also why is there
a dropoak produce for a sell script 9 yess im a newbie but learning

Pkingd3vil

2013-02-26 15:32:46

From: MrCM
script doesnt sell at shop
Some one can fix that?
also why is there
a dropoak produce for a sell script 9 yess im a newbie but learning


Yeah it seems to be made if you are facing south but it sets the camera north

MrCM

2013-02-26 15:42:54

it keeps right clicking on oak logs then right click and hold on use.
then try to start cutting again

h4x_

2013-02-26 16:00:47

From: MrCM
it keeps right clicking on oak logs then right click and hold on use.
then try to start cutting again


yeah im getting this sometimes too

xxwn

2013-02-26 16:07:26

script says Unknown identifier 'Mouse'

Magicjerk

2013-02-26 16:35:39

I just keep getting this error "Exception in Script: Unable to find file 'P07Include.Simba' used from 'C:\Users\Owner\Downloads\Alpha Kchop.simba'"
anyone help em with this?

[XoL]

2013-02-26 16:44:00

You need the 07 include (it should be in this section somewhere)

Magicjerk

2013-02-26 16:47:14

Here is my script, I am not sure where to put the 07

program HPowerFish;

{$I SRL/SRL.Simba}
{$I SRL/SRL/Misc/Debug.Simba}
{$I P07Include.Simba}

var
x,y,shopDTM: Integer;
procedure DTMFree;
begin
FreeDTM(ShopDTM);
end;

procedure chopOak;
begin
repeat
if P07_FindObjCustom(x,y, ['Oak'], [1199684, 3300694], 5) Then
ClickMouse2(mouse_left);
Wait (RandomRange(5000,6000))
until(P07_InvFull)
end;

procedure dropOak;
begin
If P07_InvFull then
P07_DropAllExcept([1]);
Wait(200+Random(100))
end;
procedure walkShop;
begin
if P07_InvFull then

P07_MakeCompassNorth;

if(findDTM(ShopDTM, x, y, 565, 7, 717, 157)) then
begin
Mouse(x, y, random(10), random(10), true);
end;
P07_FFlag;
wait (1000+Random(200));
end;
procedure openShop;
begin
if P07_FindObjCustom(x,y, ['hop', 'assistant'], [3367053, 5728897], 5) then
begin
Mouse(x,y, Random(2), Random(2), false);
P07_ChooseOptionMulti(['rade']);
end
else
begin
walkShop;
end;
P07_FFlag;
wait(10+Random(5));
MMouse(623, 448,random(20),random(20));
ClickMouse2(mouse_right);
wait(1000+Random(200));
P07_ChooseOptionMulti(['10']);
MMouse(623, 448,random(20),random(20));
ClickMouse2(mouse_right);
wait(1000+Random(200));
P07_ChooseOptionMulti(['10']);
MMouse(623, 448,random(20),random(20));
ClickMouse2(mouse_right);
wait(1000+Random(200));
P07_ChooseOptionMulti(['10']);
end;
procedure walkOak;
begin
MMouse(608, 84, random(1),random(1));
ClickMouse2(mouse_left);
end;
procedure DTMZ;
begin
shopDTM := DTMFromString('mQwAAAHicY2ZgYJjGxMAwFYgnAnEikB8LxDFA3GDIyJAToMMQrCPGgAwYkTAQAADoeQUS');
end;
procedure FREEDTMZ;
begin
FreeDTM(shopDTM);
end;
begin
SetupP07Include;
DTMZ;
AddOnTerminate('DTMFree');
repeat
chopOak;
walkShop;
openShop;
walkOak;
until(not P07_Loggedin);
end.

Magicjerk

2013-02-26 17:10:44

Anyone know how to fix this?


From: Magicjerk
Here is my script, I am not sure where to put the 07

program HPowerFish;

{$I SRL/SRL.Simba}
{$I SRL/SRL/Misc/Debug.Simba}
{$I P07Include.Simba}

var
x,y,shopDTM: Integer;
procedure DTMFree;
begin
FreeDTM(ShopDTM);
end;

procedure chopOak;
begin
repeat
if P07_FindObjCustom(x,y, ['Oak'], [1199684, 3300694], 5) Then
ClickMouse2(mouse_left);
Wait (RandomRange(5000,6000))
until(P07_InvFull)
end;

procedure dropOak;
begin
If P07_InvFull then
P07_DropAllExcept([1]);
Wait(200+Random(100))
end;
procedure walkShop;
begin
if P07_InvFull then

P07_MakeCompassNorth;

if(findDTM(ShopDTM, x, y, 565, 7, 717, 157)) then
begin
Mouse(x, y, random(10), random(10), true);
end;
P07_FFlag;
wait (1000+Random(200));
end;
procedure openShop;
begin
if P07_FindObjCustom(x,y, ['hop', 'assistant'], [3367053, 5728897], 5) then
begin
Mouse(x,y, Random(2), Random(2), false);
P07_ChooseOptionMulti(['rade']);
end
else
begin
walkShop;
end;
P07_FFlag;
wait(10+Random(5));
MMouse(623, 448,random(20),random(20));
ClickMouse2(mouse_right);
wait(1000+Random(200));
P07_ChooseOptionMulti(['10']);
MMouse(623, 448,random(20),random(20));
ClickMouse2(mouse_right);
wait(1000+Random(200));
P07_ChooseOptionMulti(['10']);
MMouse(623, 448,random(20),random(20));
ClickMouse2(mouse_right);
wait(1000+Random(200));
P07_ChooseOptionMulti(['10']);
end;
procedure walkOak;
begin
MMouse(608, 84, random(1),random(1));
ClickMouse2(mouse_left);
end;
procedure DTMZ;
begin
shopDTM := DTMFromString('mQwAAAHicY2ZgYJjGxMAwFYgnAnEikB8LxDFA3GDIyJAToMMQrCPGgAwYkTAQAADoeQUS');
end;
procedure FREEDTMZ;
begin
FreeDTM(shopDTM);
end;
begin
SetupP07Include;
DTMZ;
AddOnTerminate('DTMFree');
repeat
chopOak;
walkShop;
openShop;
walkOak;
until(not P07_Loggedin);
end.

lpodtouch

2013-02-26 17:30:01

what is
{$i P07Include.simba} ?

kontempt

2013-02-26 17:30:58

mine doesnt sell them?

MrCM

2013-02-26 17:42:24

From: Magicjerk
I just keep getting this error "Exception in Script: Unable to find file 'P07Include.Simba' used from 'C:\Users\Owner\Downloads\Alpha Kchop.simba'"
anyone help em with this?



just look for it itsnt hard.


also make of this bott should make anti_leach for this

Magicjerk

2013-02-26 17:59:43

From: MrCM
just look for it itsnt hard.


also make of this bott should make anti_leach for this


I really dont know what to look for. I am extremely clueless. Where am I trying to put what.

Knoot

2013-02-26 18:02:50

Back from work now.
@DannyRS, thank you for the help. Much appreciated.

Right now there's no anti-ban at all except for some random waits. My first script ever and It's very skiddie. Didn't really have time to test the script but I'll do that now.

From: MrCM
script doesnt sell at shop
Some one can fix that?
also why is there
a dropoak produce for a sell script 9 yess im a newbie but learning

Because I just had it to be a power Oak chopper at first but then figured I wanted to try DTM walking.

Magicjerk

2013-02-26 18:19:23

Can you help me with my problem?

Knoot

2013-02-26 18:26:25

From: Magicjerk
Can you help me with my problem?


Try the new version! :)

New version features:
Fixed FreeDTM(thanks DannyRS)

Fixed walking!

Imanoobbot

2013-02-26 18:47:49

As I got 15 wc i will test this out now.
Is line 43 the anit leech lol?

You should definietly watch into pixelshift. It will improve your script alot as it is very very botlike at the moment klicking the tree 10 times while cutting it. ;)

Hope to see this getting improved by alot.

Knoot

2013-02-26 19:10:19

From: Imanoobbot
As I got 15 wc i will test this out now.
Is line 43 the anit leech lol?

You should definietly watch into pixelshift. It will improve your script alot as it is very very botlike at the moment klicking the tree 10 times while cutting it. ;)

Hope to see this getting improved by alot.

There is no anti-leech in the script :) The dropOak procedure is just for testing.

Okay I will look into pixelshift tomorrow :) Thank you!

Magicjerk

2013-02-26 19:11:21

From: Knoot
Try the new version! :)

New version features:
Fixed FreeDTM(thanks DannyRS)

Fixed walking!


I did….it stills says


Exception in Script: Unable to find file 'P07Include.Simba' used from 'C:\Users\Owner\Downloads\Alpha Kchop v0.2.simba'

Knoot

2013-02-26 19:15:50

From: Magicjerk
I did….it stills says


Exception in Script: Unable to find file 'P07Include.Simba' used from 'C:\Users\Owner\Downloads\Alpha Kchop v0.2.simba'


http://villavu.com/forum/showthread.php?t=96863

Nthan

2013-02-26 19:29:54

Two problems with this script - overall a nice release. It collects a full invent of Oak Logs, but it doesn't go to the shop afterwards to sell the logs. It seems to right click the logs and hover over the Use option, before clicking the Oak Tree again with a full invent. The second problem is stemming on from what Imanoobbot stated in the above post - it clicks every so many seconds. The problem with this is when your training early levels with a Bronze-Iron Hatchet (when gathering in general is relatively slow), and resets the wood-chop. This means if you have the click rate assigned to every 5-7 seconds, a piece of wood must be mined in this instance otherwise one won't be gathered. Hope this helps.:)

Knoot

2013-02-26 19:33:35

From: Nthan
Two problems with this script - overall a nice release. It collects a full invent of Oak Logs, but it doesn't go to the shop afterwards to sell the logs. It seems to right click the logs and hover over the Use option, before clicking the Oak Tree again with a full invent. The second problem is stemming on from what Imanoobbot stated in the above post - it clicks every so many seconds. The problem with this is when your training early levels with a Bronze-Iron Hatchet (when gathering in general is relatively slow), and resets the wood-chop. This means if you have the click rate assigned to every 5-7 seconds, a piece of wood must be mined in this instance otherwise one won't be gathered. Hope this helps. :)

Did you try the new release? It should fix the shop problem.

I know as of now it wont notice if you're actually woodcutting or not. I'll have to figure out a way to do that so it won't click every X second.

area

2013-02-26 19:45:45

[Error] C:\Simba\Scripts\Alpha Kchop v0.2.simba(45:3): comma (',') expected at line 44

What is the fix to this?

Knoot

2013-02-26 19:54:21

From: area
[Error] C:\Simba\Scripts\Alpha Kchop v0.2.simba(45:3): comma (',') expected at line 44

What is the fix to this?

Add ); at the end of line 43.

Nthan

2013-02-26 20:21:24

I've just retried it now, and I can confirm - for me anyway - that Kchop v0.2 cuts Oak Logs fine, but will not sell them. It right-clicks a random log in the invent and hovers over use, but does nothing else past this point. Anybody else able to get it working?

Knoot

2013-02-26 20:41:06

From: Nthan
I've just retried it now, and I can confirm - for me anyway - that Kchop v0.2 cuts Oak Logs fine, but will not sell them. It right-clicks a random log in the invent and hovers over use, but does nothing else past this point. Anybody else able to get it working?


That's weird, works for me atleast!

DannyRS

2013-02-26 20:47:33

From: Nthan
I've just retried it now, and I can confirm - for me anyway - that Kchop v0.2 cuts Oak Logs fine, but will not sell them. It right-clicks a random log in the invent and hovers over use, but does nothing else past this point. Anybody else able to get it working?


This is some weird bug with my Include chooseoption, I have no idea why it works for 95% of user's and bugs for 5%, could you screenshot a right click on something and PM it to me?

May help me solve the problem for you 5%er's :)

xShadow

2013-02-26 23:37:01

It's probably a noob error, but I get an error when running the script:
[Error] C:\Simba\Scripts\Alpha Kchop v0.2.simba(50:3): Unknown identifier
'P07_FFlag' at line 49
Compiling failed.

Is this anti-leech?

aliko

2013-02-27 00:38:24

WHY AM I GETTING THIS:


The latest Simba is Simba 992. Changes from 991 are mostly just lape
updates: http://villavu.com/forum/showthread.php?t=94351


Thank you for using Simba,
Hakuna Matata.

Exception in Script: Unable to find file 'SRL/SRL.Simba' used from 'C:\Users\Owner\Downloads\Alpha Kchop v0.2 (1).simba'

Knoot

2013-02-27 02:21:03

From: aliko
WHY AM I GETTING THIS:


The latest Simba is Simba 992. Changes from 991 are mostly just lape
updates: http://villavu.com/forum/showthread.php?t=94351


Thank you for using Simba,
Hakuna Matata.

Exception in Script: Unable to find file 'SRL/SRL.Simba' used from 'C:\Users\Owner\Downloads\Alpha Kchop v0.2 (1).simba'



http://villavu.com/forum/showthread.php?t=96863

DeadOwnz

2013-02-27 02:25:08

If you could add banking support that would be amazing.

Imanoobbot

2013-02-27 08:17:38

From: Knoot
There is no anti-leech in the script :) The dropOak procedure is just for testing.

Okay I will look into pixelshift tomorrow :) Thank you!


If I remember correctly, in that line was ) and a semicolon left or something like that. Was wondering :)

Knoot

2013-02-27 08:24:52

From: Imanoobbot
If I remember correctly, in that line was ) and a semicolon left or something like that. Was wondering :)
Did you manage to get it running?

Working on adding fletching support. More $

Omokest

2013-02-27 13:13:06

I currently am babysitting this script (v0.4) as I work.
It will chop the oaks fine, but when it fletches it only does ten. I modified your shortBower a bit to do a full inventory:

if(findDTM(oakDTM, x, y, P07_MIX1, P07_MIY1, P07_MIX2, P07_MIY2)) then
begin
MMouse(x,y,Random(10),Random(5));
wait(10+Random(5));
ClickMouse2(mouse_left);
writeln('SUP LOG');
MMouse(75, 408,Random(20),Random(15));
wait(10+Random(5));
ClickMouse2(mouse_right);
wait(RandomRange(300,420));
P07_ChooseOptionMulti(['ake X', 'X']);
wait(RandomRange(750,1000));
SendKeys('99', 95, 35);
P07_UseKey(13);
wait(20000+Random(10000));
end;


Once I fixed this issue, I noticed it doesn't sell to the shop. It tries to click West, runs for a bit, then comes back to the oaks and tries to cut more oaks, then gets stuck in a loop of running west (when the shop is east) and clicking the knife and then a shortbow.

MrCM

2013-02-27 15:13:02

From: Omokest
I currently am babysitting this script (v0.4) as I work.
It will chop the oaks fine, but when it fletches it only does ten. I modified your shortBower a bit to do a full inventory:


Once I fixed this issue, I noticed it doesn't sell to the shop. It tries to click West, runs for a bit, then comes back to the oaks and tries to cut more oaks, then gets stuck in a loop of running west (when the shop is east) and clicking the knife and then a shortbow.


yes it seems that the cordinates are wrong
dont think its a include bug DannyRS

Knoot

2013-02-27 15:27:23

From: Omokest
I currently am babysitting this script (v0.4) as I work.
It will chop the oaks fine, but when it fletches it only does ten. I modified your shortBower a bit to do a full inventory:


Once I fixed this issue, I noticed it doesn't sell to the shop. It tries to click West, runs for a bit, then comes back to the oaks and tries to cut more oaks, then gets stuck in a loop of running west (when the shop is east) and clicking the knife and then a shortbow.



From: MrCM
yes it seems that the cordinates are wrong
dont think its a include bug DannyRS

You guys are right, it's not the include bug. It's the shop DTM that is bad. I will figure out a way to fix that when I get back home.

And thanks Omokest for adding the Make X thing, will add to next release.
Will also try to add a better way of finding oaks as this one is very sloppy.
And a way to decide wether you want to make arrow shafts or long/shortbows.

At the moment, you can scroll down in the script and disable the walk to shop and just enable the drop procedure.

iBigtruck19

2013-02-27 15:42:48

Doesn't seem to click, the mouse goes back and to all over the place but does nothing else

npenfold

2013-02-27 15:45:23

From: iBigtruck19
Doesn't seem to click, the mouse goes back and to all over the place but does nothing else


Same problem

Omokest

2013-02-28 14:12:47

I'm powerleveling some fletching, so I modified your code to make it a simple version. This one will chop oaks, fletch shortbows, then drop inventory. If you level fletching you will end up just dropping logs instead of completing the fletching. And sometimes it will not fletch the whole inventory, so you may drop some logs. I only need to get a few more levels so I didn't put much time into these changes. I did add some AntiBan though. I also included one simple AntiLeech.

Enjoy if you need some quick power leveling while changes are made to the original script.

program kChop;

{$I SRL/SRL.Simba}
{$I SRL/SRL/Misc/Debug.Simba}
{$I P07Include.Simba}
{$I LOL/AntiLeech.Simba}

var
x,y,knifeDTM,logDTM,shortBowDTM,oakDTM: Integer;
procedure DTMFree;
begin
FreeDTM(knifeDTM);
FreeDTM(logDTM);
FreeDTM(oakDTM);
FreeDTM(shortBowDTM);
writeln('Freed DTM''s');
end;
procedure DTMZ;
begin
knifeDTM := DTMFromString('mrAAAAHic42BgYEhjYmDIBuICIC4B4iIgzgHidCBOBuKPQDWvgPghEN8E4mtAfB+InwPxewYQYCSA8QNidQMAf2MKpg==');
logDTM := DTMFromString('mWAAAAHicY2FgYOhjYmCYDsT9QNwLxNyMDAxcQCwAxKxAnOUlyZAXYsSwrs8fjNEBIxoGAQCU9wdX');
oakDTM := DTMFromString('mFQEAAHic42VgYJjAxMAwD4iXAPECIJ4GxN1A3A7lLwXiPiCeDcRToXKijAwMgkDMB8T/gWYwAGkWIOaG0pyMELG/QEoYqhYsQDImHVBsCwCL+Qpl');
shortBowDTM := DTMFromString('mlwAAAHicY2dgYOhiYmCYCsSzgHgOEC8G4vlA3A3EZowMDEZArAvEqkCsAMRaUDEGBkY8GDcgQhcAwXAFgw==');
writeln('Loaded DTM''s');
end;
procedure chopOak;
begin
repeat
if P07_FindObjCustom(x,y, ['Oak'], [1199684, 3300694], 5) Then
ClickMouse2(mouse_left);
writeln('Chopping oak');
wait(RandomRange(5000,6000))
until(P07_InvFull)
end;
procedure shortBower;
begin
writeln('Fletching shortbows');
wait(Random(1000));
if(findDTM(knifeDTM, x, y, P07_MIX1, P07_MIY1, P07_MIX2, P07_MIY2)) then
begin
MMouse(x,y,Random(10),Random(5));
ClickMouse2(mouse_left);
writeln('Found knife');
wait(Random(500));
if(findDTM(oakDTM, x, y, P07_MIX1, P07_MIY1, P07_MIX2, P07_MIY2)) then
begin
MMouse(x,y,Random(10),Random(5));
wait(10+Random(5));
ClickMouse2(mouse_left);
writeln('Found oak logs');
MMouse(75, 408,Random(20),Random(15));
wait(10+Random(5));
ClickMouse2(mouse_right);
wait(RandomRange(300,420));
P07_ChooseOptionMulti(['ake X', 'X']);
wait(RandomRange(750,1000));
SendKeys('99', 95, 35);
P07_UseKey(13);
wait(30000+Random(10000));
end;
end;
end;
procedure dropOak;
begin
If P07_InvFull then
writeln('Dropping inventory');
P07_DropAllExcept([1]);
wait(200+Random(100))
end;
Function AntiBan: Boolean;
begin
case random(300) of
0: P07_HoverSkill('woodcutting', random(5000));
1: P07_MakeCameraAngleLow;
2: P07_MakeCompassSouth;
3: P07_MakeCompassEast;
4: P07_MakeCompassWest;
end;
end;
begin
SetupP07Include;
DTMZ;
AddOnTerminate('DTMFree');
repeat
AntiBan;
chopOak;
shortBower;
dropOak;
until(not P07_Loggedin);
TerminateScript;
end.

Ayden

2013-02-28 21:03:20

Error: Exception: Font [P07UpChars] not found. at line 108
The following DTMs were not freed: [0, 1, 2, 3, 4, 5, 6, 7, 8]

Gh0stt

2013-03-01 07:47:29

Hello, your script keeps sending me this message:
'Choppin' some oak!'

Yet it never seems to click.


I know it is coming from: if P07_FindObjCustom(x,y, ['Oak'], [1199684, 3300694], 5) Then

So it is finding the object but for some bizarre reason it isn't actually clicking at all!

Any help would be apreciated… This same problem has happened to me with all the scripts I have made and those I have downloaded >.< It is very frustrating :(!


EDIT:
EDIT:
EDIT:
Here is the answer to my problem:
From: Prayer94
To all those having the problem of the scripts mouse hovering but not actually clicking go to simba in your c drive and make sure that the07upchars you downloaded is one folder.. As in not 07upchars with another 07upchars folder inside it.. This was my problem for all scripts and once I removed the secondary folder and had one folder with the up char files all my scripts worked.. If you dont understand I will try and explain better typed this in a rush sorry

Leetness

2013-03-01 10:14:31

[Error] C:\Simba\Includes\SRL\SRL\core\simba.simba(487:12): Unknown identifier '' at line 486
Compiling failed.

Anyone have an answer?

const
NPCChars = CharsNPC; < This is line 486
{$endif}

codeseth42

2013-03-01 18:48:58

[Error] C:\Users\vdubar\Downloads\P07Include.Simba(57:3): Unknown identifier 'MMouse' at line 56
Compiling failed.
how do i fix?

JordG10

2013-03-04 06:30:12

Error: Exception: Font [P07UpChars] not found. at line 108
The following DTMs were not freed: [0, 1, 2, 3, 4, 5, 6, 7, 8]

getting this error

johnvacan159

2013-03-04 10:11:06

I get this error help

Choppin' some oak!
Choppin' some oak!
Error: Exception: Font [P07UpChars] not found. at line 108
The following DTMs were not freed: [0, 1, 2, 3, 4, 5, 6, 7, 8]

and when i run lape it gives me this:

Exception in Script: Operator expected at line 453, column 93 in file "C:\Simba\Includes\SRL\SRL\core\gametab.simba"

SlyTaco

2013-03-04 23:12:39

The script just hovers over the trees but it doesn't click them.

Real Regulater

2013-03-05 00:48:42

i made a fix to this script to check when fletching, woodcutting, and waiting. It uses the make x, and istead of clicking sell 10 three times, it will keep doing sell 10 until it sold all of them. I currently edited it to make longbows instead of shortbows, but i dont feel like fixing the walking. I already finished my oak fletching so i might as well release this to you guys, and if anyone wants to fix the walking and maybe clean it up a little. It was lazy/sloppy coding as i didnt really feel like doing too much. Here it is for you guys. This also fixes the problem when it clicks chop oak over and over again, instead this checks if your in the process of woodcutting then waits a little and checks again, etc.

program kChop; //edited by Real Regulater

{$I SRL/SRL.Simba}
{$I SRL/SRL/Misc/Debug.Simba}
{$I P07Include.Simba}

var
x,y,shopDTM,invCounter,knifeDTM,aInteger,thaTime,logDTM,shortBowDTM,oakDTM,fletching,fletchtype: Integer;
procedure Settings;
begin
//fletching := 0-1 0=No, 1=Yes
fletching := 1
//fletching 0-3 0=nothing,, 1= short bow, 2= long bow 3 = crossbow
fletchtype := 1
end;
procedure DTMFree;
begin
FreeDTM(ShopDTM);
FreeDTM(knifeDTM);
FreeDTM(logDTM);
FreeDTM(oakDTM);
FreeDTM(shortBowDTM);
writeln('Freed DTM''s');
end;
procedure DTMZ;
begin
//shopDTM := DTMFromString('mQwAAAHicY2ZgYFjCxMCwDIqjgPxQIA4C4iNXbzB0BksBWYwMyIARCQMBACIZBmY=');
shopDTM := DTMFromString('mrAAAAHic42BgYFjKxMCwGojXAPFyIJ4PxYuAeBkQRwDVhANxLBAnAXEcEEcCcSgQhwAxKycjAyMjKmZgQGbjB4wEMAwAAI8dCDo=');
knifeDTM := DTMFromString('mrAAAAHic42BgYEhjYmDIBuICIC4B4iIgzgHidCBOBuKPQDWvgPghEN8E4mtAfB+InwPxewYQYCSA8QNidQMAf2MKpg==');
logDTM := DTMFromString('mWAAAAHicY2FgYOhjYmCYDsT9QNwLxNyMDAxcQCwAxKxAnOUlyZAXYsSwrs8fjNEBIxoGAQCU9wdX');
oakDTM := DTMFromString('mFQEAAHic42VgYJjAxMAwD4iXAPECIJ4GxN1A3A7lLwXiPiCeDcRToXKijAwMgkDMB8T/gWYwAGkWIOaG0pyMELG/QEoYqhYsQDImHVBsCwCL+Qpl');
shortBowDTM := DTMFromString('mlwAAAHicY2dgYOhiYmCYCsSzgHgOEC8G4vlA3A3EZowMDEZArAvEqkCsAMRaUDEGBkY8GDcgQhcAwXAFgw==');
writeln('Loaded DTM''s');
end;
Function IsCutting: Boolean;
var
PBox : TBox;
Begin
PBox := IntToBox(238, 149, 286, 186);
Result := (AveragePixelShift(PBox, 250, 350) > 350);
//Writeln(IntToStr(AveragePixelShift(PBox, 500, 650)));
End;
Function IsWcing: Boolean;
var
PBox: TBox;
Begin
PBox := IntToBox(238, 149, 286, 186);
Result := (AveragePixelShift(PBox, 250, 350) > 150);
//Writeln(IntToStr(AveragePixelShift(PBox, 500, 650)));
End;
Function IsFletching: Boolean;
var
PBox: TBox;
Begin
PBox := IntToBox(250, 145, 273, 175);
Result := (AveragePixelShift(PBox, 250, 350) > 75);
//Writeln(IntToStr(AveragePixelShift(PBox, 500, 650)));
End;
Function sell: Boolean;
begin
wait (100+Random(10));
writeln('Found the shortbow!');
MMouse(x,y,5,5);
ClickMouse2(mouse_right);
wait(1000+Random(200));
P07_ChooseOptionMulti(['10']);
end;
Function AntiBan: Boolean;
Begin
case random(300) of
0: P07_HoverSkill('woodcutting', random(5000));
1: P07_MakeCameraAngleLow;
2: P07_MakeCompassSouth;
3: P07_MakeCompassEast;
4: P07_MakeCompassWest;
5: MMouse(random(700), random(400), 0, 0);
end;
End;
procedure chopOak;
begin
If not IsWcing then
if P07_FindObjCustom(x,y, ['Oak'], [1199684, 3300694], 5) Then
ClickMouse2(mouse_left);
writeln('Choppin'' some oak!');
Wait (RandomRange(5000,6000))
end;
procedure waiting;
begin
MarkTime(thaTime);
aInteger := P07_InvCount
if IsCutting then
repeat
if TimeFromMark(thaTime) > 12000 then Break;
if not isCutting then break;
Wait(500);
Until (P07_InvCount > aInteger)
end;
procedure chopTree;
begin
If not IsWcing then
if P07_FindObjCustom(x,y, ['ree'], [1199684, 3300694], 5) Then
ClickMouse2(mouse_left);
writeln('Choppin'' some oak!');
Wait (RandomRange(5000,6000))
end;
procedure arrowShafter;
begin

writeln('We are shafting!');
wait(Random(1000));
if(findDTM(knifeDTM, x, y, P07_MIX1, P07_MIY1, P07_MIX2, P07_MIY2)) then
begin
MMouse(x,y,Random(10),Random(5));
ClickMouse2(mouse_left);
writeln('We found a knife!');
wait(Random(500));
if(findDTM(logDTM, x, y, P07_MIX1, P07_MIY1, P07_MIX2, P07_MIY2)) then
begin
MMouse(x,y,Random(10),Random(5));
wait(10+Random(5));
ClickMouse2(mouse_left);
writeln('SUP LOG');
MMouse(75, 408,Random(20),Random(15));
wait(10+Random(5));
ClickMouse2(mouse_right);
wait(10+Random(5));
P07_ChooseOptionMulti(['10']);
wait(20000+Random(10000));
end;
end;


end;
procedure shortBower;
begin
writeln('We are shortBowing!');
wait(Random(1000));
if(findDTM(knifeDTM, x, y, P07_MIX1, P07_MIY1, P07_MIX2, P07_MIY2)) then
begin
MMouse(x,y,Random(10),Random(5));
ClickMouse2(mouse_left);
writeln('We found a knife!');
wait(Random(500));
if(findDTM(oakDTM, x, y, P07_MIX1, P07_MIY1, P07_MIX2, P07_MIY2)) then
begin
MMouse(x,y,Random(10),Random(5));
wait(10+Random(5));
ClickMouse2(mouse_left);
writeln('SUP LOG');
MMouse(262,407,7,7);
wait(randomrange(15,100));
ClickMouse2(mouse_right);
P07_ChooseOptionMulti(['ke X', 'X']);
Wait(RandomRange(750,900));
SendKeys(IntToStr(RandomRange(27, 99)), 95, 35);
Wait(RandomRange(300, 400));
P07_UseKey(13);
wait(randomrange(10000,30000));
end;
end;
end;
procedure makeShortBows;
Begin
invCounter := P07_InvCount;
repeat
MarkTime(thaTime);
If not (P07_InvCount < invCounter) then
begin
If FindDTM(oakDTM, x, y, P07_MIX1, P07_MIY1, P07_MIX2, P07_MIY2) and not IsFletching then
shortBower;
end
else
invCounter := P07_Invcount;
repeat
Wait(5000);
until (TimeFromMark(thaTime) > 2000);
until not FindDTM(oakDTM, x, y, P07_MIX1, P07_MIY1, P07_MIX2, P07_MIY2)
end;
procedure dropOak;
begin
If P07_InvFull then
P07_DropAllExcept([1]);
Wait(200+Random(100))
end;
procedure walkShop;
begin
P07_MakeCompassSouth;
if P07_InvFull then
writeln('Trying to walk to shop!');
begin
if(findDTM(ShopDTM, x, y, 565, 7, 717, 157)) then
begin
writeln('Getting to tha shoppah!');
Mouse(x, y, random(10), random(10), true);
end;
P07_FFlag;
wait (1000+Random(200));
end;
end;
procedure walkOak;
begin
P07_MakeCompassNorth;
MMouse(608, 84, random(1),random(1));
ClickMouse2(mouse_left);
writeln('Walking back to the Oak');
end;
procedure openShop;
begin
if P07_FindObjCustom(x,y, ['hop', 'assistant'], [3367053, 5728897], 5) then
begin
Mouse(x,y, Random(2), Random(2), false);
P07_ChooseOptionMulti(['rade']);
writeln('Trading!');
end;
P07_FFlag;
wait(10+Random(5));
if(findDTM(shortBowDTM, x, y, P07_MIX1, P07_MIY1, P07_MIX2, P07_MIY2)) then
begin
invCounter := P07_InvCount;
repeat
walkShop;
openShop;
writeln('Trying to walk to shop!');
if(findDTM(ShopDTM, x, y, 565, 7, 717, 157)) then
begin
writeln('Getting to tha shoppah!');
Mouse(x, y, random(10), random(10), true);
end;
P07_FFlag;
wait (1000+Random(200));
MarkTime(thaTime);
If not (P07_InvCount < invCounter) then
begin
If FindDTM(shortBowDTM, x, y, P07_MIX1, P07_MIY1, P07_MIX2, P07_MIY2) and not sell then
sell;
end
else
invCounter := P07_Invcount;
repeat
Wait(200);
until (TimeFromMark(thaTime) > 2000);
until not FindDTM(shortBowDTM, x, y, P07_MIX1, P07_MIY1, P07_MIX2, P07_MIY2)
walkOak;
end;
end;
begin
SetupP07Include;
DTMZ;
AddOnTerminate('DTMFree');
Settings;
repeat
// chopTree;
// arrowShafter;
if(P07_InvFull) then
repeat
makeShortBows;
until not FindDTM(oakDTM, x, y, P07_MIX1, P07_MIY1, P07_MIX2, P07_MIY2)
else
walkShop;
openShop;
if not (P07_InvFull) then
repeat
AntiBan;
chopOak;
waiting;
until (P07_InvFull);
until(not P07_Loggedin);
end.

kz1rs0dmg

2013-03-05 02:24:46

how the hell you use this script the script just finish cutting and stuck there

Ziqo

2013-03-05 02:54:28

From: kz1rs0dmg
how the hell you use this script the script just finish cutting and stuck there


+a .

Real Regulater

2013-03-05 17:10:48

From: Ziqo
+a .


look at some of the people who have edited the script. I put in a edited version that works much better, just a little glitchy with the walking method.

Carlito

2013-03-06 01:31:15

im fully updated and and tried to use the edited version and it doesn't work - keeps saying "we are shortbowing" i just wanted it to cut oaks. and the script posted by OP is just cutting but wont sell them

kingsattack

2013-03-06 07:01:45

i noticed a couple times it froze when got a woodcutting level up message once it hits full inventory

also log has to be in top left slot anything else seems to freeze it when full inv knife/shafts

Nipasd

2013-03-06 16:20:41

Can i use Smart with this? =O And for few scripts i've defined smart and it doesnt open the client.. same here.

burden

2013-03-07 19:55:28

Yes, you can
{$DEFINE SMART8}
{$I SRL/SRL.Simba}
{$I SRL/SRL/Misc/Debug.Simba}
{$I P07Include.Simba}

zeldoan

2013-03-08 08:56:13

added smart, and it is opening in a client window
BUT whenever the bot is making a click (in the botclient) the active window goes inactive (which makes it hard to type)
any solution?
kind regards

kingsattack

2013-03-10 17:00:58

when its chopping it keeps clicking the tree

also would be nice if you could also make it buy logs from shop fletch then and sell back

deploit

2013-03-13 01:40:21

help when i start the mouse goes to the tree and this Error: Exception: Font [P07UpChars] not found. at line 108
The following DTMs were not freed: [0, 1, 2, 3, 4, 5, 6, 7, 8]

exonyte

2013-03-19 16:54:10

i downloaded the script, ran it, but it doesn't open the client? it says "Choppin some oak!" and the mouse just hovers over the simba tabs and that's it. any help? read through the posts on this topic but nothing really helped

Alista94

2013-03-20 01:03:26

Getting this error:

[Error] C:\Users\Alistair\Downloads\Simba stuff\CutterShafter[DONE].simba(9:4): is ('=') expected at line 8
Compiling failed.

jeries

2013-03-26 16:57:14

I have the latest release, it chops oaks but it doesn't go to shop and sell them, Help?

psyco92yay

2013-03-27 17:32:38

[QUOTE=KnootStart it by between the 2 oaks behind the shop.
;1178252]Hello, this skiddie script chops Oak and sells to the General Store at Lumbridge.


Features [Added/In progress/Not Added]
Chops Oak behind General Store in Lumbridge.
Sell Oak logs to the Shop Assistant.
Makes Oak shortbows and sells
Deathwalking.
Home tele if lost.
Fix broken axe.

Update log:
v0.3 - Added Fletching
v0.4 - Fixed bad DTM's

Known bugs:
Wont free DTM's.
Bad DTM's

I've downloaded v.04 and it just keeps trying to cut logs instead of selling to shop. is there anything more specific i need to know?

poopa

2013-03-27 22:20:52

This script feels great, but there are minor errors occuring that are messing the whole operation up..
Sometimes the transition between the Oak and the "make Shortbow" is too quick, thus missing it.
If you level up whilst fletching, he doesn't start the cut again, which messes everything up..
This is a great looking foundation though, thanks for the upload!

TurboTrym

2013-03-28 22:40:40

The following DTMs were not freed: [0, 1, 2, 3, 4, 5, 6, 7, 8] what do i do, please help. thanks

trilithium1

2013-04-03 06:21:06

mine just says choppin some oak and it stands there and does nothing?

Stoic

2013-04-06 09:12:55

same as above

bigredmonster

2013-04-22 13:57:22

I just keep getting this…. Help pleaaaase?!

New window: 10617330
Exception in Script: Unable to find file 'P07Include.Simba' used from 'C:\Users\Downloads\Alpha Kchop v0.4 (1).simba'

shaun321

2013-04-25 05:45:24

Error: Exception: Font [P07UpChars] not found. at line 108
The following DTMs were not freed: [0, 1, 2, 3, 4, 5, 6, 7, 8]

Toofstah

2013-05-03 15:23:36

How do you even log in? >< I've always logged in via the Script having a login box with username/pw etc.

Ashaman88

2013-11-27 22:13:27

P07include outdated. Please use official one - shoot me a PM when/if this is updated.