mirror of
https://github.com/2006-Scape/Script-Factory.git
synced 2026-07-02 16:49:10 +00:00
Added ERROR to paint if something went wrong
This commit is contained in:
@@ -15,6 +15,9 @@
|
|||||||
<orderEntry type="library" name="Maven: org.parabot:internal-api:1.53.1" level="project" />
|
<orderEntry type="library" name="Maven: org.parabot:internal-api:1.53.1" level="project" />
|
||||||
<orderEntry type="library" name="Maven: org.parabot:317-api-minified:1.21.5" level="project" />
|
<orderEntry type="library" name="Maven: org.parabot:317-api-minified:1.21.5" level="project" />
|
||||||
<orderEntry type="library" name="Maven: org.parabot:client:2.8.1" level="project" />
|
<orderEntry type="library" name="Maven: org.parabot:client:2.8.1" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.parabot:internal-api:1.53.1" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.parabot:317-api-minified:1.21.5" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.parabot:client:2.8.1" level="project" />
|
||||||
<orderEntry type="library" name="Maven: org.ow2.asm:asm-all:5.0.4" 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" />
|
<orderEntry type="library" name="Maven: com.googlecode.json-simple:json-simple:1.1.1" level="project" />
|
||||||
<orderEntry type="library" name="Maven: org.parabot:internal-api:1.53.1" level="project" />
|
<orderEntry type="library" name="Maven: org.parabot:internal-api:1.53.1" level="project" />
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import static scriptfactory.VarsMethods.log;
|
|||||||
* Welcome to AIO AIO - ScriptFactory. Make your own scripts!
|
* Welcome to AIO AIO - ScriptFactory. Make your own scripts!
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ScriptManifest(author = "Before", name = "Script Factory 1.10", category = Category.OTHER, version = 1.10, description = "Create your own scripts!", servers = "All")
|
@ScriptManifest(author = "Before", name = "Script Factory 1.13", category = Category.OTHER, version = 1.13, description = "Create your own scripts!", servers = "All")
|
||||||
public class Core extends Script implements Paintable {
|
public class Core extends Script implements Paintable {
|
||||||
|
|
||||||
private ArrayList<Action> actions = new ArrayList<>();
|
private ArrayList<Action> actions = new ArrayList<>();
|
||||||
@@ -87,7 +87,7 @@ public class Core extends Script implements Paintable {
|
|||||||
}
|
}
|
||||||
g.drawString("Currently Executing:", 9, 270);
|
g.drawString("Currently Executing:", 9, 270);
|
||||||
g.drawString(VarsMethods.currentAction, 9, 290);
|
g.drawString(VarsMethods.currentAction, 9, 290);
|
||||||
g.drawString("EXP(P/H): " + VarsMethods.formatNumber((int) VarsMethods.gainedXP) + "(" + VarsMethods.formatNumber(SCRIPT_TIMER.getPerHour((int) VarsMethods.gainedXP)) + ")", 9, 310);
|
g.drawString("EXP(P/H): " + VarsMethods.formatNumber((int) VarsMethods.gainedXP) + "(" + VarsMethods.formatNumber(SCRIPT_TIMER.getPerHour(VarsMethods.gainedXP)) + ")", 9, 310);
|
||||||
g.drawString("Runtime: " + SCRIPT_TIMER.toString(), 9, 330);
|
g.drawString("Runtime: " + SCRIPT_TIMER.toString(), 9, 330);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log("Paint Error");
|
log("Paint Error");
|
||||||
|
|||||||
@@ -27,6 +27,12 @@ public class VarsMethods {
|
|||||||
|
|
||||||
public static void log(String str)
|
public static void log(String str)
|
||||||
{
|
{
|
||||||
|
if (str.toLowerCase().contains("error"))
|
||||||
|
{
|
||||||
|
//TODO: Open the logger
|
||||||
|
//Put it in the paint as well
|
||||||
|
currentAction = "ERROR (See Logger)";
|
||||||
|
}
|
||||||
Logger.addMessage(str, false);
|
Logger.addMessage(str, false);
|
||||||
System.out.println(str);
|
System.out.println(str);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<config>
|
<config>
|
||||||
<jars basedir="C:/Users/Dan-j/Documents/GitHub/Script-Factory/target/">
|
<jars basedir="/home/dr_cookie/Projects/ScriptFactory3/target/">
|
||||||
<jar in="1000202.jar" out="/home/ci/jars/1000202.jar"/>
|
<jar in="1000202.jar" out="/home/ci/jars/1000202.jar"/>
|
||||||
</jars>
|
</jars>
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user