Jump to content

[Open Source] Chicken Killer Script [Flawless combat | Easy to modify]


Easy

Recommended Posts

The .zip file attached to this thread contains all of the java source files needed to compile this script. Just unzip, and drag the "CockKiller" folder into a pre-existing project src folder and you should be good to compile/run.

 

Features: 

- Webwalking

- Flawless combat handling

- Easy to use paint

- Experience counter/calculator display

 

Screenshot:

3MOPIWY.png

 

If you'd like the script to attack a different npc at a different location, just modify your "KillHandler" class by changing the "npcArea" and "npcName" variables.

    //Below is our predefined npc Area. The script will walk to this area if your character isn't already in it.
    private final Area npcArea= new Area(new Position[]{new Position(3186, 3295, 0), new Position(3187, 3296, 0), new Position(3187, 3297, 0), new Position(3186, 3298, 0), new Position(3186, 3299, 0), new Position(3186, 3300, 0), new Position(3184, 3301, 0), new Position(3183, 3303, 0), new Position(3182, 3303, 0), new Position(3181, 3304, 0), new Position(3180, 3304, 0), new Position(3179, 3303, 0), new Position(3179, 3304, 0), new Position(3179, 3308, 0), new Position(3173, 3308, 0), new Position(3173, 3303, 0), new Position(3171, 3302, 0), new Position(3170, 3301, 0), new Position(3170, 3300, 0), new Position(3169, 3299, 0), new Position(3170, 3298, 0), new Position(3170, 3296, 0), new Position(3170, 3295, 0), new Position(3169, 3293, 0), new Position(3169, 3292, 0), new Position(3169, 3291, 0), new Position(3170, 3290, 0), new Position(3171, 3289, 0), new Position(3174, 3289, 0), new Position(3175, 3287, 0), new Position(3176, 3287, 0), new Position(3177, 3288, 0), new Position(3184, 3289, 0), new Position(3184, 3290, 0), new Position(3186, 3291, 0)});
    
    //Below is our predefined target npc name. The script will search for an npc with our target npc name.
    private final String npcName = "Chicken";
    private final int maxNpcDistance = 7;

 

Online Preview of Source: https://gist.github.com/anonymous/200b90618f94b9ef4f9181754b78164f

 

CockKiller.zip

Edited by Easy
  • Like 4
Link to comment
Share on other sites

  • 1 month later...

Edit: Okay I got it to work I think the issue was that I was trying to edit it before I extracted it to a location.  However now I have copied the contents (CockKiller) into OSBOT > Scripts and it doesn't appear in the client.  In fact my whole scripts folder is empty even though I have 4 free scripts downloaded from the client that show up in the client.

Ideas?

Tried to edit it to work with zombies across the river in varrock sewers but when I go to save it I get "KillHandler.java This file is set to read-only, try again with a different name." Also can't find "coop" anywhere in the file.

Any ideas?

Edited by botting123
Link to comment
Share on other sites

On 9/21/2017 at 2:14 PM, botting123 said:

 

Tried to edit it to work with zombies across the river in varrock sewers but when I go to save it I get "KillHandler.java This file is set to read-only, try again with a different name." Also can't find "coop" anywhere in the file.

3

That read-only issue is operating system related: http://www.dummies.com/computers/operating-systems/windows-xp-vista/how-to-change-the-read-only-attribute-on-files-and-folders/

And, sorry for the "coop" confusion, that was a mistake on my part. The variable's name is actually "npcArea", not coop. I've edited the thread, good luck!

Edited by Easy
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...