When i run the scripts the mouse just keeps hovering over the monster ....
can some 1 plz tell me wat i need to fix? cuz it does it for ever and doesnt attack it seems i have this problem for ever script ive tried..
When i run the scripts the mouse just keeps hovering over the monster ....
can some 1 plz tell me wat i need to fix? cuz it does it for ever and doesnt attack it seems i have this problem for ever script ive tried..
post the script and we can tell you more
STOP PM'ING ME
its basically all the scripts..... umm say DaWu's Fighter, the scripts all run fine but they dont attack...![]()
i dont get any errors it just keeps runnning... but doesnt attack
and wat do u mean don't make us look it up?
Maybe (if you need to set the name,) the name is wrong? So it finds the monster but it thinks that it isn't the monster![]()
Did you setup everything correctly? Did you drag the cross-hair? Are you on 32-bit TRUE color? Can you post the script?
Huehuehuehuehue
yes i setup up the script correctly... everything the directions said to do...
basically what everyone is trying to say is.....post the god damn script just like it is and then we can help you a lot easier! soz to sound rude but you know guess that's the way i am on here
Sleeping...
[code][code]program DaWuAutoFighter;
{.include SRL\SRL.SCAR}
{.include SRL\SRL\skill\Fighting.scar}
{.include SRL/SRL/Skill/Ranging.scar}
{.include SRL\SRL\extended\xObject.SCAR}
//setup at lines 20-32 \\
//Start logged out \\
//Im not responsible for any loss or damage this script causes \\
//SET THE AMOUNT OF MONSTERS TO BE KILLED ON LINE 209 \ \
//-_-___DaWuAutoFighter Version 1.4___-_-\\
// Made by DaWu \\
//xxKanexx great fighting functions. <3 \\
//Gofs arrow picking and stuff \\
//WT-Fakawi's Great InFightAt, thanks \\
Const
Color1 = 1121681; //use different colours of different rats
Color2 = 1121681;
Color3 = 1121681;
Monstername ='Guard' ;
Kills = 100000 ; // amount of monsters to be killed.
Startplayer = 0 ; //player that starts
foodcolor = 1400241;//set food color if u wanna eat.
Runawaydir= 'N' ; //Direction to run N,S,W,E
Pickarrows = False; // Set to false if u dont use arrows.
Arrowcolor = 0; //Color of the arrow on ground.
EatHp = 61; //Hp to eat at.
Foodname = 'Lobster';
Eat = 'No' ; //Yes Or No, Eat Or Not.
Tolerance = 3 ; //Tolerance for the monster colours
Fightmode = 2 ; //Fightmode to be used
Var fightchecks, killed :integer; TabTimer:integer; EatTimer:integer;
SkillTimer:integer;
Procedure report;
begin
writeln('______________________')
writeln('DaWuAutoFighter V1.4')
writeln('Worked for '+ TimeRunning);
writeln('Killed: ' + inttostr(a))
writeln('______________________')
end;
Function InFightAt(x, y: Integer):Boolean;
var
dx, dy: Integer;
begin
Result:= (FindColor(dx, dy, 65280, x - 20, y - 10, x + 20, y + 10) or
FindColor(dx, dy, 225, x - 20, y - 10, x + 20, y + 10) or
FindColor(dx, dy, 16728128, x - 20, y , x + 20, y + 20) or
FindColor(dx, dy, 192, x - 20, y, x + 20, y + 20));
end;
procedure OutFightO;
var
i: integer;
begin
Flag;
for i:= 1 to 5 do
begin
if(InFightAt(x,y))then
begin
repeat
wait(50);
until(not(InFightAt(x,y)));
exit;
end else
wait(300);
end;
end;
function KAttackMonsterM(Color1, Color2, Color3, Tolerance: Integer; MonsterName: String): Boolean;
var
i, x, y: Integer;
begin
FFlag(5);
for i:= 1 to 5 do
begin
if(FindColorTolerance(x, y, Color1, MSX1, MSY1, MSX2, MSY2, Tolerance + i))and
(FindColorTolerance(x, y, Color2, MSX1, MSY1, MSX2, MSY2, Tolerance + i))and
(FindColorTolerance(x, y, Color3, MSX1, MSY1, MSX2, MSY2, Tolerance + i))then
begin
MMouse(x, y, 3, 3);
wait(80 + random(60));
if(IsUpText('Attack '+MonsterName))then
begin
result:= true;
GetMousePos(x, y);
Mouse(x, y, 0, 0, true);
wait(40 + random(20));
FFlag(5);
OutFightO; //Waits Until Out Of Fight..
exit;
end;
end;
end;
end;
Procedure RandomTab;
begin
MarkTime(TabTimer);
repeat
if TimeFromMark(TabTimer) > 2000 then
begin
Wait(600+random(500))
Gametab(1+random(12))
MarkTime(Tabtimer);
end else Wait(500);
until false;
end;
function Arrowpickup: boolean;
begin
if (Pickarrows=true) then
begin
repeat
wait(400+random(210))
if(FindObj(x,y,'ake',arrowcolor,0))then
begin
mouse(x,y,3,2,true)
FFlag(5);
end;
until(not(FindObj(x,y,'ake',arrowcolor,0)))
end;
end;
//-----------------------------------------------//
function PutArrowsOn: Boolean; //By Freddy1990 .. Edited a bit.
var
xx, yy: Integer;
begin
if (Pickarrows=true) then
begin
GameTab(4)
Result := FindInvArrows(xx, yy);
Wait(100 + Random(250));
Mouse(xx, yy, 0, 0, True);
end;
end;
procedure SkillCheck;
begin
if(FightMode = 1) then begin
HoverSkill('Attack',false);
end;
if(FightMode = 2) then begin
HoverSkill('Strength',false);
end;
if(FightMode = 3) then begin
HoverSkill('Attack',false);
wait(1000 + random(500));
HoverSkill('Strength',false);
end;
if(FightMode = 4) then begin
HoverSkill('Defence',false);
end;
end;
Procedure Slay;
begin
fightchecks:=0;
a:=0;
Repeat;
MarkTime(TabTimer);
MarkTime(eatTimer);
MarkTime(SkillTimer);
wait(100+random(500))
FindMonster(color1,color2,color3,tolerance,monster name);
KattackmonsterM(color1,color2,color3,tolerance,mon stername);
a:= a +1;
fightchecks:= fightchecks + 1;
PutArrowsOn;
FindNormalRandoms;
Arrowpickup;
Report;
FindNormalRandoms;
wait(1000+Random(550))
if(eat = 'Yes')then begin
if TimeFromMark(EatTimer) > 15000 then
begin
Wait(1000+random(500))
RealEatifneeded(foodcolor,EatHp,False)
End;
End;
if TimeFromMark(SkillTimer) > 30000 then
begin
Wait(1000+random(500))
SkillCheck;
End;
if TimeFromMark(TabTimer) > 25000 then
begin
Wait(1000+random(500))
Gametab(1+random(12))
end;
AntiBan;
until(fightchecks = Kills);
end;
Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(howmanyplayers);
CurrentPlayer := StartPlayer;
Players[0].Name :='';//name
Players[0].Pass :='';//pass
Players[0].Nick := '';// about 3 letters of ur name
Players[0].Active := True;
writeln('using'+inttostr(howmanyplayers)+'player[s]');
end;
Begin
SetupSRL;
Declareplayers;
loginplayer;
HighestAngle;
SetRun(true);
FindNormalRandoms;
AntiBan;
setfightmode(fightmode);
Slay;
Report;
Logout;
End.[code]
im gonna say try raising the tolerance cause maybe it isnt finding a color close enough...try like tolernace 6 or something...no garenteeing it will work but try it cause at a quick glance i see nothing wrong
reposted scar tags:
SCAR Code:program DaWuAutoFighter;
{.include SRL\SRL.SCAR}
{.include SRL\SRL\skill\Fighting.scar}
{.include SRL/SRL/Skill/Ranging.scar}
{.include SRL\SRL\extended\xObject.SCAR}
//setup at lines 20-32 \\
//Start logged out \\
//Im not responsible for any loss or damage this script causes \\
//SET THE AMOUNT OF MONSTERS TO BE KILLED ON LINE 209 \ \
//-_-___DaWuAutoFighter Version 1.4___-_-\\
// Made by DaWu \\
//xxKanexx great fighting functions. <3 \\
//Gofs arrow picking and stuff \\
//WT-Fakawi's Great InFightAt, thanks \\
Const
Color1 = 1121681; //use different colours of different rats
Color2 = 1121681;
Color3 = 1121681;
Monstername ='Guard' ;
Kills = 100000 ; // amount of monsters to be killed.
Startplayer = 0 ; //player that starts
foodcolor = 1400241;//set food color if u wanna eat.
Runawaydir= 'N' ; //Direction to run N,S,W,E
Pickarrows = False; // Set to false if u dont use arrows.
Arrowcolor = 0; //Color of the arrow on ground.
EatHp = 61; //Hp to eat at.
Foodname = 'Lobster';
Eat = 'No' ; //Yes Or No, Eat Or Not.
Tolerance = 3 ; //Tolerance for the monster colours
Fightmode = 2 ; //Fightmode to be used
Var fightchecks, killed :integer; TabTimer:integer; EatTimer:integer;
SkillTimer:integer;
Procedure report;
begin
writeln('______________________')
writeln('DaWuAutoFighter V1.4')
writeln('Worked for '+ TimeRunning);
writeln('Killed: ' + inttostr(a))
writeln('______________________')
end;
Function InFightAt(x, y: Integer):Boolean;
var
dx, dy: Integer;
begin
Result:= (FindColor(dx, dy, 65280, x - 20, y - 10, x + 20, y + 10) or
FindColor(dx, dy, 225, x - 20, y - 10, x + 20, y + 10) or
FindColor(dx, dy, 16728128, x - 20, y , x + 20, y + 20) or
FindColor(dx, dy, 192, x - 20, y, x + 20, y + 20));
end;
procedure OutFightO;
var
i: integer;
begin
Flag;
for i:= 1 to 5 do
begin
if(InFightAt(x,y))then
begin
repeat
wait(50);
until(not(InFightAt(x,y)));
exit;
end else
wait(300);
end;
end;
function KAttackMonsterM(Color1, Color2, Color3, Tolerance: Integer; MonsterName: String): Boolean;
var
i, x, y: Integer;
begin
FFlag(5);
for i:= 1 to 5 do
begin
if(FindColorTolerance(x, y, Color1, MSX1, MSY1, MSX2, MSY2, Tolerance + i))and
(FindColorTolerance(x, y, Color2, MSX1, MSY1, MSX2, MSY2, Tolerance + i))and
(FindColorTolerance(x, y, Color3, MSX1, MSY1, MSX2, MSY2, Tolerance + i))then
begin
MMouse(x, y, 3, 3);
wait(80 + random(60));
if(IsUpText('Attack '+MonsterName))then
begin
result:= true;
GetMousePos(x, y);
Mouse(x, y, 0, 0, true);
wait(40 + random(20));
FFlag(5);
OutFightO; //Waits Until Out Of Fight..
exit;
end;
end;
end;
end;
Procedure RandomTab;
begin
MarkTime(TabTimer);
repeat
if TimeFromMark(TabTimer) > 2000 then
begin
Wait(600+random(500))
Gametab(1+random(12))
MarkTime(Tabtimer);
end else Wait(500);
until false;
end;
function Arrowpickup: boolean;
begin
if (Pickarrows=true) then
begin
repeat
wait(400+random(210))
if(FindObj(x,y,'ake',arrowcolor,0))then
begin
mouse(x,y,3,2,true)
FFlag(5);
end;
until(not(FindObj(x,y,'ake',arrowcolor,0)))
end;
end;
//-----------------------------------------------//
function PutArrowsOn: Boolean; //By Freddy1990 .. Edited a bit.
var
xx, yy: Integer;
begin
if (Pickarrows=true) then
begin
GameTab(4)
Result := FindInvArrows(xx, yy);
Wait(100 + Random(250));
Mouse(xx, yy, 0, 0, True);
end;
end;
procedure SkillCheck;
begin
if(FightMode = 1) then begin
HoverSkill('Attack',false);
end;
if(FightMode = 2) then begin
HoverSkill('Strength',false);
end;
if(FightMode = 3) then begin
HoverSkill('Attack',false);
wait(1000 + random(500));
HoverSkill('Strength',false);
end;
if(FightMode = 4) then begin
HoverSkill('Defence',false);
end;
end;
Procedure Slay;
begin
fightchecks:=0;
a:=0;
Repeat;
MarkTime(TabTimer);
MarkTime(eatTimer);
MarkTime(SkillTimer);
wait(100+random(500))
FindMonster(color1,color2,color3,tolerance,monster name);
KattackmonsterM(color1,color2,color3,tolerance,mon stername);
a:= a +1;
fightchecks:= fightchecks + 1;
PutArrowsOn;
FindNormalRandoms;
Arrowpickup;
Report;
FindNormalRandoms;
wait(1000+Random(550))
if(eat = 'Yes')then begin
if TimeFromMark(EatTimer) > 15000 then
begin
Wait(1000+random(500))
RealEatifneeded(foodcolor,EatHp,False)
End;
End;
if TimeFromMark(SkillTimer) > 30000 then
begin
Wait(1000+random(500))
SkillCheck;
End;
if TimeFromMark(TabTimer) > 25000 then
begin
Wait(1000+random(500))
Gametab(1+random(12))
end;
AntiBan;
until(fightchecks = Kills);
end;
Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(howmanyplayers);
CurrentPlayer := StartPlayer;
Players[0].Name :='';//name
Players[0].Pass :='';//pass
Players[0].Nick := '';// about 3 letters of ur name
Players[0].Active := True;
writeln('using'+inttostr(howmanyplayers)+'player[s]');
end;
Begin
SetupSRL;
Declareplayers;
loginplayer;
HighestAngle;
SetRun(true);
FindNormalRandoms;
AntiBan;
setfightmode(fightmode);
Slay;
Report;
Logout;
End.
STOP PM'ING ME
that is wat i am thinking... i got 32 color bit on and the stuff it says to put on but all the scripts ive been trying just don't work. it does the same thing over and over again... just hovers over the object. only the chicken scripts seem to work after a while...
I think i have had the same problem you have had before, Log on to runescape and click on the spanner icon and click the mouse icon and then hover the mouse over it so you see it say "Mouse Buttons(Currently 2)" and mayb tht will help you out?
There are currently 1 users browsing this thread. (0 members and 1 guests)