My Script is Double clicking when i want it to click once. I am fairly new so my script is sloppy.
Code:program XenoFighter; {.include SRL/SRL.scar} {.include srl/srl/Skill/Fighting.scar} var x, y, cx, cy: Integer; MonsterColor : Array [0..2] of Integer; i :Integer; {*******////Setup\\\\********} Procedure Setup; begin MonsterColor[0]:=1450142; //Color 1 MonsterColor[1]:=1384347; // Color 2 MonsterColor[2]:=4772077; //Color 3 end; const MonsterName = 'hicken'; //Partial Name of monster WaitTime = 4000; RandomTime = 3000; {*******///End Setup\\\*******} Procedure KillMonster; begin for i:= 0 to 2 do begin if(FindColor(x, y, MonsterColor[i], 0,0, 511, 338))then begin MMouse(x, y, 2,2); wait(50+random(50)); If(IsUpText(MonsterName))then begin GetmousePos(cx, cy); wait(100+random(100)); Clickmouse(cx,cy, true); end; end; end; end; begin SetupSRL; Setup; repeat wait(WaitTime+random(RandomTime)); KillMonster; until false; end.


Reply With Quote





!!!
