Camaro'
2009-05-08 04:35:24
I have like 5 or 4 new functions! Please comment, well the first one is….
Mouse ex procedures is just a procedure that clicks a tpoint.
Options
LeftClick - Will just left click the tpoint
Rightclick - will right click the tpoint.
Move - will move to the tpoint
LeftFlag - will click and wait for flag;.
But for it to work you must declare
MouseEX
I think this is very useful.
Second one is GetNPCPlace. What this function does is searches the tbox given for a NPC and if it finds it results a tpoint.
GetNPCPlace
Next is the update to Hover Skill, called SkillHover..
Well, for more antiban or randomness this function you input how long to hover the skill for, and the randomness on to that number..
SkillHover
Next is Players on mm which is simple, all it does it results how many players are on the minimap.
Players ON MM
Same thing but for npcs..
NPCS on mm
Thats it! Please comment!
Mouse ex procedures is just a procedure that clicks a tpoint.
Options
LeftClick - Will just left click the tpoint
Rightclick - will right click the tpoint.
Move - will move to the tpoint
LeftFlag - will click and wait for flag;.
But for it to work you must declare
type
Options = (LeftClick,RightClick,Move,leftflag);
at the top of scriptMouseEX
Procedure MouseEx(Point: Tpoint; Rx, Ry: integer; Click: Options; FlagDist: integer);
begin
Case Click of
LeftClick: Mouse(Point.x,Point.y,rx,ry,True);
RightClick: Mouse(Point.x,Point.y,rx,ry,False);
Move: MMouse(Point.x,Point.y,rx,ry);
LeftFlag: begin
Mouse(Point.x,Point.y,rx,ry,True);
FFlag(FlagDist);
end;
end;
end;
I think this is very useful.
Second one is GetNPCPlace. What this function does is searches the tbox given for a NPC and if it finds it results a tpoint.
GetNPCPlace
Function GetNPCPlace(Box: TBox): Tpoint;
Var
//i: integer;
npcs: TpointArray;
splitnpcs: T2dPointArray;
begin
findColorsTolerance(npcs,195836,Box.x1,Box.y1,Box.x2,Box.y2,3);
if length(npcs) > 1 then
begin
Splitnpcs := TPAtoATPAEx(npcs,20,20);
SortATPAsize(SplitNpcs,true);
result := MiddleTPA(SplitNpcs[0]);
end;
end;
Next is the update to Hover Skill, called SkillHover..
Well, for more antiban or randomness this function you input how long to hover the skill for, and the randomness on to that number..
SkillHover
procedure SkillHover(Skill: string; WaitTime, Rw: integer);
var
TP : TPoint;
Skills : TStringArray;
begin
if Skill <> 'random' then
TP := SkillToCoords(True,Skill)
else
begin;
Skills := ['attack','defence','strength','hitpoints','mining','smithing','woodcutting','firemaking','magic',
'fletching','hunter', 'summoning','fishing','construction','herblore','agility','thieving','crafting',
'ranged','slayer','farming', 'prayer', 'runecrafting', 'cooking'];
TP := SkillToCoords(True,Skills[Random(Length(Skills))]);
end;
if TP.x = 0 then
Exit;
GameTab(2);
MMouse(Tp.x, TP.y, 10, 10)
Wait(WaitTime + random(Rw));
end;
Next is Players on mm which is simple, all it does it results how many players are on the minimap.
Players ON MM
Function PlayersOnMM: Integer;
Var
i: integer;
ppl: TpointArray;
splitppl: T2dPointArray;
begin
if not(loggedin) then exit;
findColorsTolerance(ppl,16711422,mmx1,mmy1,mmx2,mmy2,1);
Splitppl := TPAtoATPAEx(ppl,4,4);
for i := 0 to high(splitppl) do
if length(Splitppl[i]) >= 3 then
result := result + 1;
end;
Same thing but for npcs..
NPCS on mm
Function NpcOnMM: Integer;
Var
i: integer;
ppl: TpointArray;
splitppl: T2dPointArray;
begin
if not(loggedin) then exit;
findColorsTolerance(ppl,195836,Mmx1,mmy1,mmx2,mmy2,3);
Splitppl := TPAtoATPAEx(ppl,4,4);
for i := 0 to high(splitppl) do
if length(Splitppl[i]) >= 3 then
result := result + 1;
end;
Thats it! Please comment!