mightyz
04-11-2012, 01:09 AM
Hello there, i did look at multiple proggy tutorials but they didn't have what i was looking for.
i know how to make a proggy but my issue is when ever it completes a load or
(invfull) it is suppose to drop all the ore as well as begin the proggy but it doesn't so im not sure what i did wrong
program MightysPowerMiner;
{$DEFINE SMART}
{$i srl/srl.simba}
//////////////Srl Stats Setup \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
const
SRLStats_User = ''; // Your SRL Stats Username
SRLStats_Password = ''; // Your SRL Stats Password
SERVER = 0; // Enter "0" to pick a random server.
MEMBERS = True;
NumbOfPlayers = 1;
StartPlayer = 0;
////////////////////////////////////////////////////////////////////////
var
TotalExp, IronMined: Integer;
////////////////////////Player Setup\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Players[0].Name := ''; // Username
Players[0].Pass := ''; // Password
Players[0].Nick := ''; // 3-4 lowercase letters from username;
Players[0].Active := True; // Set to true if you want to use Player 0
Players[0].Pin := '';// Leave blank if player doesn't have a bank pin
end;
end;
//////////////////////////////////////////////////////////////////////////////
////////////////////////DONT TOUCH BELOW THIS/////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//progress report
procedure IronMinedX;
Begin
If InvFull Then
IncEx(IronMined,28)
End;
//progress report Thanks to gucci, didn't know how to make one
Procedure Report;
Begin
If (InvFull) Then
Begin
TotalExp := (IronMined*35);
Writeln('////////// Mighty Report \\\\\\\\\\');
Writeln('|= Player : ' + Players[CurrentPlayer].Name);
Writeln('|= Time Running : ' + TimeRunning);
Writeln('|= Ore Mined : ' + IntToStr(IronMined));
Writeln('|= Ore Dropped : ' + IntToStr(IronMined));
Writeln('|= Xp Gained : ' + IntToStr(TotalExp));
Writeln('////////// Mighty Report \\\\\\\\\\');
End;
End;
//Anti Ban
procedure Antiban;
begin
if(not(LoggedIn))then Exit;
begin
case Random(150) of
0: RandomRClick;
1: PickUpMouse;
2: RandomMovement;
3: BoredHuman;
4: ExamineInv;
5:
Begin
GameTab(Tab_Stats);
HoverSkill('Mining', False);
Wait(2000 + Random(1000));
End;
end;
end;
end;
// Failsafe
Procedure FailSafe(Reason:String);
begin
Players[CurrentPlayer].Loc := Reason;
Logout;
Stats_Commit;
TerminateScript;
End;
// mine iron
Function MineIron:Boolean;
var
x, y: Integer;
Begin
FindNormalRandoms;
If FindObjTPAMulti(x, y, [3294064, 3623291], 11, 1, 5, 10, 15, ['ine', 'ron'])Then
Begin
Case Random(2) Of
0: Mouse(X, Y, 5, 5, True);
1: Begin
Mouse(X, Y, 5, 5, False);
WaitOption('ron', 500);
end;
end;
Wait(3000+random(400));
result:= true;
end else result:= false;
end;
// Drop Iron
procedure DropIron;
var
Ix, Iy, IronDTM, I: Integer;
SlotBox:Tbox;
IronPattern: TIntegerArray;
Begin
FindNormalRandoms;
IronDTM := DTMFromString('mKgEAAHic42NgYBAEYkYgZgdiLiDmA2IRIJ YCYjkglgViaSAWBWJ+IOZkgAAQmweqDwZA5rAAMRtUThCqD6Yf xLdSApnMRAYmDzCSiVEBAOKrAi8=');
IronPattern := [1,5,9,13,17,21,25,2,6,10,14,18,22,26,3,7,11,15,19, 23,27,4,8,12,16,20,24,28];
For I := 0 to 27 do
begin
FindNormalRandoms;
Slotbox := InvBox(IronPattern[I]);
If FindDTM(IronDTM, Ix, Iy, SlotBox.X1, SlotBox.Y1, SlotBox.X2, SlotBox.Y2) Then
Begin
MouseItem(IronPattern[I],MOUSE_RIGHT);
ChooseOption('Dro');
End;
End;
End;
begin
Smart_Server := 69;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
SetupSRL;
ClearDebug;
DeclarePlayers;
LoginPlayer;
Repeat
MineIron;
If (InvFull) Then
DropIron;
Report;
Until(False);
Antiban;
end.
i know how to make a proggy but my issue is when ever it completes a load or
(invfull) it is suppose to drop all the ore as well as begin the proggy but it doesn't so im not sure what i did wrong
program MightysPowerMiner;
{$DEFINE SMART}
{$i srl/srl.simba}
//////////////Srl Stats Setup \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
const
SRLStats_User = ''; // Your SRL Stats Username
SRLStats_Password = ''; // Your SRL Stats Password
SERVER = 0; // Enter "0" to pick a random server.
MEMBERS = True;
NumbOfPlayers = 1;
StartPlayer = 0;
////////////////////////////////////////////////////////////////////////
var
TotalExp, IronMined: Integer;
////////////////////////Player Setup\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Players[0].Name := ''; // Username
Players[0].Pass := ''; // Password
Players[0].Nick := ''; // 3-4 lowercase letters from username;
Players[0].Active := True; // Set to true if you want to use Player 0
Players[0].Pin := '';// Leave blank if player doesn't have a bank pin
end;
end;
//////////////////////////////////////////////////////////////////////////////
////////////////////////DONT TOUCH BELOW THIS/////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//progress report
procedure IronMinedX;
Begin
If InvFull Then
IncEx(IronMined,28)
End;
//progress report Thanks to gucci, didn't know how to make one
Procedure Report;
Begin
If (InvFull) Then
Begin
TotalExp := (IronMined*35);
Writeln('////////// Mighty Report \\\\\\\\\\');
Writeln('|= Player : ' + Players[CurrentPlayer].Name);
Writeln('|= Time Running : ' + TimeRunning);
Writeln('|= Ore Mined : ' + IntToStr(IronMined));
Writeln('|= Ore Dropped : ' + IntToStr(IronMined));
Writeln('|= Xp Gained : ' + IntToStr(TotalExp));
Writeln('////////// Mighty Report \\\\\\\\\\');
End;
End;
//Anti Ban
procedure Antiban;
begin
if(not(LoggedIn))then Exit;
begin
case Random(150) of
0: RandomRClick;
1: PickUpMouse;
2: RandomMovement;
3: BoredHuman;
4: ExamineInv;
5:
Begin
GameTab(Tab_Stats);
HoverSkill('Mining', False);
Wait(2000 + Random(1000));
End;
end;
end;
end;
// Failsafe
Procedure FailSafe(Reason:String);
begin
Players[CurrentPlayer].Loc := Reason;
Logout;
Stats_Commit;
TerminateScript;
End;
// mine iron
Function MineIron:Boolean;
var
x, y: Integer;
Begin
FindNormalRandoms;
If FindObjTPAMulti(x, y, [3294064, 3623291], 11, 1, 5, 10, 15, ['ine', 'ron'])Then
Begin
Case Random(2) Of
0: Mouse(X, Y, 5, 5, True);
1: Begin
Mouse(X, Y, 5, 5, False);
WaitOption('ron', 500);
end;
end;
Wait(3000+random(400));
result:= true;
end else result:= false;
end;
// Drop Iron
procedure DropIron;
var
Ix, Iy, IronDTM, I: Integer;
SlotBox:Tbox;
IronPattern: TIntegerArray;
Begin
FindNormalRandoms;
IronDTM := DTMFromString('mKgEAAHic42NgYBAEYkYgZgdiLiDmA2IRIJ YCYjkglgViaSAWBWJ+IOZkgAAQmweqDwZA5rAAMRtUThCqD6Yf xLdSApnMRAYmDzCSiVEBAOKrAi8=');
IronPattern := [1,5,9,13,17,21,25,2,6,10,14,18,22,26,3,7,11,15,19, 23,27,4,8,12,16,20,24,28];
For I := 0 to 27 do
begin
FindNormalRandoms;
Slotbox := InvBox(IronPattern[I]);
If FindDTM(IronDTM, Ix, Iy, SlotBox.X1, SlotBox.Y1, SlotBox.X2, SlotBox.Y2) Then
Begin
MouseItem(IronPattern[I],MOUSE_RIGHT);
ChooseOption('Dro');
End;
End;
End;
begin
Smart_Server := 69;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
SetupSRL;
ClearDebug;
DeclarePlayers;
LoginPlayer;
Repeat
MineIron;
If (InvFull) Then
DropIron;
Report;
Until(False);
Antiban;
end.