Advertisement
wafflecat

ag42g

Feb 26th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.63 KB | None | 0 0
  1. import java.awt.*;
  2. import com.com.rarebot.script.*;
  3. import com.com.rarebot.wrappers.*;
  4. import com.rarebot.event.listeners.*;
  5. import com.rarebot.bot.Bot;
  6.  
  7. public class FxFalconry extends Script {
  8. private int State = 0;
  9. public boolean FullInv = false;
  10. public int KEBBITS;
  11. public static int SPOTTEDKEBBIT = 5098;
  12. public static int DARKKEBBIT = 5099;
  13. public static int DASHINGKEBBIT = 5100;
  14.  
  15. public int FURS;
  16. public static int SPOTTEDFUR = 10125;
  17. public static int DARKFUR = 10115;
  18. public static int DASHINGFUR = 10127;
  19.  
  20. public int BONES;
  21. public static int KEBBITBONES = 526;
  22.  
  23. public int FALCONS;
  24. public static int FALCONSPOTTED = 5094;
  25. public static int FALCONDARK = 5096;
  26. public static int FALCONDASHING = 5095;
  27.  
  28. public int logcount;
  29. final int S_CATCHKEBBITS = 1000;
  30. final int S_RETRIEVEFALCONS = 2000;
  31. final int S_DROPITEMS = 3000;
  32. int scriptState = S_CATCHKEBBITS;
  33. int GambleInt;
  34.  
  35.  
  36. public double getVersion( ) {
  37. return( 1.0 );
  38. }
  39.  
  40. public String getName( ) {
  41. return( "FxFalconry" );
  42. }
  43.  
  44. public String getAuthor( ) {
  45. return( "Lord_Vamp & Fx" );
  46. }
  47.  
  48. public String getScriptCategory( ) {
  49. return "Skills/Hunter";
  50. }
  51.  
  52.  
  53. public boolean onStart(String[] s) {
  54. logcount = 0;
  55. if (s[0].toLowerCase().contains("p")) {
  56. KEBBITS = SPOTTEDKEBBIT;
  57. FURS = SPOTTEDFUR;
  58. FALCONS = FALCONSPOTTED;
  59. BONES = KEBBITBONES;
  60. System.out
  61. .println("Lord_Vamp & Fx PiscatorisFalconry started, catching Spottted Kebbits.");
  62. return true;
  63. } else if (s[0].toLowerCase().contains("r")) {
  64. KEBBITS = DARKKEBBIT;
  65. FURS = DARKFUR;
  66. FALCONS = FALCONDARK;
  67. BONES = KEBBITBONES;
  68. System.out
  69. .println("Lord_Vamp & Fx PiscatorisFalconry started, catching Dark Kebbits.");
  70. return true;
  71. } else if (s[0].toLowerCase().contains("i")) {
  72. KEBBITS = DASHINGKEBBIT;
  73. FURS = DASHINGFUR;
  74. FALCONS = FALCONDASHING;
  75. BONES = KEBBITBONES;
  76. System.out
  77. .println("Lord_Vamp & Fx PiscatorisFalconry started, catching Dashing Kebbits.");
  78. return true;
  79. }
  80. System.out.println("Enter an Argument please!");
  81. return false;
  82. }
  83.  
  84. public void onFinish( ) {
  85. }
  86.  
  87. public int loop( ) {
  88. if ( !isIdle( ) )
  89. return( antiBan( ) );
  90.  
  91. if ( isInventoryFull( ) ) {
  92. scriptState = S_DROPITEMS;
  93. }
  94.  
  95. switch ( scriptState ) {
  96. case S_CATCHKEBBITS:
  97. RSNPC kebbit = getNearestNPCByID(KEBBITS);
  98. if ( kebbit != null) {
  99. atNPC(kebbit, "Catch");
  100. scriptState = S_RETRIEVEFALCONS;
  101. return( random(750, 1500) );
  102. }
  103. else {
  104. return( random(750, 1500) );
  105. }
  106. case S_RETRIEVEFALCONS:
  107. RSNPC Gyr_Falcon = getNearestNPCByID(FALCONS);
  108. if ( Gyr_Falcon != null ) {
  109. atNPC(Gyr_Falcon, "Retrieve");
  110. return( random(750, 1500) );
  111. }
  112. else {
  113. scriptState = S_CATCHKEBBITS;
  114. return( random(750, 1500) );
  115. }
  116.  
  117. case S_DROPITEMS:
  118. if ( getInventoryCount(BONES) == 0 && getInventoryCount(FURS) == 0 ) {
  119. scriptState = S_CATCHKEBBITS;
  120. return( random(750, 1500) );
  121. }
  122.  
  123. if ( getInventoryCount(BONES) > 0) {
  124. atInventoryItem(BONES, "Drop");
  125. }
  126.  
  127. if ( getInventoryCount(FURS) > 0 ) {
  128. atInventoryItem(FURS, "Drop");
  129. }
  130.  
  131. return( random(750, 1500) );
  132. }
  133. return( random(750, 1500) );
  134. }
  135. public int antiBan( ) {
  136. int GambleInt = random(1, 3);
  137. if (GambleInt == 1)
  138. {
  139. wait( random(2000, 2000) );
  140. }
  141. if (GambleInt == 2)
  142. {
  143. int x = random(0, 750);
  144. int y = random(0, 500);
  145. moveMouse(0, 0, x, y);
  146. log("Anti-ban");
  147. }
  148. return( random(500, 1000) );
  149. }
  150.  
  151. public boolean isIdle( ) {
  152. return( getMyPlayer( ).getAnimation( ) == -1 );
  153. }
  154. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement