[Error] C:\Simba\Scripts\Alpha Kchop v0.2.simba(45:3): comma (',') expected at line 44
What is the fix to this?
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?
Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling
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?
Current Goals
Learning SIMBA Progress: 5%
Maxed G-Maul Pure - 07scape: approx 10%
SRL Members: [ ]
50 Relevant Posts: [ ]
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'
If you could add banking support that would be amazing.
I will try to answer all Runescape related questions!
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.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;
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.
Last edited by Knoot; 02-27-2013 at 08:30 PM.
Doesn't seem to click, the mouse goes back and to all over the place but does nothing else
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.
Simba Code: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.
Error: Exception: Font [P07UpChars] not found. at line 108
The following DTMs were not freed: [0, 1, 2, 3, 4, 5, 6, 7, 8]
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:
Last edited by Gh0stt; 03-01-2013 at 01:07 PM.
[Error] C:\Simba\Includes\SRL\SRL\core\simba.simba(487:12) : Unknown identifier '' at line 486
Compiling failed.
Anyone have an answer?
Code:const NPCChars = CharsNPC; < This is line 486 {$endif}
Last edited by Leetness; 03-01-2013 at 03:18 PM.
[Error] C:\Users\vdubar\Downloads\P07Include.Simba(57:3): Unknown identifier 'MMouse' at line 56
Compiling failed.
how do i fix?
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
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"
The script just hovers over the trees but it doesn't click them.
There are currently 1 users browsing this thread. (0 members and 1 guests)