juunhoad
2013-02-27 20:46:52
Hello guys,
I just started writing my first script for 07scape by reading tutorials and mainly by watching the scripting video from YoHoJoSRL.
Right now my script is only chopping the maple trees at seers village. I want to add bank later. First I need to know if the script is correct right now, I have no compile issues but still want to know if it functions right :)
I want to know if my antiban in the function 'ChopDownMaple' works correct this way for 07scape? because I saw it in a scripting video that was 2 years old.
And what do you think I can improve more?
I already saw in issue with chopping. There are 4 tree's at seers village. 3 tree's pretty close to eachother and 1 tree not. If the script comes to close at the 1 tree side it can't see the other tree's anymore. How can I fix this?
If you don't know what I mean, go to seers village.
I just started writing my first script for 07scape by reading tutorials and mainly by watching the scripting video from YoHoJoSRL.
Right now my script is only chopping the maple trees at seers village. I want to add bank later. First I need to know if the script is correct right now, I have no compile issues but still want to know if it functions right :)
program MapleChopper;
{$i SRL\SRL.simba}
{$I SRL/SRL/Misc/Debug.Simba}
{$I P07Include.Simba}
const
Version = '1,0';
Procedure P07_DeclarePlayer;
Begin
P07_PlayerName:='';
P07_PlayerPass:='';
end;
Function AntiBan: Boolean;
begin
case Random(250) of
0: P07_HoverSkill ('woodcutting', RandomRange(2500, 4000));
1: P07_MakeCompassSouth;
2: MMouse(random(700), random(400), 0, 0);
3: P07_MakeCompassEast;
4: P07_MakeCompassWest;
5: P07_MakeCameraAngleHigh;
end;
end;
Function ChopDownMaple: boolean;
var
x, y, TreeCounter: Integer;
begin
if P07_FindObjCustom(x, y, ['Cho', 'own','p d'], [20860, 21377, 19325], 10) then
begin
case Random(2) of
0: begin
ClickMouse2(mouse_left);
Wait(RandomRange(9000, 11000))
end;
1:
begin
ClickMouse2(mouse_right);
P07_WaitOptionMulti(['hop', 'own'],RandomRange(200,300))
Wait(RandomRange(9000, 11000));
end;
end;
repeat
MarkTime(TreeCounter);
Antiban;
Wait(100);
Until (TimeFromMark(TreeCounter) > 7000)
end;
end;
begin
ActivateClient;
SetupP07Include;
P07_DeclarePlayer;
repeat
ChopDownMaple;
until(false);
TerminateScript;
end. I want to know if my antiban in the function 'ChopDownMaple' works correct this way for 07scape? because I saw it in a scripting video that was 2 years old.
And what do you think I can improve more?
I already saw in issue with chopping. There are 4 tree's at seers village. 3 tree's pretty close to eachother and 1 tree not. If the script comes to close at the 1 tree side it can't see the other tree's anymore. How can I fix this?
If you don't know what I mean, go to seers village.