mirror of
https://github.com/2006-Scape/Script-Factory.git
synced 2026-07-02 16:49:10 +00:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b61944f858 | |||
| 5483c5ee3f | |||
| a9025e6243 | |||
| 73f970d4a6 | |||
| 996094b9f8 | |||
| 90b440938f | |||
| 88ce4fca9b | |||
| df53aee7c3 |
@@ -0,0 +1,58 @@
|
|||||||
|
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
|
||||||
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
|
||||||
|
|
||||||
|
# This workflow uses actions that are not certified by GitHub.
|
||||||
|
# They are provided by a third-party and are governed by
|
||||||
|
# separate terms of service, privacy policy, and support
|
||||||
|
# documentation.g
|
||||||
|
|
||||||
|
name: Java CI with Maven
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- development
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- development
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up JDK 11
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: '11'
|
||||||
|
distribution: 'zulu'
|
||||||
|
cache: maven
|
||||||
|
- name: Build with Maven
|
||||||
|
run: |
|
||||||
|
mvn -B package --file pom.xml
|
||||||
|
mkdir -p ~/artifacts
|
||||||
|
cp target/script-factory-1.9.jar ~/artifacts/
|
||||||
|
- name: Publish build to GH Actions
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
path: ~/artifacts/*
|
||||||
|
name: Build
|
||||||
|
- name: Create Version
|
||||||
|
id: get_version
|
||||||
|
run: |
|
||||||
|
echo "VERSION=v$(date +%s)" >> $GITHUB_OUTPUT #&& echo "::set-output name=VERSION::${verson}"
|
||||||
|
- name: Upload Pre-Release
|
||||||
|
id: create_release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
tag_name: ${{ steps.get_version.outputs.VERSION }}
|
||||||
|
name: ${{ github.sha }}
|
||||||
|
prerelease: true
|
||||||
|
files: |
|
||||||
|
target/script-factory-1.9.jar
|
||||||
@@ -12,9 +12,9 @@
|
|||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
<id>parabot-maven</id>
|
<id>2006scape-maven</id>
|
||||||
<name>Parabot its Maven Repository</name>
|
<name>2006Scape's Git based repo</name>
|
||||||
<url>https://maven.parabot.org/</url>
|
<url>https://raw.github.com/2006-Scape/Maven/master</url>
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.parabot</groupId>
|
<groupId>org.parabot</groupId>
|
||||||
<artifactId>client</artifactId>
|
<artifactId>client</artifactId>
|
||||||
<version>2.8.1</version>
|
<version>3.0.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.parabot</groupId>
|
<groupId>org.parabot</groupId>
|
||||||
|
|||||||
@@ -2,9 +2,12 @@ package scriptfactory.AdvancedGui.ScriptFactorySDN;
|
|||||||
|
|
||||||
import org.parabot.core.desc.ScriptDescription;
|
import org.parabot.core.desc.ScriptDescription;
|
||||||
import org.parabot.environment.scripts.Category;
|
import org.parabot.environment.scripts.Category;
|
||||||
import scriptfactory.AdvancedGui.ScriptFactorySDN.Scripts.Combat.CowkillerBanking;
|
import scriptfactory.AdvancedGui.ScriptFactorySDN.Scripts.Combat.CowkillerBones;
|
||||||
import scriptfactory.AdvancedGui.ScriptFactorySDN.Scripts.Deps.Openlummybank;
|
import scriptfactory.AdvancedGui.ScriptFactorySDN.Scripts.Combat.CowkillerPower;
|
||||||
|
import scriptfactory.AdvancedGui.ScriptFactorySDN.Scripts.Combat.FeatherFarmerBones;
|
||||||
import scriptfactory.AdvancedGui.ScriptFactorySDN.Scripts.Deps.Walktocows;
|
import scriptfactory.AdvancedGui.ScriptFactorySDN.Scripts.Deps.Walktocows;
|
||||||
|
import scriptfactory.AdvancedGui.ScriptFactorySDN.Scripts.Thieving.ArdyCakesBanking;
|
||||||
|
import scriptfactory.AdvancedGui.ScriptFactorySDN.Scripts.Thieving.ManWomanPickpocket;
|
||||||
|
|
||||||
public class ScriptFactoryScript extends ScriptDescription {
|
public class ScriptFactoryScript extends ScriptDescription {
|
||||||
|
|
||||||
@@ -26,11 +29,15 @@ public class ScriptFactoryScript extends ScriptDescription {
|
|||||||
public static ScriptFactoryScript[] getDescriptions() {
|
public static ScriptFactoryScript[] getDescriptions() {
|
||||||
return new ScriptFactoryScript[]{
|
return new ScriptFactoryScript[]{
|
||||||
//Scripts
|
//Scripts
|
||||||
new CowkillerBanking(),
|
new ArdyCakesBanking(), //TODO Untested?
|
||||||
//new ArdyCakes(),
|
new CowkillerBones(),
|
||||||
|
new CowkillerPower(),
|
||||||
|
new FeatherFarmerBones(),
|
||||||
|
new ManWomanPickpocket(),
|
||||||
|
|
||||||
//Deps
|
//Deps
|
||||||
|
//new Openlummybank(),
|
||||||
new Walktocows(),
|
new Walktocows(),
|
||||||
new Openlummybank(),
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
-42
@@ -1,42 +0,0 @@
|
|||||||
package scriptfactory.AdvancedGui.ScriptFactorySDN.Scripts.Combat;
|
|
||||||
|
|
||||||
import scriptfactory.AdvancedGui.ScriptFactorySDN.ScriptFactoryScript;
|
|
||||||
import org.parabot.environment.scripts.Category;
|
|
||||||
|
|
||||||
public class CowkillerBanking extends ScriptFactoryScript {
|
|
||||||
public CowkillerBanking() {
|
|
||||||
super(
|
|
||||||
"Cow killer (with banking)",
|
|
||||||
"Before",
|
|
||||||
Category.COMBAT,
|
|
||||||
1.1,
|
|
||||||
"Kills Cows In Lumbridge And Banks In The Castle \n Set Tick Speed To 1000 For Best Results \n Can Be Started Anywhere",
|
|
||||||
"If Inventory-slots-used(28)\n" +
|
|
||||||
"Run-subscript(Openlummybank)\n" +
|
|
||||||
"Bank-all-except-IDs()\n" +
|
|
||||||
"Run-subscript(Walktocows)\n" +
|
|
||||||
"Endif\n" +
|
|
||||||
"IfNot In-Combat()\n" +
|
|
||||||
"If Entity-is-around(81,397,1767,1768)\n" +
|
|
||||||
"Take-Ground-item(2132)\n" +
|
|
||||||
"Take-Ground-item(526)\n" +
|
|
||||||
"Take-Ground-item(1739)\n" +
|
|
||||||
"If Inventory-slots-used(28)\n" +
|
|
||||||
"Run-subscript(Openlummybank)\n" +
|
|
||||||
"Bank-all-except-IDs()\n" +
|
|
||||||
"Run-subscript(Walktocows)\n" +
|
|
||||||
"Endif\n" +
|
|
||||||
"Interact-with-entity-by-ID(81,397,1767,1768,1)\n" +
|
|
||||||
"Endif\n" +
|
|
||||||
"IfNot Entity-is-around(81,397,1767,1768)\n" +
|
|
||||||
"If Inventory-slots-used(28)\n" +
|
|
||||||
"Run-subscript(Openlummybank)\n" +
|
|
||||||
"Bank-all-except-IDs()\n" +
|
|
||||||
"Endif\n" +
|
|
||||||
"Run-subscript(Walktocows)\n" +
|
|
||||||
"Endif\n" +
|
|
||||||
"Endif\n",
|
|
||||||
new String[]{"Walktocows", "Openlummybank"}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+28
@@ -0,0 +1,28 @@
|
|||||||
|
package scriptfactory.AdvancedGui.ScriptFactorySDN.Scripts.Combat;
|
||||||
|
|
||||||
|
import org.parabot.environment.scripts.Category;
|
||||||
|
import scriptfactory.AdvancedGui.ScriptFactorySDN.ScriptFactoryScript;
|
||||||
|
|
||||||
|
public class CowkillerBones extends ScriptFactoryScript {
|
||||||
|
public CowkillerBones() {
|
||||||
|
super(
|
||||||
|
"Cow killer (with bone burying)",
|
||||||
|
"Dark98",
|
||||||
|
Category.COMBAT,
|
||||||
|
1.0,
|
||||||
|
"Kills Cows And Buries The Bones \n Start Near Cows.",
|
||||||
|
"IfNot In-Combat()\n" +
|
||||||
|
"If Entity-is-around(81,397,1767,1768)\n" +
|
||||||
|
"Take-Ground-item(526)\n" +
|
||||||
|
"Sleep(600)\n" +
|
||||||
|
"If Item-is-in-Inventory(527,1)\n" +
|
||||||
|
"Inventory-item-interact(527,2)\n" +
|
||||||
|
"Endif\n" +
|
||||||
|
"Interact-with-entity-by-ID(81,397,1767,1768,1)\n" +
|
||||||
|
"Sleep(600)\n" +
|
||||||
|
"Endif\n" +
|
||||||
|
"Endif",
|
||||||
|
new String[]{}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
+24
@@ -0,0 +1,24 @@
|
|||||||
|
package scriptfactory.AdvancedGui.ScriptFactorySDN.Scripts.Combat;
|
||||||
|
|
||||||
|
import org.parabot.environment.scripts.Category;
|
||||||
|
import scriptfactory.AdvancedGui.ScriptFactorySDN.ScriptFactoryScript;
|
||||||
|
|
||||||
|
public class CowkillerPower extends ScriptFactoryScript {
|
||||||
|
public CowkillerPower() {
|
||||||
|
super(
|
||||||
|
"Power Cow killer",
|
||||||
|
"Dark98",
|
||||||
|
Category.COMBAT,
|
||||||
|
1.0,
|
||||||
|
"Kills Cows \n Start Near Cows.",
|
||||||
|
|
||||||
|
"IfNot In-Combat()\n" +
|
||||||
|
"If Entity-is-around(81,397,1767,1768)\n" +
|
||||||
|
"Interact-with-entity-by-ID(81,397,1767,1768,1)\n" +
|
||||||
|
"Sleep(2400)\n" +
|
||||||
|
"Endif\n" +
|
||||||
|
"Endif",
|
||||||
|
new String[]{}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
+30
@@ -0,0 +1,30 @@
|
|||||||
|
package scriptfactory.AdvancedGui.ScriptFactorySDN.Scripts.Combat;
|
||||||
|
|
||||||
|
import org.parabot.environment.scripts.Category;
|
||||||
|
import scriptfactory.AdvancedGui.ScriptFactorySDN.ScriptFactoryScript;
|
||||||
|
|
||||||
|
public class FeatherFarmerBones extends ScriptFactoryScript {
|
||||||
|
public FeatherFarmerBones() {
|
||||||
|
super(
|
||||||
|
"Feather Farmer (with bone burying)",
|
||||||
|
"Dark98",
|
||||||
|
Category.COMBAT,
|
||||||
|
1.0,
|
||||||
|
"Kills Chickens, Farms The Feathers & Buries The Bones \n Start Near Chickens",
|
||||||
|
"IfNot In-Combat()\n" +
|
||||||
|
"If Entity-is-around(41)\n" +
|
||||||
|
"If Item-is-on-Ground(526)\n" +
|
||||||
|
"Take-Ground-item(526)\n" +
|
||||||
|
"Take-Ground-item(314)\n" +
|
||||||
|
"Endif\n" +
|
||||||
|
"If Item-is-in-Inventory(527,1)\n" +
|
||||||
|
"Inventory-item-interact(527,2)\n" +
|
||||||
|
"Endif\n" +
|
||||||
|
"Interact-with-entity-by-ID(41,1)\n" +
|
||||||
|
"Sleep(600)\n" +
|
||||||
|
"Endif\n" +
|
||||||
|
"Endif",
|
||||||
|
new String[]{}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
+2
-2
@@ -7,7 +7,7 @@ public class Openlummybank extends ScriptFactoryScript
|
|||||||
public Openlummybank() {
|
public Openlummybank() {
|
||||||
super(
|
super(
|
||||||
"Openlummybank",
|
"Openlummybank",
|
||||||
"Before",
|
"Red Bracket",
|
||||||
"Dependency",
|
"Dependency",
|
||||||
1.1,
|
1.1,
|
||||||
"Opens the bank in lumbridge castle from anywhere",
|
"Opens the bank in lumbridge castle from anywhere",
|
||||||
@@ -16,7 +16,7 @@ public class Openlummybank extends ScriptFactoryScript
|
|||||||
"Interact-with-entity-by-location(3217,3218,1)\n" +
|
"Interact-with-entity-by-location(3217,3218,1)\n" +
|
||||||
"Interact-with-entity-by-location(3215,3211,1)\n" +
|
"Interact-with-entity-by-location(3215,3211,1)\n" +
|
||||||
"Interact-with-entity-by-location(3204,3207,1)\n" +
|
"Interact-with-entity-by-location(3204,3207,1)\n" +
|
||||||
"Sleep(12000)\n" +
|
"Sleep(15000)\n" +
|
||||||
"Interact-with-entity-by-location(3204,3207,1)\n" +
|
"Interact-with-entity-by-location(3204,3207,1)\n" +
|
||||||
"Interact-with-entity-by-location(3204,3207,2)\n" +
|
"Interact-with-entity-by-location(3204,3207,2)\n" +
|
||||||
"Interact-with-entity-by-ID(494,3)\n" +
|
"Interact-with-entity-by-ID(494,3)\n" +
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ public class Walktocows extends ScriptFactoryScript
|
|||||||
public Walktocows() {
|
public Walktocows() {
|
||||||
super(
|
super(
|
||||||
"Walktocows",
|
"Walktocows",
|
||||||
"Before",
|
"Red Bracket",
|
||||||
"Dependency",
|
"Dependency",
|
||||||
1.0,
|
1.0,
|
||||||
"Walks to the cows in lumbridge from anywhere",
|
"Walks to the cows in lumbridge from anywhere",
|
||||||
|
|||||||
+20
@@ -0,0 +1,20 @@
|
|||||||
|
package scriptfactory.AdvancedGui.ScriptFactorySDN.Scripts.Thieving;
|
||||||
|
|
||||||
|
import org.parabot.environment.scripts.Category;
|
||||||
|
import scriptfactory.AdvancedGui.ScriptFactorySDN.ScriptFactoryScript;
|
||||||
|
|
||||||
|
public class ManWomanPickpocket extends ScriptFactoryScript {
|
||||||
|
public ManWomanPickpocket() {
|
||||||
|
super(
|
||||||
|
"Pickpocket (Man/Woman)",
|
||||||
|
"Dark98",
|
||||||
|
Category.THIEVING,
|
||||||
|
1.0,
|
||||||
|
"Pickpockets Men/Women \n Start Near Man/Woman",
|
||||||
|
"If Entity-is-around(1,2,3,4,5,6)\n" +
|
||||||
|
"Interact-with-entity-by-ID(1,2,3,4,5,6,3)\n" +
|
||||||
|
"Endif",
|
||||||
|
new String[]{}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user