mirror of
https://github.com/2006-Scape/Script-Factory.git
synced 2026-07-02 16:49:10 +00:00
Fix animation detection
This commit is contained in:
@@ -12,6 +12,9 @@
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<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: 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" />
|
||||
|
||||
@@ -40,7 +40,7 @@ public class LogicHandler {
|
||||
return Players.getMyPlayer().isInCombat();
|
||||
case "Within x Tiles of Coords":
|
||||
return new Tile(a.getParam(1), a.getParam(2)).distanceTo() < a.getParam(0);
|
||||
case "Player Animation ID":
|
||||
case "Detect Animation ID":
|
||||
for (int i = 0; i <= a.getParam(1); i+=5) //Allow multiple checks for when the animation is happening
|
||||
{
|
||||
Time.sleep(5);
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user