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:
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