05-16-2014, 12:48 AM
(This post was last modified: 05-16-2014, 12:48 AM by raphaelignacio.)
Its a redbot Script, i have soo far, this is good for shot area runes with max number of creatures in a range!
Here is the code:
/*Aoe Rune Shooter(GFB Etc) v1.1
Hotkey by Delking
Changelog v1.1:
Made the Rune Shooter better
*/
//Variables (Can be changed into Global Variables)
int monstertoshoot = 3; //How many monsters in area to shoot rune?
int Range = 4; //How far away can the monster be? The lower the safer for white skull
string runehotkey = "F11"; //What hotkey do you have your rune on?
bool Safe_Player = false; //Anti Whiteskull - Put true to not shoot when players above/same floor/under you
//Dont touch below
//Target Position
int posx = $target.posx;
int posy = $target.posy;
int posz = $target.posz;
//Top Row - By Delking
int ta = 0;
int tb = 0;
int tc = 0;
if (iscreatureontile(ground(posx-1,posy-3,posz))) { ta = 1; }
if (iscreatureontile(ground(posx,posy-3,posz))) { tb = 1; }
if (iscreatureontile(ground(posx+1,posy-3,posz))) { tc = 1; }
//Second Row - By Delking
int td = 0;
int te = 0;
int tf = 0;
int tg = 0;
int th = 0;
if (iscreatureontile(ground(posx-2,posy-2,posz))) { td = 1; }
if (iscreatureontile(ground(posx-1,posy-2,posz))) { te = 1; }
if (iscreatureontile(ground(posx,posy-2,posz))) { tf = 1; }
if (iscreatureontile(ground(posx+1,posy-2,posz))) { tg = 1; }
if (iscreatureontile(ground(posx+2,posy-2,posz))) { th = 1; }
//Third Row - By Delking
int aa = 0;
int ab = 0;
int ac = 0;
int ad = 0;
int ae = 0;
int af = 0;
int ag = 0;
if (iscreatureontile(ground(posx-3,posy-1,posz))) { aa = 1; }
if (iscreatureontile(ground(posx-2,posy-1,posz))) { ab = 1; }
if (iscreatureontile(ground(posx-1,posy-1,posz))) { ac = 1; }
if (iscreatureontile(ground(posx,posy-1,posz))) { ad = 1; }
if (iscreatureontile(ground(posx+1,posy-1,posz))) { ae = 1; }
if (iscreatureontile(ground(posx+2,posy-1,posz))) { af = 1; }
if (iscreatureontile(ground(posx+3,posy-1,posz))) { ag = 1; }
//Fourth Row - By Delking
int ba = 0;
int bb = 0;
int bc = 0;
int bd = 0;
int be = 0;
int bf = 0;
int bg = 0;
if (iscreatureontile(ground(posx-3,posy,posz))) { ba = 1; }
if (iscreatureontile(ground(posx-2,posy,posz))) { bb = 1; }
if (iscreatureontile(ground(posx-1,posy,posz))) { bc = 1; }
if (iscreatureontile(ground(posx,posy,posz))) { bd = 1; }
if (iscreatureontile(ground(posx+1,posy,posz))) { be = 1; }
if (iscreatureontile(ground(posx+2,posy,posz))) { bf = 1; }
if (iscreatureontile(ground(posx+3,posy,posz))) { bg = 1; }
//Fifth Row - By Delking
int da = 0;
int db = 0;
int dc = 0;
int dd = 0;
int de = 0;
int df = 0;
int dg = 0;
if (iscreatureontile(ground(posx-3,posy+1,posz))) { da = 1; }
if (iscreatureontile(ground(posx-2,posy+1,posz))) { db = 1; }
if (iscreatureontile(ground(posx-1,posy+1,posz))) { dc = 1; }
if (iscreatureontile(ground(posx,posy+1,posz))) { dd = 1; }
if (iscreatureontile(ground(posx+1,posy+1,posz))) { de = 1; }
if (iscreatureontile(ground(posx+2,posy+1,posz))) { df = 1; }
if (iscreatureontile(ground(posx+3,posy+1,posz))) { dg = 1; }
//Sixth Row - By Delking
int ea = 0;
int eb = 0;
int ec = 0;
int ed = 0;
int ee = 0;
if (iscreatureontile(ground(posx-2,posy+2,posz))) { ea = 1; }
if (iscreatureontile(ground(posx-1,posy+2,posz))) { eb = 1; }
if (iscreatureontile(ground(posx,posy+2,posz))) { ec = 1; }
if (iscreatureontile(ground(posx+1,posy+2,posz))) { ed = 1; }
if (iscreatureontile(ground(posx+2,posy+2,posz))) { ee = 1; }
//Seventh Row - By Delking
int fa = 0;
int fb = 0;
int fc = 0;
if (iscreatureontile(ground(posx-1,posy+3,posz))) { fa = 1; }
if (iscreatureontile(ground(posx,posy+3,posz))) { fb = 1; }
if (iscreatureontile(ground(posx+1,posy+3,posz))) { fc = 1; }
//The Hotkey itself - By Delking
int x = ta+tb+tc+td+te+tf+tg+th+aa+ab+ac+ad+ae+af+ag+ba+bb+bc+bd+be+bf+bg+da+db+dc+dd+de+df+dg+ea+eb+ec+ed+ee+fa+fb+fc;
if (x >= monstertoshoot && $target.dist <= Range && (paround(0, true) == 0 || !Safe_Player))
{
presskey(runehotkey);
Here is the code:
/*Aoe Rune Shooter(GFB Etc) v1.1
Hotkey by Delking
Changelog v1.1:
Made the Rune Shooter better
*/
//Variables (Can be changed into Global Variables)
int monstertoshoot = 3; //How many monsters in area to shoot rune?
int Range = 4; //How far away can the monster be? The lower the safer for white skull
string runehotkey = "F11"; //What hotkey do you have your rune on?
bool Safe_Player = false; //Anti Whiteskull - Put true to not shoot when players above/same floor/under you
//Dont touch below
//Target Position
int posx = $target.posx;
int posy = $target.posy;
int posz = $target.posz;
//Top Row - By Delking
int ta = 0;
int tb = 0;
int tc = 0;
if (iscreatureontile(ground(posx-1,posy-3,posz))) { ta = 1; }
if (iscreatureontile(ground(posx,posy-3,posz))) { tb = 1; }
if (iscreatureontile(ground(posx+1,posy-3,posz))) { tc = 1; }
//Second Row - By Delking
int td = 0;
int te = 0;
int tf = 0;
int tg = 0;
int th = 0;
if (iscreatureontile(ground(posx-2,posy-2,posz))) { td = 1; }
if (iscreatureontile(ground(posx-1,posy-2,posz))) { te = 1; }
if (iscreatureontile(ground(posx,posy-2,posz))) { tf = 1; }
if (iscreatureontile(ground(posx+1,posy-2,posz))) { tg = 1; }
if (iscreatureontile(ground(posx+2,posy-2,posz))) { th = 1; }
//Third Row - By Delking
int aa = 0;
int ab = 0;
int ac = 0;
int ad = 0;
int ae = 0;
int af = 0;
int ag = 0;
if (iscreatureontile(ground(posx-3,posy-1,posz))) { aa = 1; }
if (iscreatureontile(ground(posx-2,posy-1,posz))) { ab = 1; }
if (iscreatureontile(ground(posx-1,posy-1,posz))) { ac = 1; }
if (iscreatureontile(ground(posx,posy-1,posz))) { ad = 1; }
if (iscreatureontile(ground(posx+1,posy-1,posz))) { ae = 1; }
if (iscreatureontile(ground(posx+2,posy-1,posz))) { af = 1; }
if (iscreatureontile(ground(posx+3,posy-1,posz))) { ag = 1; }
//Fourth Row - By Delking
int ba = 0;
int bb = 0;
int bc = 0;
int bd = 0;
int be = 0;
int bf = 0;
int bg = 0;
if (iscreatureontile(ground(posx-3,posy,posz))) { ba = 1; }
if (iscreatureontile(ground(posx-2,posy,posz))) { bb = 1; }
if (iscreatureontile(ground(posx-1,posy,posz))) { bc = 1; }
if (iscreatureontile(ground(posx,posy,posz))) { bd = 1; }
if (iscreatureontile(ground(posx+1,posy,posz))) { be = 1; }
if (iscreatureontile(ground(posx+2,posy,posz))) { bf = 1; }
if (iscreatureontile(ground(posx+3,posy,posz))) { bg = 1; }
//Fifth Row - By Delking
int da = 0;
int db = 0;
int dc = 0;
int dd = 0;
int de = 0;
int df = 0;
int dg = 0;
if (iscreatureontile(ground(posx-3,posy+1,posz))) { da = 1; }
if (iscreatureontile(ground(posx-2,posy+1,posz))) { db = 1; }
if (iscreatureontile(ground(posx-1,posy+1,posz))) { dc = 1; }
if (iscreatureontile(ground(posx,posy+1,posz))) { dd = 1; }
if (iscreatureontile(ground(posx+1,posy+1,posz))) { de = 1; }
if (iscreatureontile(ground(posx+2,posy+1,posz))) { df = 1; }
if (iscreatureontile(ground(posx+3,posy+1,posz))) { dg = 1; }
//Sixth Row - By Delking
int ea = 0;
int eb = 0;
int ec = 0;
int ed = 0;
int ee = 0;
if (iscreatureontile(ground(posx-2,posy+2,posz))) { ea = 1; }
if (iscreatureontile(ground(posx-1,posy+2,posz))) { eb = 1; }
if (iscreatureontile(ground(posx,posy+2,posz))) { ec = 1; }
if (iscreatureontile(ground(posx+1,posy+2,posz))) { ed = 1; }
if (iscreatureontile(ground(posx+2,posy+2,posz))) { ee = 1; }
//Seventh Row - By Delking
int fa = 0;
int fb = 0;
int fc = 0;
if (iscreatureontile(ground(posx-1,posy+3,posz))) { fa = 1; }
if (iscreatureontile(ground(posx,posy+3,posz))) { fb = 1; }
if (iscreatureontile(ground(posx+1,posy+3,posz))) { fc = 1; }
//The Hotkey itself - By Delking
int x = ta+tb+tc+td+te+tf+tg+th+aa+ab+ac+ad+ae+af+ag+ba+bb+bc+bd+be+bf+bg+da+db+dc+dd+de+df+dg+ea+eb+ec+ed+ee+fa+fb+fc;
if (x >= monstertoshoot && $target.dist <= Range && (paround(0, true) == 0 || !Safe_Player))
{
presskey(runehotkey);
REP ++ IF I HELPED YOU !!! THANKS