Littellj
2012-03-06 20:46:59
Ok, I'm trying to make a bandit thiever. I tried in Polliniveach and the colors were not easy to get right so i moved to where everyone attacks then for combat exp. The capes are an easy color to find. I've got the script to Find the color, find the bandit, right click, pickpocket, and continue. This is where i've run into a problem. These bandits add lockpicks and antipoisions to your invy. When it gets full you can't pickpocket. So i created a loop that will pickpocket untill(InvFull). Now i need to drop these 2 items which are random in order. A problem also with this is that i want to not drop the first 6 slots in order to have food there. Later i will add hp check —> eating, then when out of food running to nearby store —> drop first 6 spots (except 1(which contains noted food)) —>unnoteing 5 foods —> and then running back to position. Heres what i got so far.
Pickpocket :)
Dropping :)
Eating/HpCheck :unsure:
Running to bank :unsure:
Dropping first 6 :unsure:
Unnoteing :unsure:
Running back :unsure:
Pickpocket :)
Dropping :)
Eating/HpCheck :unsure:
Running to bank :unsure:
Dropping first 6 :unsure:
Unnoteing :unsure:
Running back :unsure:
program testbandit;
{$DEFINE SMART}
{$i srl/srl.simba}
Procedure DeclarePlayers;
Begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name :='';
Players[0].Pass :='';
Players[0].Nick :='';
Players[0].Active:=True;
End;
procedure Antiban;
begin
case Random(90) of
20: HoverSkill('Thieving', False);
30: PickUpMouse;
40: RandomMovement;
50: BoredHuman;
59: ExamineInv;
end;
Writeln('Antiban in action!');
end;
function Bandit: Integer;
var
arP: TPointArray;
arC: TIntegerArray;
tmpCTS, i, arL: Integer;
begin
tmpCTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.42, 0.14);
FindColorsSpiralTolerance(MSCX, MSCY, arP, 1714004, MSX1, MSY1, MSX2, MSY2, 7);
if (Length(arP) = 0) then
begin
Writeln('Failed to find the color, no result.');
ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);
Exit;
end;
arC := GetColors(arP);
ClearSameIntegers(arC);
arL := High(arC);
for i := 0 to arL do
begin
Result := arC[i];
//Writeln('AutoColor = ' + IntToStr(arC[i]));
Break;
end;
ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);
if (i = arL + 1) then
//Writeln('AutoColor failed in finding the color.');
end;
Procedure Pickpocket;
var
x, y: integer;
begin
repeat
if(not(LoggedIn))then
Exit;
x:=MSCX;
y:=MSCY;
If FindObjTPA(x, y, Bandit, 5, 2, 5, 10, 20,['Atta'])then
begin
WriteLn('Found Bandit');
GetMousePos(x, y);
Mouse(x, y, 10, 10, False);
WaitOption('Pick', 500)
Wait(100)
if pos( 'stunned', GetblackChatMessage) <> 0 then
Case Random(2) of
1:Wait(4000);
2:Antiban;
end;
end;
until(InvFull);
begin
FindNormalRandoms;
WriteLn('This is where we"ll drop');
Wait(15000);
//Droping
end;
end;
begin
Smart_Server := 0;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
SetUpSRL;
DeclarePlayers;
LoginPlayer;
repeat
FindNormalRandoms;
Pickpocket;
Until(false);
end.