mirror of
https://github.com/2006-Scape/Script-Factory.git
synced 2026-07-02 16:49:10 +00:00
Added within Tiles to If
This commit is contained in:
+3
-10
@@ -1,6 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="true">
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7">
|
||||
<output url="file://$MODULE_DIR$/target/classes" />
|
||||
<output-test url="file://$MODULE_DIR$/target/test-classes" />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
|
||||
@@ -9,15 +11,6 @@
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="module-library">
|
||||
<library>
|
||||
<CLASSES>
|
||||
<root url="jar://$MODULE_DIR$/../Parabot-317-API-Minified.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</orderEntry>
|
||||
<orderEntry type="library" name="Maven: org.parabot:client:2.7" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.ow2.asm:asm-all:5.0.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.googlecode.json-simple:json-simple:1.1.1" level="project" />
|
||||
|
||||
@@ -2,6 +2,7 @@ package scriptfactory.Actions.Logic;
|
||||
|
||||
import org.parabot.environment.api.utils.Filter;
|
||||
import org.rev317.min.api.wrappers.GroundItem;
|
||||
import org.rev317.min.api.wrappers.Tile;
|
||||
import scriptfactory.Actions.Action;
|
||||
import org.rev317.min.api.methods.*;
|
||||
|
||||
@@ -35,6 +36,8 @@ public class LogicHandler {
|
||||
return Players.getMyPlayer().getHealth() < a.getParam(0);
|
||||
case "In Combat":
|
||||
return Players.getMyPlayer().isInCombat();
|
||||
case "Within x Tiles of Coords":
|
||||
return new Tile(a.getParam(1), a.getParam(2)).distanceTo() < a.getParam(0);
|
||||
default:
|
||||
log("Error: Unimplemented conditional: " + a.getAction());
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
package scriptfactory.AdvancedGui.ScriptFactorySDN.Scripts;
|
||||
|
||||
import org.parabot.environment.scripts.Category;
|
||||
import scriptfactory.AdvancedGui.ScriptFactorySDN.ScriptFactoryScript;
|
||||
|
||||
public class ArdyCakes extends ScriptFactoryScript {
|
||||
public ArdyCakes() {
|
||||
super(
|
||||
"ArdyCakes (with banking)",
|
||||
"Maui",
|
||||
Category.THIEVING,
|
||||
1.0,
|
||||
"Steals cakes in Ardy",
|
||||
"If Inventory-slots-used(28)\n" +
|
||||
"IfNot Entity-is-around(494)\n" +
|
||||
"Walk-to(2655,3286,35000)\n" +
|
||||
"Endif\n" +
|
||||
"Interact-with-entity-by-ID(2213,2)\n" +
|
||||
"Bank-all-except-IDs()\n" +
|
||||
"Walk-to(2669,3310,35000)\n" +
|
||||
"Endif\n" +
|
||||
"IfNot Inventory-slots-used(28)\n" +
|
||||
"Interact-with-entity-by-location(2667,3310)\n",
|
||||
new String[]{}
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -33,7 +33,6 @@ public class Cowkiller extends ScriptFactoryScript {
|
||||
|
||||
public static class Walktocows extends ScriptFactoryScript
|
||||
{
|
||||
|
||||
public Walktocows() {
|
||||
super(
|
||||
"Walktocows",
|
||||
@@ -55,9 +54,9 @@ public class Cowkiller extends ScriptFactoryScript {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public static class Openlummybank extends ScriptFactoryScript
|
||||
{
|
||||
|
||||
public Openlummybank() {
|
||||
super(
|
||||
"Openlummybank",
|
||||
|
||||
@@ -20,7 +20,7 @@ import static scriptfactory.VarsMethods.log;
|
||||
* Welcome to AIO AIO - ScriptFactory. Make your own scripts!
|
||||
*/
|
||||
|
||||
@ScriptManifest(author = "Before", name = "Script Factory 1.6", category = Category.OTHER, version = 1.6, description = "Create your own scripts!", servers = "All")
|
||||
@ScriptManifest(author = "Before", name = "Script Factory 1.7", category = Category.OTHER, version = 1.7, description = "Create your own scripts!", servers = "All")
|
||||
public class Core extends Script implements Paintable {
|
||||
|
||||
private ArrayList<Action> actions = new ArrayList<>();
|
||||
|
||||
@@ -11,7 +11,7 @@ import java.util.ArrayList;
|
||||
*/
|
||||
public class ConditionGuiInfo extends NewStatementGUI {
|
||||
public ConditionGuiInfo(ArrayList<Action> actionList, Consumer<Integer> updateTextfield) {
|
||||
String[] actionTypes = new String[]{"Item is in Inventory", "Inventory slots used", "Item is on Ground", "Entity is around", "Hitpoints is below", "In Combat"};
|
||||
String[] actionTypes = new String[]{"Item is in Inventory", "Inventory slots used", "Item is on Ground", "Entity is around", "Hitpoints is below", "In Combat", "Within x Tiles of Coords"};
|
||||
Descriptions[] setDescs = {
|
||||
new Descriptions("Item to detect (eg. 4296 = bones)", "Number of them to detect (blank = 1)"),
|
||||
new Descriptions("Inventory slots greater than or equal to (eg. \"28\" detects a full inventory)"),
|
||||
@@ -19,6 +19,7 @@ public class ConditionGuiInfo extends NewStatementGUI {
|
||||
new Descriptions("Entity to detect (eg. \"81,397,1767,1768\" detects cows)"),
|
||||
new Descriptions("Below health # (eg. 10)"),
|
||||
new Descriptions(),
|
||||
new Descriptions("Tiles to be within (i.e. 6)", "x Coordinate", "y Coordinate"),
|
||||
};
|
||||
|
||||
initGui("Add new condition", actionList, updateTextfield, actionTypes, setDescs);
|
||||
|
||||
@@ -56,7 +56,7 @@ public class ActionExecutor {
|
||||
executeLine(line);
|
||||
} catch (NumberFormatException notFilledIn) {
|
||||
log("Error on line " + line);
|
||||
log("Make sure you fill in all numeric values properly! Numbers only!");
|
||||
log("Make sure you fill in all numeric values properly! Numbers only! (No spaces!!)");
|
||||
}
|
||||
|
||||
Time.sleep(VarsMethods.tickSpeed);
|
||||
|
||||
@@ -21,7 +21,7 @@ public class VarsMethods {
|
||||
public static String currentSubscript = "";
|
||||
|
||||
public final static String DEFAULT_DIR = System.getProperty("user.home") + System.getProperty("file.separator") + "Parabot" + System.getProperty("file.separator") + "Script Factory";
|
||||
public final static String CACHED_LOC = DEFAULT_DIR + System.getProperty("file.separator") + "ScriptFactory cache.txt";
|
||||
public final static String CACHED_LOC = DEFAULT_DIR + System.getProperty("file.separator") + "Your Previous Script.txt";
|
||||
public final static String FSEP = System.getProperty("file.separator");
|
||||
public final static int MAX_PARAMS = 3;
|
||||
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<project name="allatori">
|
||||
<target name="allatori">
|
||||
<taskdef name="allatori" classname="com.allatori.ant.ObfuscatorTask" classpath="${user.home}/allatori/allatori.jar"/>
|
||||
<allatori config="src/main/resources/config.xml"/>
|
||||
<echo message="Obfuscating script"/>
|
||||
</target>
|
||||
</project>
|
||||
@@ -1,37 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<config>
|
||||
<jars basedir="/home/dr_bracket/Projects/PBScripts/ScriptFactory/target/">
|
||||
<jar in="1000191.jar" out="/home/ci/jars/1000191.jar"/>
|
||||
</jars>
|
||||
|
||||
<classpath basedir="/home/ci/allatori/libs">
|
||||
<jar name="./*.jar"/>
|
||||
</classpath>
|
||||
|
||||
<!-- String encryption -->
|
||||
<property name="string-encryption" value="enable"/>
|
||||
<property name="string-encryption-type" value="fast"/>
|
||||
<property name="string-encryption-version" value="v4"/>
|
||||
|
||||
<!-- Control flow obfuscation -->
|
||||
<property name="control-flow-obfuscation" value="enable"/>
|
||||
<property name="extensive-flow-obfuscation" value="normal"/>
|
||||
|
||||
<!-- Renaming -->
|
||||
<property name="default-package" value=""/>
|
||||
<property name="force-default-package" value="disable"/>
|
||||
|
||||
<property name="classes-naming" value="unique"/>
|
||||
<property name="methods-naming" value="iii"/>
|
||||
<property name="fields-naming" value="iii"/>
|
||||
<property name="local-variables-naming" value="abc"/>
|
||||
|
||||
<!-- Other -->
|
||||
<property name="line-numbers" value="keep"/>
|
||||
<property name="generics" value="keep"/>
|
||||
<property name="member-reorder" value="enable"/>
|
||||
<property name="finalize" value="disable"/>
|
||||
<property name="synthetize-methods" value="private"/>
|
||||
<property name="synthetize-fields" value="private"/>
|
||||
<property name="remove-toString" value="disable"/>
|
||||
</config>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user