import java.awt.*;
import com.com.rarebot.script.*;
import com.com.rarebot.wrappers.*;
import com.rarebot.event.listeners.*;
import com.rarebot.bot.Bot;
public class FxFalconry extends Script {
private int State = 0;
public boolean FullInv = false;
public int KEBBITS;
public static int SPOTTEDKEBBIT = 5098;
public static int DARKKEBBIT = 5099;
public static int DASHINGKEBBIT = 5100;
public int FURS;
public static int SPOTTEDFUR = 10125;
public static int DARKFUR = 10115;
public static int DASHINGFUR = 10127;
public int BONES;
public static int KEBBITBONES = 526;
public int FALCONS;
public static int FALCONSPOTTED = 5094;
public static int FALCONDARK = 5096;
public static int FALCONDASHING = 5095;
public int logcount;
final int S_CATCHKEBBITS = 1000;
final int S_RETRIEVEFALCONS = 2000;
final int S_DROPITEMS = 3000;
int scriptState = S_CATCHKEBBITS;
int GambleInt;
public double getVersion( ) {
return( 1.0 );
}
public String getName( ) {
return( "FxFalconry" );
}
public String getAuthor( ) {
return( "Lord_Vamp & Fx" );
}
public String getScriptCategory( ) {
return "Skills/Hunter";
}
public boolean onStart(String[] s) {
logcount = 0;
if (s[0].toLowerCase().contains("p")) {
KEBBITS = SPOTTEDKEBBIT;
FURS = SPOTTEDFUR;
FALCONS = FALCONSPOTTED;
BONES = KEBBITBONES;
System.out
.println("Lord_Vamp & Fx PiscatorisFalconry started, catching Spottted Kebbits.");
return true;
} else if (s[0].toLowerCase().contains("r")) {
KEBBITS = DARKKEBBIT;
FURS = DARKFUR;
FALCONS = FALCONDARK;
BONES = KEBBITBONES;
System.out
.println("Lord_Vamp & Fx PiscatorisFalconry started, catching Dark Kebbits.");
return true;
} else if (s[0].toLowerCase().contains("i")) {
KEBBITS = DASHINGKEBBIT;
FURS = DASHINGFUR;
FALCONS = FALCONDASHING;
BONES = KEBBITBONES;
System.out
.println("Lord_Vamp & Fx PiscatorisFalconry started, catching Dashing Kebbits.");
return true;
}
System.out.println("Enter an Argument please!");
return false;
}
public void onFinish( ) {
}
public int loop( ) {
if ( !isIdle( ) )
return( antiBan( ) );
if ( isInventoryFull( ) ) {
scriptState = S_DROPITEMS;
}
switch ( scriptState ) {
case S_CATCHKEBBITS:
RSNPC kebbit = getNearestNPCByID(KEBBITS);
if ( kebbit != null) {
atNPC(kebbit, "Catch");
scriptState = S_RETRIEVEFALCONS;
return( random(750, 1500) );
}
else {
return( random(750, 1500) );
}
case S_RETRIEVEFALCONS:
RSNPC Gyr_Falcon = getNearestNPCByID(FALCONS);
if ( Gyr_Falcon != null ) {
atNPC(Gyr_Falcon, "Retrieve");
return( random(750, 1500) );
}
else {
scriptState = S_CATCHKEBBITS;
return( random(750, 1500) );
}
case S_DROPITEMS:
if ( getInventoryCount(BONES) == 0 && getInventoryCount(FURS) == 0 ) {
scriptState = S_CATCHKEBBITS;
return( random(750, 1500) );
}
if ( getInventoryCount(BONES) > 0) {
atInventoryItem(BONES, "Drop");
}
if ( getInventoryCount(FURS) > 0 ) {
atInventoryItem(FURS, "Drop");
}
return( random(750, 1500) );
}
return( random(750, 1500) );
}
public int antiBan( ) {
int GambleInt = random(1, 3);
if (GambleInt == 1)
{
wait( random(2000, 2000) );
}
if (GambleInt == 2)
{
int x = random(0, 750);
int y = random(0, 500);
moveMouse(0, 0, x, y);
log("Anti-ban");
}
return( random(500, 1000) );
}
public boolean isIdle( ) {
return( getMyPlayer( ).getAnimation( ) == -1 );
}
}