mirror of
https://github.com/2006-Scape/Script-Factory.git
synced 2026-07-02 16:49:10 +00:00
Fix inventory item detect syntax
This commit is contained in:
@@ -18,7 +18,7 @@ public class LogicHandler {
|
|||||||
switch (a.getMethod().replaceAll("-", " "))
|
switch (a.getMethod().replaceAll("-", " "))
|
||||||
{
|
{
|
||||||
case "Item is in Inventory":
|
case "Item is in Inventory":
|
||||||
return Inventory.getCount(a.getParam(0)) >= (a.getParamAsString(1).equals("") ? 0 : a.getParam(1));
|
return Inventory.getCount(a.getParam(0)) >= (a.getParamCount() == 1 ? 1 : a.getParam(1));
|
||||||
case "Inventory slots used":
|
case "Inventory slots used":
|
||||||
return Inventory.getCount() >= a.getParam(0);
|
return Inventory.getCount() >= a.getParam(0);
|
||||||
case "Item is on Ground":
|
case "Item is on Ground":
|
||||||
|
|||||||
@@ -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.13", category = Category.OTHER, version = 1.13, description = "Create your own scripts!", servers = "All")
|
@ScriptManifest(author = "Before", name = "Script Factory 1.14", category = Category.OTHER, version = 1.14, 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<>();
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user