Fix animation detection

This commit is contained in:
RedSparr0w
2019-12-05 09:20:08 +13:00
parent 0afdf3d60c
commit 27d35a1e28
5 changed files with 4 additions and 1 deletions
+3
View File
@@ -12,6 +12,9 @@
<orderEntry type="inheritedJdk" /> <orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" /> <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: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" />
@@ -40,7 +40,7 @@ public class LogicHandler {
return Players.getMyPlayer().isInCombat(); return Players.getMyPlayer().isInCombat();
case "Within x Tiles of Coords": case "Within x Tiles of Coords":
return new Tile(a.getParam(1), a.getParam(2)).distanceTo() < a.getParam(0); 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 for (int i = 0; i <= a.getParam(1); i+=5) //Allow multiple checks for when the animation is happening
{ {
Time.sleep(5); Time.sleep(5);
Binary file not shown.