Mufasa
05-30-2012, 01:47 PM
I've been following YoHoJo's Tutorials (http://www.youtube.com/playlist?list=PLAA8F9AF6A13ABD90&feature=plcp) on Youtube and ran into a problem =/
Not sure if it's just me being dumb and blind but I genuinely can't see anything wrong with it up to this point, it even compiles successfully.
I think I've followed the guide accurately, re-watched it a few times, paused it numerous times. Yet, for some reason I't wont run:fiery:
Sometimes the mouse doesn't move at all and other times it hovers over the inventory bag. I've changed the colour at least 20 times, the box size, the MinCount.
So it should look like this right? I believe I got them all;
Program ChopNDrop;
//{$DEFINE SMART}
{$i SRL/SRL.simba}
Const
SRLStats_Username = ''; // You can enter your SRL Stats Username here
SRLStats_Password = ''; // Enter your SRL Stats Password here
BreakEvery = '600'; // How Many Minutes To Break After
BreakFor = '5'; // How Long to Break For
NumbOfPlayers = 1; // How Many Players (Normally 1)
StartPlayer = 0; // 0 means First Character
Version = '1.0'; // Script Version
Procedure DeclarePlayers;
Var
i:integer;
Begin
NumberOfPlayers(NumbOfPlayers);
CurrentPlayer := StartPlayer;
for i := 0 to NumbOfPlayers-1 do
Players[0].BoxRewards := [''];
with Players [0] do
Begin
Name := ''; //Player Username.
Pass := ''; //Player Password.
Nick := ''; //Player Nickname (3-4 letters of username, not the first)
Active := True;
End;
End;
Procedure StatsGuise(wat:String);
Begin
Status(wat);
Disguise(wat);
End;
Function CheckAndClick(UpText, Option:String; X, Y:Integer; RClick:Boolean) :Boolean;
Begin
MMouse(x, y, 5, 5);
If WaitUptext(UpText, 5000) Then
Begin
Result:=True;
GetMousePos(x, y);
End else
Writeln('Uptext Wasnt found, Check the Function CheckAndClick');
If RClick Then
Begin
Mouse(X, Y, 0, 0, False);
Result:= WaitOption('tta', 3000)
End else
Writeln('Couldnt right click, Check the Function CheckAndClick');
Begin
Mouse(x, y, 0, 0, True);
Wait (100 + Random(50));
FFlag(0);
End;
End;
Procedure AntiBan;
Begin
If Not LoggedIn Then Exit;
Case Random(250) Of
0: PickUpMouse;
1: Wait(1200 + Random(1000));
2: Begin StatsGuise('Antiban') GameTab(tab_Stats) HoverSkill('Woodcutting', False) GameTab(28) End; //What skill to check?
3: Begin StatsGuise('Antiban') SleepAndMoveMouse(4000 + Random(1000)); End;
4: Begin StatsGuise('Antiban') GameTab(tab_Inv) ExamineInv; GameTab(28); End;
5: Begin StatsGuise('Antiban') RandomAngle(1); End;
6: Begin StatsGuise('Antiban') GameTab(tab_Stats) HoverSkill('random', False); GameTab(28) End;
7: Begin
RandomMovement;
SetAngle(SRL_ANGLE_HIGH);
End;
End;
End;
Procedure FailSafe(Reason:String);
Begin
Players[CurrentPlayer].Loc:=Reason;
Logout;
Stats_Commit;
TerminateScript;
End;
Function ChopDown: Boolean;
Var
x, y, PlusOne, TreeCounter: Integer;
Begin
PlusOne:= InvCount +1;
x:=MSCX;
y:=MSCY;
If FindObjTPA(x, y, 3491408, 5, 1, 15, 60, 600, ['Tree', 'down T', 'ree']) Then
Begin
StatsGuise('Hooray, we found a Tree');
GetMousePos(x, y);
Case Random(2) Of
0: Mouse(x, y, 5, 5, True);
1: Begin
Mouse(x, y, 5, 5, False);
WaitOption('Chop', 200 + Random(100));
End;
End;
End else
Writeln('ObjTpa wasnt found, Check the Function Chopdown');
Repeat
MarkTime(TreeCounter);
Antiban;
Wait(1000);
If InvCount=Plusone Then
Writeln('We got one');
Until (InvCount=PlusOne) Or (TimeFromMark(TreeCounter) > 4000)
End;
Begin
SetupSRL;
DeclarePlayers;
Repeat
ChopDown;
Until(InvFull);
if (InvFull) then
Writeln('Inventory Full, Ending Script');
StatsGuise('Inventory Full, Ending Script');
End.
Also; To YoHoJo, Thank You for the tutorials ^-^ You're one cool frood:spot:.
http://img214.imageshack.us/img214/8554/ddddddddddddddu.jpg
Not sure if it's just me being dumb and blind but I genuinely can't see anything wrong with it up to this point, it even compiles successfully.
I think I've followed the guide accurately, re-watched it a few times, paused it numerous times. Yet, for some reason I't wont run:fiery:
Sometimes the mouse doesn't move at all and other times it hovers over the inventory bag. I've changed the colour at least 20 times, the box size, the MinCount.
So it should look like this right? I believe I got them all;
Program ChopNDrop;
//{$DEFINE SMART}
{$i SRL/SRL.simba}
Const
SRLStats_Username = ''; // You can enter your SRL Stats Username here
SRLStats_Password = ''; // Enter your SRL Stats Password here
BreakEvery = '600'; // How Many Minutes To Break After
BreakFor = '5'; // How Long to Break For
NumbOfPlayers = 1; // How Many Players (Normally 1)
StartPlayer = 0; // 0 means First Character
Version = '1.0'; // Script Version
Procedure DeclarePlayers;
Var
i:integer;
Begin
NumberOfPlayers(NumbOfPlayers);
CurrentPlayer := StartPlayer;
for i := 0 to NumbOfPlayers-1 do
Players[0].BoxRewards := [''];
with Players [0] do
Begin
Name := ''; //Player Username.
Pass := ''; //Player Password.
Nick := ''; //Player Nickname (3-4 letters of username, not the first)
Active := True;
End;
End;
Procedure StatsGuise(wat:String);
Begin
Status(wat);
Disguise(wat);
End;
Function CheckAndClick(UpText, Option:String; X, Y:Integer; RClick:Boolean) :Boolean;
Begin
MMouse(x, y, 5, 5);
If WaitUptext(UpText, 5000) Then
Begin
Result:=True;
GetMousePos(x, y);
End else
Writeln('Uptext Wasnt found, Check the Function CheckAndClick');
If RClick Then
Begin
Mouse(X, Y, 0, 0, False);
Result:= WaitOption('tta', 3000)
End else
Writeln('Couldnt right click, Check the Function CheckAndClick');
Begin
Mouse(x, y, 0, 0, True);
Wait (100 + Random(50));
FFlag(0);
End;
End;
Procedure AntiBan;
Begin
If Not LoggedIn Then Exit;
Case Random(250) Of
0: PickUpMouse;
1: Wait(1200 + Random(1000));
2: Begin StatsGuise('Antiban') GameTab(tab_Stats) HoverSkill('Woodcutting', False) GameTab(28) End; //What skill to check?
3: Begin StatsGuise('Antiban') SleepAndMoveMouse(4000 + Random(1000)); End;
4: Begin StatsGuise('Antiban') GameTab(tab_Inv) ExamineInv; GameTab(28); End;
5: Begin StatsGuise('Antiban') RandomAngle(1); End;
6: Begin StatsGuise('Antiban') GameTab(tab_Stats) HoverSkill('random', False); GameTab(28) End;
7: Begin
RandomMovement;
SetAngle(SRL_ANGLE_HIGH);
End;
End;
End;
Procedure FailSafe(Reason:String);
Begin
Players[CurrentPlayer].Loc:=Reason;
Logout;
Stats_Commit;
TerminateScript;
End;
Function ChopDown: Boolean;
Var
x, y, PlusOne, TreeCounter: Integer;
Begin
PlusOne:= InvCount +1;
x:=MSCX;
y:=MSCY;
If FindObjTPA(x, y, 3491408, 5, 1, 15, 60, 600, ['Tree', 'down T', 'ree']) Then
Begin
StatsGuise('Hooray, we found a Tree');
GetMousePos(x, y);
Case Random(2) Of
0: Mouse(x, y, 5, 5, True);
1: Begin
Mouse(x, y, 5, 5, False);
WaitOption('Chop', 200 + Random(100));
End;
End;
End else
Writeln('ObjTpa wasnt found, Check the Function Chopdown');
Repeat
MarkTime(TreeCounter);
Antiban;
Wait(1000);
If InvCount=Plusone Then
Writeln('We got one');
Until (InvCount=PlusOne) Or (TimeFromMark(TreeCounter) > 4000)
End;
Begin
SetupSRL;
DeclarePlayers;
Repeat
ChopDown;
Until(InvFull);
if (InvFull) then
Writeln('Inventory Full, Ending Script');
StatsGuise('Inventory Full, Ending Script');
End.
Also; To YoHoJo, Thank You for the tutorials ^-^ You're one cool frood:spot:.
http://img214.imageshack.us/img214/8554/ddddddddddddddu.jpg