SRL Archive - RS3 Outdated / Broken Scripts

IMF's Chicken Killer


Iron Man

2008-02-28 02:09:32

SCRIPT STATUS: OUTDATED AND NOT BEING UPDATED

Heres a chicken killer. I'd appreciate it if you posted a idea of how to improve it.

It has SMART, a autoresponder(to things like asking combat levels), disguises itself, Picks up feathers, antiban, antirandoms.

KillSwitch

2008-02-28 02:52:06

Can you add SMART support for this? It would be way better. :)

Iron Man

2008-02-28 14:58:58

There, updated to work with SMART.

jj147258369

2008-02-28 15:11:14

wow this works so smooth

jj147258369

2008-02-28 15:12:14

this is the first script i have acctualy had work! :)

Iron Man

2008-02-28 15:37:47

Thanks for feedback, but don't double post. Use the edit button.

Cazax

2008-02-28 16:01:26

Good work ! learn standars :)

skilld u

2008-02-28 16:14:46

This is a very good script for your first one. I only saw a few problems.

your attack mode procedures can be condensed in to a case:

procedure SetAttackMode;
begin
Case Players[CurrentPlayer].Skill Of
'Strength' :
SetFightMode(2);
'Attack' :
SetFightMode(1);
'Defence' :
SetFightMode(4);
end;
end;

Your main loops standards are a bit odd. I fixed them up a bit:
begin
SetupSRL;
SmartSetupEx(World, false, false);
wait(10000+random(5000));
SetTargetDC(SmartGetDC);
repeat
wait(100);
until(SmartGetColor(253, 233)<>1118604);
DisguiseIt;
DeclarePlayers;
MarkTime(NextPlayerTime);
SetUpPlayers;
repeat
KillChicken;
SetAttackMode;
Wait(200 + Random(32));
ClearDebug;
Proggie;
AntiBan;
If (TimeFromMark(NextPlayerTime) > 14 * 10000) then
begin
Wait(7000 + Random(5000));
Logout;
NextPlayer(True);
end;
Until(False);
end.

You should make a separate procedure for your antiban instead of just having it in your main loop:
procedure AntiBan;
begin
case random(250) of
0: OutOfScreen(4000 + Random(2000));
1: RandomRClick;
2: BoredHuman;
end;
end;

Another thing is that the functions that you made should be made into procedures since you never use the result.

Also cases start at 0:, not 1:.

One more thing, I noticed that some of your standards were off in a few of your other procedures. I fixed them for you:
Procedure KillChicken;
begin
If not LoggedIn then exit;
If (InFight = False) then
begin
If FindObjCustom(x, y, ['ttack', 'hicken'], [3628151, 6521491], 5) then
begin
Mouse(x,y,2,2,true);
PickupFeathers;
Chickens:= Chickens + 1;
FindNormalRandoms;
end;
end;
end;
Procedure SetUpPlayers;
begin
If not LoggedIn then LoginPlayer;
GameTab(4);
SetAngle(true);
case random(3) of
0: HoverSkill('strength',false);
1: HoverSkill('attack',false);
2: HoverSkill('defence',false);
end;
end;

P1nky

2008-02-28 16:21:46

LMAO

{.Script Info:
# ScriptName = PowerWillowCutter
# Author = Iron man ftw
# Description = Cuts Willows and drops them
# Version = 0.01
# Date = Feb 28, 2008
# Comments =
/Script Info}

skilld u

2008-02-28 16:24:31

lol @ P1nky

KillSwitch

2008-02-28 16:28:49

Added working SMART? I love you.

Iron Man

2008-02-28 16:52:41

From: p1nky
LMAO

{.Script Info:
# ScriptName = PowerWillowCutter
# Author = Iron man ftw
# Description = Cuts Willows and drops them
# Version = 0.01
# Date = Feb 28, 2008
# Comments =
/Script Info}


Lol sorry i was going to make a powercutter but then i made a chicken killer instead.

Thanks a lot for helping, skilld u. You helped me a lot.

EDIT: updated script thanks to skilld u's help.

skilld u

2008-02-28 17:03:38

np, if you ever need any more help you can pm me.

Iron Man

2008-02-29 02:34:21

Ok thanks.

Updated with a few fixes to things, and added a autoresponder which i'm not sure if it would work or not, but it should. I think i did correct standards on it, but i'm not sure. I'm still getting used to using the actual standards and not my own.

skilld u

2008-02-29 07:15:20

you should do something like this so that you can say your actual level in the responder
procedure GetTheLevel;
begin
TheLevel := GetSkillInfo('woodcutting', false);
Writeln('Your Wc Level is ' + IntToStr(TheLevel));
end;

Torrent of Flame

2008-02-29 08:24:41

Why with the woodcutting again :]

Nice script here aswell. Like people have said though, your standards need to be tidied.

And instead of pasting the thread in the post, attach it (When you post a thread scroll down and see "Manage Attatchments", find your SCAR script, attatch it and then post your thread.

Means you can see how many downloads your script has got :]

syn7hetic

2008-02-29 08:30:55

workin with 2players 4 about 2hrs now :) very nice

hamster

2008-02-29 11:36:57

Hey,

that's a pretty nice first script :)
but then again, chickens are quite small, and there are alot of people around that area, so wouldn't a colourpicker like scar missclick/be too slow for chicken? :/ If that is not a problem, then I just say gratz on your script :p I'm sure it'll get a lot better.

Iron Man

2008-02-29 18:02:16

Updated to auto respond with your actual levels, thanks, skilld u.

Edit: hamster, its not to much of a problem, it will just not get as many chickens as a usual player would, but it can play for a lot longer making it get more chickens, so it all evens out.

skilld u

2008-02-29 18:06:26

I was just reading through again and I saw your feather counting thing. I think that there is a procedure in SRL that counts stacked items for you. Ill post what it is in a sec.

edit:
AmountColor(area: String; color, tol: Integer)

you would use it like this:
AmountColor('inv',  Chickencolor, 10)

edit 2:
your antiban is really short, you should make it have more options for each one.
Here is a little piece from my script.
procedure MyAntiBannage;
begin
case Random(20) of
0: begin
RandomRClick;
Wait(40 + Random(20));
Mouse(40 - Random(20), 30 + Random(20), 5, 5, False);
Wait(10 + Random(55));
MMouse(5 + Random(60),5 + Random(60),5,5);
end;
1: begin
BoredHuman;
Wait(40 + Random(30));
MMouse(20,49,10,10);
end;
2: begin
RandomMovement;
Wait(40 + Random(25));
MMouse(403 - Random(45), 200 - Random(35), 5, 5);
end;
3: AlmostLogout;
etc...

your standards were a bit off in your responder. i fixed them.
procedure RespondToMessages;
begin
If InChat('tr lev') or
InChat('trength lev') then
begin
StrLev := GetSkillInfo('strength',false);
case Random(2) of
0: TypeSend('my str level is' + IntToStr(StrLev));
1: TypeSend('str lvl is' + IntToStr(StrLev) + ' lol');
2: TypeSend('strength level... uhhh...' + IntToStr(StrLev));
end;
if InChat('tt lev') or
InChat('ttack lev') then
begin
AttLev := GetSkillInfo('attack',false);
case Random(2) of
0: TypeSend('attack level is' + IntToStr(AttLev));
1: TypeSend(IntToStr(AttLev) + 'hehe');
2: TypeSend('uhhh' + IntToStr(AttLev));
3: TypeSend(' ');
end;
end;
if InChat('ef lev') or
InChat('efence lev') then
begin
DefLev := GetSkillInfo('defence',false);
case Random(2) of
0: TypeSend('my defence level is ' + IntToStr(DefLev));
1: TypeSend('mine is ' + IntToStr(DefLev));
2: TypeSend('uhh, ' + IntToStr(DefLev));
3: TypeSend('def lev for me is' + IntToStr(DefLev));
end;
end;
end;
end;

Iron Man

2008-02-29 18:13:32

hmm thanks, i'll do some fixes to things than post another update to it. Btw, rep'd you.

skilld u

2008-02-29 18:16:36

ok, thanks. I think that you should make an InFight; function so that if the chicken is already under attack then it wont attack it. I'm gonna test your script and I'll post a short proggy in a few minutes.

Iron Man

2008-02-29 18:23:35

it has a few kinks in the actual finding of the chickens, but i think different colors from what i picked might help.

I'm thinking of adding a bitmap of if it gets into the certain area where it seems to click alot with the colors i picked, it will click on the middle of the chicken coop.

I try to use standards, but i just can't get them right lol

skilld u

2008-02-29 18:27:05

http://www.villavu.com/forum/showthread.php?t=3293

theres a tut on standards.

Iron Man

2008-02-29 18:33:29

Yeah i read that tut last night, it helped my standards a bit, still getting used to it though.

Btw, would this work for my counting feathers function:


function CountTheFeathers:integer;
begin
Feathers := AmountColor('inv', ColorOfFeather, 10);
end;
and now my proggie is

procedure Proggie;
begin
WriteLn('***********************************************');
WriteLn('***********************************************');
WriteLn('*********Chicken Killer by Iron man ftw********');
WriteLn('Worked for ' + TimeRunning );
WriteLn('Killed about ' + IntToStr(Chickens)+' chickens');
WriteLn('Gathered about ' + IntToStr(Feathers) + ' feathers');
WriteLn('***********************************************');
WriteLn('***********************************************');
end;


Also, once i get this script working fully, do you think i should post this in junior section, or make another?

EDIT: Still thinking of ways to help my antiban procedure to make it better, then i will post the update.

EDIT#2: AntiBan so far:

procedure AntiBan;
begin
case random(250) of
0: begin
OutOfScreen(4000 + Random(2000));
Mouse(x,y,300,300,false);
Wait(100 + Random(50));
ChooseOption('lose');
end;
1: begin
Wait(100 + Random(100));
GetMousePos(x, y);
RandomRClick;
Mouse(x, y, 300, 300, false);
ChooseOption('lose');
end;
2: begin
Wait(100 + Random(100));
GetMousePos(x,y);
BoredHuman;
Wait(100 + Random(500));
MMouse(x,y,200,200);
end;
end;
end;

skilld u

2008-02-29 18:45:41

if you have declared your feather color earlier it should work. If you don't want leechers taking your script and never post then you can move it to Jr. Members.
Also your antiban looks nice. keep working on it.

add me on MSN. [email]hofasho@hotmail.com[/email]

edit: you should make it count the feathers when you start the script just incase they already have some in their inventory and then subtract that amount each time you recount.

killer_game0

2008-03-30 00:46:25

I'm getting problems. Here they are:
Line 432: [Hint] (10477:1): Variable 'OLDMS' never used in script C:\Program Files\SCAR 3.14\includes\SRL/SRL/Core/AntiRandoms/AntiRandoms.scar

Line 240: [Error] (12827:48): Unknown identifier 'ChickenColor1' in script C:\DOCUME~1\andy\LOCALS~1\Temp\Chicken Killer by Iron man ftw.scar

Da 0wner

2008-03-30 00:52:09

Minor Gravedig

02-29-2008, 03:45 PM

OLDMS is not an error and that is an old srl color that dosent exist anymore.

killer_game0

2008-03-30 01:20:17

Would you or some one be whiling to tell me how I can go about fixing this problem since I have seen it on a few of the scripts I have tried?

slakan

2008-03-30 08:40:43

Line 229: [Error] (13117:46): Unknown identifier 'ChickenColor1' in script C:\Users\ADMINI~1\AppData\Local\Temp\Chicken Killer by Iron man ftw.scar

thebob142

2008-04-06 20:21:54

script is outdated do not post on it anymore

saosin love

2008-04-09 18:15:02

Include file C:\Program Files\SCAR 3.15\includes\SRL\SRL\Misc\SMART.scar does not exist.

help me?


edit: oops didnt see the post before

sorry