Advertisement
Guest User

Untitled

a guest
Aug 19th, 2015
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.66 KB | None | 0 0
  1. package scripts.mining.iclayfarmer;
  2.  
  3. import java.awt.Color;
  4. import java.awt.Font;
  5. import java.awt.Graphics;
  6. import java.awt.Graphics2D;
  7. import java.awt.Image;
  8. import java.io.BufferedReader;
  9. import java.io.InputStreamReader;
  10. import java.net.URL;
  11. import java.net.URLConnection;
  12. import java.text.DecimalFormat;
  13. import java.util.regex.Matcher;
  14. import java.util.regex.Pattern;
  15.  
  16. import org.tribot.api.General;
  17. import org.tribot.api.Timing;
  18. import org.tribot.api.input.Mouse;
  19. import org.tribot.api2007.Game;
  20. import org.tribot.api2007.Interfaces;
  21. import org.tribot.api2007.Inventory;
  22. import org.tribot.api2007.NPCChat;
  23. import org.tribot.api2007.Player;
  24. import org.tribot.api2007.Skills;
  25. import org.tribot.api2007.Skills.SKILLS;
  26. import org.tribot.api2007.Walking;
  27. import org.tribot.api2007.types.RSInterface;
  28. import org.tribot.api2007.types.RSItem;
  29. import org.tribot.api2007.types.RSObject;
  30. import org.tribot.script.EnumScript;
  31. import org.tribot.script.ScriptManifest;
  32. import org.tribot.script.interfaces.Painting;
  33.  
  34. import scripts.methods.Methods;
  35.  
  36.  
  37. @ScriptManifest(authors = { "Ian" }, category = "Money Making", name = "iClayFarmer")
  38.  
  39. public class Main extends EnumScript<Settings.State> implements Painting {
  40.  
  41. private Bank banking = null;
  42. private Data data = null;
  43. private Walk walking = null;
  44. private Mining mining = null;
  45. private Pickaxe pickaxe = null;
  46. private Settings.Task task = null;
  47. private GUI gui = null;
  48. private SmokingRock smokingRock = null;
  49. private AntiBan antiBan = null;
  50.  
  51. private Settings.Bracelet bracelet = null;
  52.  
  53. private Settings.Locations location = null;
  54.  
  55. private Settings.State state = null;
  56.  
  57. private int hoursToRun = -1;
  58.  
  59. private int braceletPrice = -1;
  60.  
  61. private int clayPrice = -1;
  62.  
  63. private int softClayPrice = -1;
  64.  
  65. private boolean scriptEnd = false;
  66.  
  67. private DecimalFormat decimalFormat = new DecimalFormat("#.##");
  68.  
  69. private final String PAINT_PICTURE_URL = "http://i43.tinypic.com/mjpbbt.png";
  70.  
  71. private final Image PAINT_IMG = Methods.getImage(PAINT_PICTURE_URL);
  72.  
  73. @Override
  74. public void onPaint(Graphics g) {
  75. ((Graphics2D)g).drawImage(PAINT_IMG, 0, 290, null);
  76. g.setColor(Color.WHITE);
  77. g.setFont(new Font("default", Font.BOLD, 12));
  78. g.drawString(getStateToString(), 39, 430);
  79. int clay = getTask().equals(Settings.Task.MINE) && getBracelet().equals(Settings.Bracelet.NO) ? getData().getClayMined() : getData().getSoftClayMade();
  80. int softClayHr = (int) (clay / ((getRunningTime()) / 3600000D));
  81. g.drawString(clay + " (" + softClayHr + ")", 290, 358);
  82. double gpMade = getGPMade();
  83. double gpPerHour = (double) (gpMade / ((getRunningTime()) / 3600000D));
  84. g.drawString(setInMoneyFormat(gpMade) + " (" + setInMoneyFormat(gpPerHour) + ")", 290, 384);
  85. int levelsGained = Skills.getActualLevel(SKILLS.MINING) - getData().getStartLevel();
  86. g.drawString(Skills.getActualLevel(SKILLS.MINING) + " (" + levelsGained +")", 290, 412);
  87. int xpGained = getData().getCurrentXP() - getData().getStartXP();
  88. int xpPerHour = (int) (xpGained / ((getRunningTime()) / 3600000D));
  89. g.drawString(xpGained + " (" + xpPerHour + ")", 290, 438);
  90. g.drawString(Timing.msToString(getRunningTime()), 290, 464);
  91. }
  92.  
  93. public int getGPMade() {
  94. int softClayMade = getData().getSoftClayMade();
  95. int moneySpent = getData().getMoneySpent();
  96. int clayMined = getData().getClayMined();
  97. boolean wearingBracelet = getBracelet().equals(Settings.Bracelet.YES);
  98. switch(getTask()) {
  99. case MINE:
  100. if(wearingBracelet) {
  101. return (softClayMade * getSoftClayPrice()) - moneySpent;
  102. }
  103. return (clayMined * getClayPrice());
  104. case MINE_AND_SOFTEN:
  105. return (softClayMade * getSoftClayPrice());
  106. case SOFTEN:
  107. return ((softClayMade * getSoftClayPrice()) - (softClayMade * getClayPrice()));
  108. }
  109. return 0;
  110. }
  111.  
  112. @Override
  113. public Settings.State getInitialState() {
  114. if(gui == null) {
  115. setGui(new GUI(this));
  116. }
  117. while(getGui().isVisible()) {
  118. sleep(50, 100);
  119. }
  120. if(data == null) {
  121. setData(new Data(this));
  122. }
  123. if(banking == null) {
  124. setBanking(new Bank(this));
  125. }
  126. if(pickaxe == null) {
  127. setPickaxe(new Pickaxe(this));
  128. }
  129. if(walking == null) {
  130. setWalking(new Walk(this));
  131. }
  132. if(mining == null) {
  133. setMining(new Mining(this));
  134. }
  135. if(smokingRock == null) {
  136. setSmokingRock(new SmokingRock(this));
  137. }
  138. if(antiBan == null) {
  139. setAntiBan(new AntiBan(this));
  140. }
  141. getData().getInitialData();
  142. Walking.setWalkingTimeout(2000);
  143. Walking.setControlClick(true);
  144. Mouse.setSpeed(130+General.random(0, 10));
  145. println("Location: " + getLocation().toString());
  146. if(getPickaxe().hasBrokenAxe()) {
  147. Settings.State s = null;
  148. if(Inventory.getCount(995) < getPickaxeRepairReq(getData().getPickaxeId())) {
  149. s = Settings.State.WALKING_TO_BANK;
  150. } else {
  151. s = Settings.State.WALKING_TO_BOB;
  152. }
  153. setState(s);
  154. return s;
  155. }
  156. if(Constants.isInsideVarrockMine() || Constants.isInsideCraftingGuild()) {
  157. setState(Settings.State.MINING_CLAY_ROCKS);
  158. return Settings.State.MINING_CLAY_ROCKS;
  159. }
  160. if(isAtWaterSource()) {
  161. setState(Settings.State.MAKING_SOFT_CLAY);
  162. return Settings.State.MAKING_SOFT_CLAY;
  163. }
  164. if(getBanking().isInsideBank()) {
  165. setState(Settings.State.BANKING);
  166. return Settings.State.BANKING;
  167. }
  168. setState(Settings.State.BANKING);
  169. return Settings.State.BANKING;
  170. }
  171.  
  172. public int getPickaxeRepairReq(int pickaxeId) {
  173. final int[][] data = Constants.PICKAXES;
  174. if(pickaxeId == data[0][0]) {
  175. return 0;
  176. } else if(pickaxeId == data[1][0]) {
  177. return 0;
  178. } else if(pickaxeId == data[2][0]) {
  179. return 17;
  180. } else if(pickaxeId == data[3][0]) {
  181. return 43;
  182. } else if(pickaxeId == data[4][0]) {
  183. return 107;
  184. } else if(pickaxeId == data[5][0]) {
  185. return 1100;
  186. }
  187. return 0;
  188. }
  189.  
  190. @Override
  191. public Settings.State handleState(Settings.State state) {
  192. if(isScriptEnd()) {
  193. Thread.currentThread().interrupt();
  194. return null;
  195. }
  196. state = getState() != null ? getState() : getInitialState();
  197. getData().setCurrentXP(Skills.getXP(Skills.SKILLS.MINING));
  198. getData().setCurrentLevel(Skills.getActualLevel(Skills.SKILLS.MINING));
  199. switch(state) {
  200. case BANKING:
  201. if(getBanking().isInsideBank()) {
  202. getBanking().performBankTask();
  203. if(getBanking().isInventorySetup()) {
  204. switch(getTask()) {
  205. case MINE:
  206. case MINE_AND_SOFTEN:
  207. setState(Settings.State.WALKING_TO_CLAY_ROCKS);
  208. return Settings.State.WALKING_TO_CLAY_ROCKS;
  209. case SOFTEN:
  210. setState(Settings.State.WALKING_TO_WATER_SOURCE);
  211. return Settings.State.WALKING_TO_WATER_SOURCE;
  212. }
  213. }
  214. return Settings.State.BANKING;
  215. }
  216. setState(Settings.State.WALKING_TO_BANK);
  217. return Settings.State.WALKING_TO_BANK;
  218.  
  219. case WALKING_TO_CLAY_ROCKS:
  220. getWalking().toMine();
  221. return Settings.State.WALKING_TO_CLAY_ROCKS;
  222.  
  223. case MINING_CLAY_ROCKS:
  224. if(getMining().isInsideMine()) {
  225. if(!getPickaxe().hasPickaxe()) {
  226. if(getPickaxe().isHeadOnGround()) {
  227. getPickaxe().pickupHead();
  228. getPickaxe().attachHead();
  229. } else {
  230. setState(Settings.State.WALKING_TO_BANK);
  231. return Settings.State.WALKING_TO_BANK;
  232. }
  233. }
  234. if(getMining().canMine()) {
  235. getMining().mineRock();
  236. return Settings.State.MINING_CLAY_ROCKS;
  237. }
  238. switch(getTask()) {
  239. case MINE_AND_SOFTEN:
  240. setState(Settings.State.WALKING_TO_WATER_SOURCE);
  241. return Settings.State.WALKING_TO_WATER_SOURCE;
  242. case MINE:
  243. setState(Settings.State.WALKING_TO_BANK);
  244. return Settings.State.WALKING_TO_BANK;
  245. }
  246. }
  247. setState(Settings.State.WALKING_TO_CLAY_ROCKS);
  248. return Settings.State.WALKING_TO_CLAY_ROCKS;
  249.  
  250. case WALKING_TO_WATER_SOURCE:
  251. getWalking().toFountain();
  252. return Settings.State.WALKING_TO_WATER_SOURCE;
  253.  
  254. case MAKING_SOFT_CLAY:
  255. if(isAtWaterSource()) {
  256. performClayTask();
  257. if(isClayTaskFinished()) {
  258. setState(Settings.State.WALKING_TO_BANK);
  259. return Settings.State.WALKING_TO_BANK;
  260. }
  261. return Settings.State.MAKING_SOFT_CLAY;
  262. }
  263. setState(Settings.State.WALKING_TO_BANK);
  264. return Settings.State.WALKING_TO_BANK;
  265.  
  266. case WALKING_TO_BANK:
  267. if(getPickaxe().isAxeBroken()) {
  268. getPickaxe().walkToBank();
  269. return Settings.State.WALKING_TO_BANK;
  270. }
  271. getWalking().toBank();
  272. return Settings.State.WALKING_TO_BANK;
  273.  
  274. case WALKING_TO_BOB:
  275. getPickaxe().walkToShop();
  276. if(Constants.isInsideAxeShop()) {
  277. setState(Settings.State.REPAIRING_PICKAXE);
  278. return Settings.State.REPAIRING_PICKAXE;
  279. }
  280. return Settings.State.WALKING_TO_BOB;
  281.  
  282. case REPAIRING_PICKAXE:
  283. getPickaxe().repairAxe();
  284. if(!getPickaxe().isAxeBroken()) {
  285. setState(Settings.State.WALKING_TO_BANK);
  286. return Settings.State.WALKING_TO_BANK;
  287. }
  288. return Settings.State.REPAIRING_PICKAXE;
  289.  
  290. }
  291. return null;
  292. }
  293.  
  294. public boolean isAtWaterSource() {
  295. if(Constants.isInsideVarrockSquare()
  296. || Constants.isAtWaterPump()
  297. || Constants.isAtWell()
  298. || Constants.isAtEastFountain()) {
  299. return true;
  300. }
  301. return false;
  302. }
  303.  
  304. private boolean isClayTaskFinished() {
  305. RSItem[] clay = Inventory.find(Constants.CLAY_ITEM);
  306. if(clay == null || clay.length <= 0) {
  307. return true;
  308. }
  309. return false;
  310. }
  311.  
  312. private void performClayTask() {
  313. RSObject fountain = Methods.findObjectByModelPoints(new int[]{ getWaterModelPoints() });
  314. if(fountain != null) {
  315. makeSoftClay();
  316. }
  317. }
  318.  
  319. private int getWaterModelPoints() {
  320. switch(getLocation()) {
  321. case VARROCK:
  322. switch(getTask()) {
  323. case MINE_AND_SOFTEN:
  324. return Constants.VARROCK_SQUARE_FOUNTAIN;
  325. case SOFTEN:
  326. return Constants.VARROCK_EAST_FOUNTAIN;
  327. }
  328. case FALADOR:
  329. return Constants.WATERPUMP;
  330. case EDGEVILLE:
  331. return Constants.WELL;
  332. }
  333. return -1;
  334. }
  335.  
  336. private void makeSoftClay() {
  337. if(Inventory.getCount(Constants.CLAY_ITEM) <= 0) {
  338. int softClayMade = Inventory.getCount(Constants.SOFT_CLAY);
  339. getData().setSoftClayMade(getData().getSoftClayMade() + softClayMade);
  340. setState(Settings.State.WALKING_TO_BANK);
  341. return;
  342. }
  343. while(Inventory.getCount(Constants.BUCKET_OF_WATER) < Inventory.getCount(Constants.CLAY_ITEM) && Inventory.getCount(Constants.BUCKET) > 0) {
  344. fillBuckets(Methods.findObjectByModelPoints(new int[]{ getWaterModelPoints() }));
  345. sleep(50, 100);
  346. }
  347. RSItem[] clay = Inventory.find(Constants.CLAY_ITEM);
  348. RSItem[] waterBucket = Inventory.find(Constants.BUCKET_OF_WATER);
  349.  
  350. if(clay != null && waterBucket != null) {
  351. getData().setTimeout(System.currentTimeMillis());
  352. while(clay != null && clay.length >= 0
  353. && waterBucket != null && waterBucket.length >= 0
  354. && !isTimedOut(20000, 22000)) {
  355. clay = Inventory.find(Constants.CLAY_ITEM);
  356. waterBucket = Inventory.find(Constants.BUCKET_OF_WATER);
  357. if(Inventory.getCount(Constants.CLAY_ITEM) > 0
  358. && Inventory.getCount(Constants.BUCKET_OF_WATER) > 0) {
  359. if(clay[0].click("Use")) {
  360. if(waterBucket[waterBucket.length - 1].click("Use")) {
  361. if(Inventory.getCount(Constants.CLAY_ITEM) == 1) {
  362. if(allClaySoft(1500)) {
  363. int softClayMade = Inventory.getCount(Constants.SOFT_CLAY);
  364. getData().setSoftClayMade(getData().getSoftClayMade() + softClayMade);
  365. setState(Settings.State.WALKING_TO_BANK);
  366. break;
  367. }
  368. }
  369. if(makeInterface(1000)) {
  370. int[] clayInterfaceData = Constants.SOFT_CLAY_INTERFACE;
  371. RSInterface clayInterface = Interfaces.get(clayInterfaceData[0], clayInterfaceData[1]);
  372. if(clayInterface != null) {
  373. while(Interfaces.get(clayInterfaceData[0], clayInterfaceData[1]) != null) {
  374. if(clayInterface.click("Make All")) {
  375. int clayCount = Inventory.getCount(Constants.CLAY_ITEM);
  376. if(allClaySoft(clayCount * 1500)) {
  377. int softClayMade = Inventory.getCount(Constants.SOFT_CLAY);
  378. getData().setSoftClayMade(getData().getSoftClayMade() + softClayMade);
  379. setState(Settings.State.WALKING_TO_BANK);
  380. break;
  381. }
  382. }
  383. sleep(50, 100);
  384. }
  385. }
  386. if(getState().equals(Settings.State.WALKING_TO_BANK)) {
  387. break;
  388. }
  389. }
  390. }
  391. }
  392. }
  393. sleep(50, 100);
  394. }
  395. }
  396. }
  397.  
  398. private boolean allClaySoft(int i) {
  399. long t = System.currentTimeMillis();
  400. while (Timing.timeFromMark(t) < i) {
  401. getAntiBan().performRandomAntiBan();
  402. if(Inventory.getCount(Constants.CLAY_ITEM) <= 0) {
  403. return true;
  404. }
  405. if(NPCChat.getMessage() != null) {
  406. return false;
  407. }
  408. if(Inventory.getCount(Constants.BUCKET_OF_WATER) <= 0) {
  409. return false;
  410. }
  411. sleep(50, 150);
  412. }
  413. return false;
  414. }
  415.  
  416. private boolean makeInterface(int i) {
  417. long t = System.currentTimeMillis();
  418. while (Timing.timeFromMark(t) < i) {
  419. RSInterface clayInterface = Interfaces.get(309, 2);
  420. if(clayInterface != null) {
  421. return true;
  422. }
  423. sleep(50, 150);
  424. }
  425. return false;
  426. }
  427.  
  428. private void fillBuckets(RSObject fountain) {
  429. RSItem[] bucket = Inventory.find(Constants.BUCKET);
  430. if(bucket != null) {
  431. if(bucket != null && bucket.length > 0) {
  432. bucket = Inventory.find(Constants.BUCKET);
  433. if(bucket != null && bucket.length > 0) {
  434. if(bucket[0].click("Use")) {
  435. String uptext = getWaterUptext();
  436. while(Inventory.getCount(Constants.BUCKET) > 0 && !Game.getUptext().contains(uptext) && Game.getUptext().contains("Bucket")) {
  437. if(!Game.getUptext().contains(uptext))
  438. fountain.hover();
  439. sleep(50, 100);
  440. }
  441. if(fountain.click("Use")) {
  442. int bucketAmount = Inventory.getCount(Constants.BUCKET);
  443. if(playingBucketAnimation(4000)) {
  444. bucketsFull(600 * bucketAmount);
  445. }
  446. }
  447. }
  448. }
  449. }
  450. }
  451. }
  452.  
  453. private String getWaterUptext() {
  454. switch(getLocation()) {
  455. case VARROCK:
  456. return "Fountain";
  457. case FALADOR:
  458. return "Waterpump";
  459. case EDGEVILLE:
  460. return "Well";
  461. }
  462. return "";
  463. }
  464.  
  465. private boolean bucketsFull(int i) {
  466. long t = System.currentTimeMillis();
  467. while (Timing.timeFromMark(t) < i) {
  468. if(NPCChat.getMessage() != null) {
  469. return false;
  470. }
  471. if(Inventory.getCount(Constants.BUCKET_OF_WATER) >= Inventory.getCount(Constants.CLAY_ITEM)){
  472. return true;
  473. }
  474. if(Player.getAnimation() == -1) {
  475. if (Inventory.getCount(Constants.BUCKET) <= 0) {
  476. return true;
  477. }
  478. }
  479. sleep(50, 150);
  480. }
  481. return false;
  482. }
  483.  
  484. private boolean playingBucketAnimation(int i) {
  485. long t = System.currentTimeMillis();
  486. while (Timing.timeFromMark(t) < i) {
  487.  
  488. if(Player.getAnimation() == 832) {
  489. return true;
  490. }
  491. sleep(50, 150);
  492. }
  493. return false;
  494. }
  495.  
  496. private String getStateToString() {
  497. switch(getState()) {
  498. case BANKING:
  499. return "Banking";
  500. case WALKING_TO_CLAY_ROCKS:
  501. return "Walking to Clay Rocks";
  502. case MINING_CLAY_ROCKS:
  503. return "Mining Clay Rocks";
  504. case WALKING_TO_WATER_SOURCE:
  505. return "Walking to Water Source";
  506. case MAKING_SOFT_CLAY:
  507. return "Making Soft Clay";
  508. case WALKING_TO_BANK:
  509. return "Walking to Bank";
  510. case WALKING_TO_BOB:
  511. return "Walking to Bob";
  512. case REPAIRING_PICKAXE:
  513. return "Repairing Pickaxe";
  514. }
  515. return "Waiting";
  516. }
  517.  
  518. public boolean isTimedOut(int min, int max) {
  519. if(System.currentTimeMillis() - getData().getTimeout() < General.random(min, max)) {
  520. return false;
  521. }
  522. return true;
  523. }
  524.  
  525. private static String readUrl(String urlString) throws Exception {
  526. BufferedReader reader = null;
  527. URLConnection uc = null;
  528. try {
  529. URL url = new URL(urlString);
  530. uc = url.openConnection();
  531. uc.addRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)");
  532. uc.connect();
  533. reader = new BufferedReader(new InputStreamReader(uc.getInputStream()));
  534. StringBuffer buffer = new StringBuffer();
  535. int read;
  536. char[] chars = new char[1024];
  537. while ((read = reader.read(chars)) != -1)
  538. buffer.append(chars, 0, read);
  539. return buffer.toString();
  540. } finally {
  541. if (reader != null)
  542. reader.close();
  543. }
  544. }
  545.  
  546. public int getZybezPrice(String itemName) {
  547. String s = "";
  548. try {
  549. s = readUrl("http://forums.zybez.net/runescape-2007-prices/api/"+itemName.replaceAll("\\s","+"));
  550. } catch (Exception e) {
  551. e.printStackTrace();
  552. }
  553. Pattern pattern = Pattern.compile("(?<=\"average\":\")[0-9]+");
  554. Matcher matcher = pattern.matcher(s);
  555. while (matcher.find())
  556. return(Integer.parseInt(matcher.group()));
  557. return 0;
  558. }
  559.  
  560. private String zybezString = "";
  561.  
  562. public void openZybezItemData(String ItemName){
  563.  
  564. try {
  565. zybezString = readUrl("http://forums.zybez.net/runescape-2007-prices/api/"+ItemName.replaceAll("\\s","+"));
  566. } catch (Exception e) {
  567. e.printStackTrace();
  568. }
  569. }
  570. public int getAveragePrice() {
  571.  
  572. Pattern pattern = Pattern.compile("(?<=\"average\":\")[0-9]+");
  573. Matcher matcher = pattern.matcher(zybezString);
  574. while (matcher.find())
  575. return(Integer.parseInt(matcher.group()));
  576. return 0;
  577. }
  578.  
  579. private String setInMoneyFormat(double amount) {
  580. final int ONE_K = 1000;
  581. if(amount >= ONE_K) {
  582. return decimalFormat.format(((double) amount / ONE_K)) + "K";
  583. }
  584. return "" + decimalFormat.format(amount);
  585. }
  586.  
  587. public Bank getBanking() {
  588. return banking;
  589. }
  590.  
  591. public void setBanking(Bank banking) {
  592. this.banking = banking;
  593. }
  594.  
  595. public Data getData() {
  596. return data;
  597. }
  598.  
  599. public void setData(Data data) {
  600. this.data = data;
  601. }
  602.  
  603. public void setState(Settings.State state) {
  604. this.state = state;
  605. }
  606.  
  607. public Settings.State getState() {
  608. return state;
  609. }
  610.  
  611. public void setWalking(Walk walking) {
  612. this.walking = walking;
  613. }
  614.  
  615. public Walk getWalking() {
  616. return walking;
  617. }
  618.  
  619. public void setMining(Mining mining) {
  620. this.mining = mining;
  621. }
  622.  
  623. public Mining getMining() {
  624. return mining;
  625. }
  626.  
  627. public void setPickaxe(Pickaxe pickaxe) {
  628. this.pickaxe = pickaxe;
  629. }
  630.  
  631. public Pickaxe getPickaxe() {
  632. return pickaxe;
  633. }
  634.  
  635. public int getSoftClayPrice() {
  636. return softClayPrice;
  637. }
  638.  
  639. public void setSoftClayPrice(int softClayPrice) {
  640. this.softClayPrice = softClayPrice;
  641. }
  642.  
  643. public void setTask(Settings.Task task) {
  644. this.task = task;
  645. }
  646.  
  647. public Settings.Task getTask() {
  648. return task;
  649. }
  650.  
  651. public void setGui(GUI gui) {
  652. this.gui = gui;
  653. }
  654.  
  655. public GUI getGui() {
  656. return gui;
  657. }
  658.  
  659. public void setScriptEnd(boolean scriptEnd) {
  660. this.scriptEnd = scriptEnd;
  661. }
  662.  
  663. public boolean isScriptEnd() {
  664. return scriptEnd;
  665. }
  666.  
  667. public void setSmokingRock(SmokingRock smokingRock) {
  668. this.smokingRock = smokingRock;
  669. }
  670.  
  671. public SmokingRock getSmokingRock() {
  672. return smokingRock;
  673. }
  674.  
  675. public AntiBan getAntiBan() {
  676. return antiBan;
  677. }
  678.  
  679. public void setAntiBan(AntiBan antiBan) {
  680. this.antiBan = antiBan;
  681. }
  682.  
  683. public void setLocation(Settings.Locations location) {
  684. this.location = location;
  685. }
  686.  
  687. public Settings.Locations getLocation() {
  688. return location;
  689. }
  690.  
  691. public void setClayPrice(int clayPrice) {
  692. this.clayPrice = clayPrice;
  693. }
  694.  
  695. public int getClayPrice() {
  696. return clayPrice;
  697. }
  698.  
  699. public void setHoursToRun(int hoursToRun) {
  700. this.hoursToRun = hoursToRun;
  701. }
  702.  
  703. public int getHoursToRun() {
  704. return hoursToRun;
  705. }
  706.  
  707. public void setBracelet(Settings.Bracelet bracelet) {
  708. this.bracelet = bracelet;
  709. }
  710.  
  711. public Settings.Bracelet getBracelet() {
  712. return bracelet;
  713. }
  714.  
  715. public void setBraceletPrice(int braceletPrice) {
  716. this.braceletPrice = braceletPrice;
  717. }
  718.  
  719. public int getBraceletPrice() {
  720. return braceletPrice;
  721. }
  722.  
  723. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement