Jump to content
Parabot - Bot for Ikov, DreamScape, SoulPlay, RuneWild, and more
Sign in to follow this  
EmmaStone

cDiamondCutter

Recommended Posts

So I was banned on PKHonor now I'm "BUTTHURT" because I was talking with my cousin on RS3 for 5 minutes and got banned.

 

 

This scripts buys, cuts and cuts again diamonds.

 

It might have some problems call this a "snippet" ;)

 

Change Log:

Made the script faster make sure your ::settings for make all is disabled

 

 

Source link: https://github.com/CapslockRSPS/MyScripts/tree/master/com/cDiamondCutter

 

 

NOTE: This doesn't make any profit and doesn't have a paint.

Edited by Capslock

Share this post


Link to post
Share on other sites

package com.cDiamondCutter.data;

import org.parabot.environment.api.utils.Time;
import org.parabot.environment.scripts.framework.SleepCondition;
import org.parabot.environment.scripts.framework.Strategy;
import org.rev317.min.api.methods.Inventory;
import org.rev317.min.api.methods.Menu;
import org.rev317.min.api.methods.Players;
import org.rev317.min.api.wrappers.Item;

import com.cDiamondCutter.strategies.Constants;

public class Making implements Strategy {

	@Override
	public boolean activate() {
		return Inventory.getCount(Constants.UNCUT_DIAMONDS_ID) == 25;
	}

	@Override
	public void execute() {
		//TODO
		Item CHISEL = Inventory.getItem(Constants.CHISEL_ID);
		Item UNCUT_DIAMOND = Inventory.getItem(Constants.UNCUT_DIAMONDS_ID);
		Menu.sendAction(447, Constants.CHISEL_ID - 1, CHISEL.getSlot(), 3214, 3);
		Menu.sendAction(870, Constants.UNCUT_DIAMONDS_ID - 1, UNCUT_DIAMOND.getSlot(), 3214, 1);
		Menu.sendAction(315, 5029888, 272, 2498, 1);
		Time.sleep(24000);
		Menu.sendAction(447, Constants.CHISEL_ID - 1, CHISEL.getSlot(), 3214, 3);
		Menu.sendAction(870, 1601, 14, 3214, 1);
		Menu.sendAction(315, Constants.DIAMONDS_ID - 1, 8, 2472, 1);
		Menu.sendAction(315, Constants.DIAMONDS_ID - 1, 20, 2498, 1);
		Time.sleep(new SleepCondition() {
			@Override
			public boolean isValid() {
				return Players.getMyPlayer().getAnimation() == -1;
			}
		}, 500);
	}

}
can be replaced with

 

package com.cDiamondCutter.data;

import org.parabot.environment.api.utils.Time;
import org.parabot.environment.scripts.framework.SleepCondition;
import org.parabot.environment.scripts.framework.Strategy;
import org.rev317.min.api.methods.Inventory;
import org.rev317.min.api.methods.Menu;
import org.rev317.min.api.methods.Players;
import org.rev317.min.api.wrappers.Item;

import com.cDiamondCutter.strategies.Constants;

public class Making implements Strategy {

	@Override
	public boolean activate() {
		return Inventory.getCount(Constants.UNCUT_DIAMONDS_ID) >= 1;
	}

	@Override
	public void execute() {

         Inventory.combine(constants.CHISEL_ID, constants.UNCUT_DIAMONDS_ID);
		Time.sleep(new SleepCondition() {
			@Override
			public boolean isValid() {
				return Players.getMyPlayer().getAnimation() == -1;
			}
		}, 1000);
	}

}
Edited by scriptss

Share this post


Link to post
Share on other sites

package com.cDiamondCutter.data;

import org.parabot.environment.api.utils.Time;
import org.parabot.environment.scripts.framework.SleepCondition;
import org.parabot.environment.scripts.framework.Strategy;
import org.rev317.min.api.methods.Inventory;
import org.rev317.min.api.methods.Menu;
import org.rev317.min.api.methods.Players;
import org.rev317.min.api.wrappers.Item;

import com.cDiamondCutter.strategies.Constants;

public class Making implements Strategy {

	@Override
	public boolean activate() {
		return Inventory.getCount(Constants.UNCUT_DIAMONDS_ID) == 25;
	}

	@Override
	public void execute() {
		//TODO
		Item CHISEL = Inventory.getItem(Constants.CHISEL_ID);
		Item UNCUT_DIAMOND = Inventory.getItem(Constants.UNCUT_DIAMONDS_ID);
		Menu.sendAction(447, Constants.CHISEL_ID - 1, CHISEL.getSlot(), 3214, 3);
		Menu.sendAction(870, Constants.UNCUT_DIAMONDS_ID - 1, UNCUT_DIAMOND.getSlot(), 3214, 1);
		Menu.sendAction(315, 5029888, 272, 2498, 1);
		Time.sleep(24000);
		Menu.sendAction(447, Constants.CHISEL_ID - 1, CHISEL.getSlot(), 3214, 3);
		Menu.sendAction(870, 1601, 14, 3214, 1);
		Menu.sendAction(315, Constants.DIAMONDS_ID - 1, 8, 2472, 1);
		Menu.sendAction(315, Constants.DIAMONDS_ID - 1, 20, 2498, 1);
		Time.sleep(new SleepCondition() {
			@Override
			public boolean isValid() {
				return Players.getMyPlayer().getAnimation() == -1;
			}
		}, 500);
	}

}
can be replaced with

 

package com.cDiamondCutter.data;

import org.parabot.environment.api.utils.Time;
import org.parabot.environment.scripts.framework.SleepCondition;
import org.parabot.environment.scripts.framework.Strategy;
import org.rev317.min.api.methods.Inventory;
import org.rev317.min.api.methods.Menu;
import org.rev317.min.api.methods.Players;
import org.rev317.min.api.wrappers.Item;

import com.cDiamondCutter.strategies.Constants;

public class Making implements Strategy {

	@Override
	public boolean activate() {
		return Inventory.getCount(Constants.UNCUT_DIAMONDS_ID) >= 1;
	}

	@Override
	public void execute() {

         Inventory.combine(constants.CHISEL_ID, constants.UNCUT_DIAMONDS_ID);
		Time.sleep(new SleepCondition() {
			@Override
			public boolean isValid() {
				return Players.getMyPlayer().getAnimation() == -1;
			}
		}, 1000);
	}

}

 

Thank you. and changed.

Share this post


Link to post
Share on other sites
/tmp/jc_6106/cDiamondCutter.java:3: error: class Constants is public, should be declared in a file named Constants.java
public class Constants {
       ^
/tmp/jc_6106/Buying.java:3: error: package org.parabot.environment.api.utils does not exist
import org.parabot.environment.api.utils.Time;
                                        ^
/tmp/jc_6106/Buying.java:4: error: package org.parabot.environment.scripts.framework does not exist
import org.parabot.environment.scripts.framework.SleepCondition;
                                                ^
/tmp/jc_6106/Buying.java:5: error: package org.parabot.environment.scripts.framework does not exist
import org.parabot.environment.scripts.framework.Strategy;
                                                ^
/tmp/jc_6106/Buying.java:14: error: cannot find symbol
public class Buying implements Strategy {
                               ^
  symbol: class Strategy
/tmp/jc_6106/Core.java:5: error: package org.parabot.environment.scripts does not exist
import org.parabot.environment.scripts.Category;
                                      ^
/tmp/jc_6106/Core.java:6: error: package org.parabot.environment.scripts does not exist
import org.parabot.environment.scripts.Script;
                                      ^
/tmp/jc_6106/Core.java:7: error: package org.parabot.environment.scripts does not exist
import org.parabot.environment.scripts.ScriptManifest;
                                      ^
/tmp/jc_6106/Core.java:8: error: package org.parabot.environment.scripts.framework does not exist
import org.parabot.environment.scripts.framework.Strategy;
                                                ^
/tmp/jc_6106/Core.java:19: error: cannot find symbol
public class Core extends Script {
                          ^
  symbol: class Script
/tmp/jc_6106/Core.java:13: error: cannot find symbol
@ScriptManifest(author = "Capslock", 
 ^
  symbol: class ScriptManifest
/tmp/jc_6106/Core.java:20: error: cannot find symbol
	private static ArrayList strategies = new ArrayList();
	                         ^
  symbol:   class Strategy
  location: class Core
/tmp/jc_6106/Making.java:3: error: package org.parabot.environment.api.utils does not exist
import org.parabot.environment.api.utils.Time;
                                        ^
/tmp/jc_6106/Making.java:4: error: package org.parabot.environment.scripts.framework does not exist
import org.parabot.environment.scripts.framework.SleepCondition;
                                                ^
/tmp/jc_6106/Making.java:5: error: package org.parabot.environment.scripts.framework does not exist
import org.parabot.environment.scripts.framework.Strategy;
                                                ^
/tmp/jc_6106/Making.java:11: error: cannot find symbol
public class Making implements Strategy {
                               ^
  symbol: class Strategy
/tmp/jc_6106/Buying.java:16: error: method does not override or implement a method from a supertype
	@Override
	^
/tmp/jc_6106/Buying.java:26: error: cannot find symbol
			Time.sleep(500);
			^
  symbol:   variable Time
  location: class Buying
/tmp/jc_6106/Buying.java:27: error: cannot find symbol
			Time.sleep(new SleepCondition() {
			               ^
  symbol:   class SleepCondition
  location: class Buying
/tmp/jc_6106/Buying.java:27: error: cannot find symbol
			Time.sleep(new SleepCondition() {
			^
  symbol:   variable Time
  location: class Buying
/tmp/jc_6106/Buying.java:34: error: cannot access Filter
			Npc[] craftingShop = Npcs.getNearest(Constants.CRAFTING_SHOP);
			                         ^
  class file for org.parabot.environment.api.utils.Filter not found
/tmp/jc_6106/Buying.java:39: error: cannot find symbol
				Time.sleep(new SleepCondition() {
				               ^
  symbol:   class SleepCondition
  location: class Buying
/tmp/jc_6106/Buying.java:39: error: cannot find symbol
				Time.sleep(new SleepCondition() {
				^
  symbol:   variable Time
  location: class Buying
/tmp/jc_6106/Buying.java:21: error: method does not override or implement a method from a supertype
	@Override
	^
/tmp/jc_6106/Core.java:20: error: cannot find symbol
	private static ArrayList strategies = new ArrayList();
	                                                              ^
  symbol:   class Strategy
  location: class Core
/tmp/jc_6106/Making.java:13: error: method does not override or implement a method from a supertype
	@Override
	^
/tmp/jc_6106/Making.java:22: error: cannot find symbol
			Time.sleep(500);
			^
  symbol:   variable Time
  location: class Making
/tmp/jc_6106/Making.java:29: error: cannot find symbol
			Time.sleep(500);
			^
  symbol:   variable Time
  location: class Making
/tmp/jc_6106/Making.java:32: error: cannot find symbol
		Time.sleep(new SleepCondition() {
		               ^
  symbol:   class SleepCondition
  location: class Making
/tmp/jc_6106/Making.java:32: error: cannot find symbol
		Time.sleep(new SleepCondition() {
		^
  symbol:   variable Time
  location: class Making
/tmp/jc_6106/Making.java:18: error: method does not override or implement a method from a supertype
	@Override
	^
31 errors

Totally fucked.

Share this post


Link to post
Share on other sites
/tmp/jc_6106/cDiamondCutter.java:3: error: class Constants is public, should be declared in a file named Constants.java
public class Constants {
       ^
/tmp/jc_6106/Buying.java:3: error: package org.parabot.environment.api.utils does not exist
import org.parabot.environment.api.utils.Time;
                                        ^
/tmp/jc_6106/Buying.java:4: error: package org.parabot.environment.scripts.framework does not exist
import org.parabot.environment.scripts.framework.SleepCondition;
                                                ^
/tmp/jc_6106/Buying.java:5: error: package org.parabot.environment.scripts.framework does not exist
import org.parabot.environment.scripts.framework.Strategy;
                                                ^
/tmp/jc_6106/Buying.java:14: error: cannot find symbol
public class Buying implements Strategy {
                               ^
  symbol: class Strategy
/tmp/jc_6106/Core.java:5: error: package org.parabot.environment.scripts does not exist
import org.parabot.environment.scripts.Category;
                                      ^
/tmp/jc_6106/Core.java:6: error: package org.parabot.environment.scripts does not exist
import org.parabot.environment.scripts.Script;
                                      ^
/tmp/jc_6106/Core.java:7: error: package org.parabot.environment.scripts does not exist
import org.parabot.environment.scripts.ScriptManifest;
                                      ^
/tmp/jc_6106/Core.java:8: error: package org.parabot.environment.scripts.framework does not exist
import org.parabot.environment.scripts.framework.Strategy;
                                                ^
/tmp/jc_6106/Core.java:19: error: cannot find symbol
public class Core extends Script {
                          ^
  symbol: class Script
/tmp/jc_6106/Core.java:13: error: cannot find symbol
@ScriptManifest(author = "Capslock", 
 ^
  symbol: class ScriptManifest
/tmp/jc_6106/Core.java:20: error: cannot find symbol
	private static ArrayList strategies = new ArrayList();
	                         ^
  symbol:   class Strategy
  location: class Core
/tmp/jc_6106/Making.java:3: error: package org.parabot.environment.api.utils does not exist
import org.parabot.environment.api.utils.Time;
                                        ^
/tmp/jc_6106/Making.java:4: error: package org.parabot.environment.scripts.framework does not exist
import org.parabot.environment.scripts.framework.SleepCondition;
                                                ^
/tmp/jc_6106/Making.java:5: error: package org.parabot.environment.scripts.framework does not exist
import org.parabot.environment.scripts.framework.Strategy;
                                                ^
/tmp/jc_6106/Making.java:11: error: cannot find symbol
public class Making implements Strategy {
                               ^
  symbol: class Strategy
/tmp/jc_6106/Buying.java:16: error: method does not override or implement a method from a supertype
	@Override
	^
/tmp/jc_6106/Buying.java:26: error: cannot find symbol
			Time.sleep(500);
			^
  symbol:   variable Time
  location: class Buying
/tmp/jc_6106/Buying.java:27: error: cannot find symbol
			Time.sleep(new SleepCondition() {
			               ^
  symbol:   class SleepCondition
  location: class Buying
/tmp/jc_6106/Buying.java:27: error: cannot find symbol
			Time.sleep(new SleepCondition() {
			^
  symbol:   variable Time
  location: class Buying
/tmp/jc_6106/Buying.java:34: error: cannot access Filter
			Npc[] craftingShop = Npcs.getNearest(Constants.CRAFTING_SHOP);
			                         ^
  class file for org.parabot.environment.api.utils.Filter not found
/tmp/jc_6106/Buying.java:39: error: cannot find symbol
				Time.sleep(new SleepCondition() {
				               ^
  symbol:   class SleepCondition
  location: class Buying
/tmp/jc_6106/Buying.java:39: error: cannot find symbol
				Time.sleep(new SleepCondition() {
				^
  symbol:   variable Time
  location: class Buying
/tmp/jc_6106/Buying.java:21: error: method does not override or implement a method from a supertype
	@Override
	^
/tmp/jc_6106/Core.java:20: error: cannot find symbol
	private static ArrayList strategies = new ArrayList();
	                                                              ^
  symbol:   class Strategy
  location: class Core
/tmp/jc_6106/Making.java:13: error: method does not override or implement a method from a supertype
	@Override
	^
/tmp/jc_6106/Making.java:22: error: cannot find symbol
			Time.sleep(500);
			^
  symbol:   variable Time
  location: class Making
/tmp/jc_6106/Making.java:29: error: cannot find symbol
			Time.sleep(500);
			^
  symbol:   variable Time
  location: class Making
/tmp/jc_6106/Making.java:32: error: cannot find symbol
		Time.sleep(new SleepCondition() {
		               ^
  symbol:   class SleepCondition
  location: class Making
/tmp/jc_6106/Making.java:32: error: cannot find symbol
		Time.sleep(new SleepCondition() {
		^
  symbol:   variable Time
  location: class Making
/tmp/jc_6106/Making.java:18: error: method does not override or implement a method from a supertype
	@Override
	^
31 errors

Totally fucked.

 

Import parabot.jar.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...