Added fletching and glassblowing to idle notifier/animationID class (#74)

This commit is contained in:
Abel Briggs
2017-06-09 19:23:10 -05:00
committed by Adam
parent 3118e6a799
commit de46ae9592
2 changed files with 37 additions and 2 deletions

View File

@@ -43,7 +43,18 @@ public final class AnimationID
public static final int COOKING_FIRE = 897;
public static final int COOKING_RANGE = 896;
public static final int FLETCHING_BOW_CUTTING = 1248;
public static final int FLETCHING_BOW_STRINGING = 6684; // ids are based on bow - incomplete!
public static final int FLETCHING_STRING_NORMAL_SHORTBOW = 6678;
public static final int FLETCHING_STRING_NORMAL_LONGBOW = 6684;
public static final int FLETCHING_STRING_OAK_SHORTBOW = 6679;
public static final int FLETCHING_STRING_OAK_LONGBOW = 6685;
public static final int FLETCHING_STRING_WILLOW_SHORTBOW = 6680;
public static final int FLETCHING_STRING_WILLOW_LONGBOW = 6686;
public static final int FLETCHING_STRING_MAPLE_SHORTBOW = 6681;
public static final int FLETCHING_STRING_MAPLE_LONGBOW = 6687;
public static final int FLETCHING_STRING_YEW_SHORTBOW = 6682;
public static final int FLETCHING_STRING_YEW_LONGBOW = 6688;
public static final int FLETCHING_STRING_MAGIC_SHORTBOW = 6683;
public static final int FLETCHING_STRING_MAGIC_LONGBOW = 6689;
public static final int GEM_CUTTING_OPAL = 890;
public static final int GEM_CUTTING_JADE = 891;
public static final int GEM_CUTTING_REDTOPAZ = 892;
@@ -52,6 +63,7 @@ public final class AnimationID
public static final int GEM_CUTTING_RUBY = 887;
public static final int GEM_CUTTING_DIAMOND = 886;
public static final int CRAFTING_LEATHER = 1249; // unknown if the anim is the same for all leathers
public static final int CRAFTING_GLASSBLOWING = 884;
public static final int SMITHING_SMELTING = 899;
public static final int SMITHING_CANNONBALL = 827; //cball smithing uses this and SMITHING_SMELTING
public static final int SMITHING_ANVIL = 898;

View File

@@ -73,9 +73,9 @@ public class IdleNotifier extends Plugin
return;
}
int animation = client.getLocalPlayer().getAnimation();
switch (animation)
{
/* Woodcutting */
case WOODCUTTING_BRONZE:
case WOODCUTTING_IRON:
case WOODCUTTING_STEEL:
@@ -84,8 +84,10 @@ public class IdleNotifier extends Plugin
case WOODCUTTING_ADAMANT:
case WOODCUTTING_RUNE:
case WOODCUTTING_DRAGON:
/* Cooking(Fire, Range) */
case COOKING_FIRE:
case COOKING_RANGE:
/* Crafting(Gem Cutting, Glassblowing */
case GEM_CUTTING_OPAL:
case GEM_CUTTING_JADE:
case GEM_CUTTING_REDTOPAZ:
@@ -93,12 +95,30 @@ public class IdleNotifier extends Plugin
case GEM_CUTTING_EMERALD:
case GEM_CUTTING_RUBY:
case GEM_CUTTING_DIAMOND:
case CRAFTING_GLASSBLOWING:
/* Fletching(Cutting, Stringing) */
case FLETCHING_BOW_CUTTING:
case FLETCHING_STRING_NORMAL_SHORTBOW:
case FLETCHING_STRING_OAK_SHORTBOW:
case FLETCHING_STRING_WILLOW_SHORTBOW:
case FLETCHING_STRING_MAPLE_SHORTBOW:
case FLETCHING_STRING_YEW_SHORTBOW:
case FLETCHING_STRING_MAGIC_SHORTBOW:
case FLETCHING_STRING_NORMAL_LONGBOW:
case FLETCHING_STRING_OAK_LONGBOW:
case FLETCHING_STRING_WILLOW_LONGBOW:
case FLETCHING_STRING_MAPLE_LONGBOW:
case FLETCHING_STRING_YEW_LONGBOW:
case FLETCHING_STRING_MAGIC_LONGBOW:
/* Smithing(Anvil, Furnace, Cannonballs */
case SMITHING_ANVIL:
case SMITHING_SMELTING:
/* Fishing */
case FISHING_NET:
case FISHING_HARPOON:
case FISHING_CAGE:
case FISHING_POLE_CAST:
/* Mining(Normal) */
case MINING_BRONZE_PICKAXE:
case MINING_IRON_PICKAXE:
case MINING_STEEL_PICKAXE:
@@ -107,6 +127,7 @@ public class IdleNotifier extends Plugin
case MINING_ADAMANT_PICKAXE:
case MINING_RUNE_PICKAXE:
case MINING_DRAGON_PICKAXE:
/* Mining(Motherlode) */
case MINING_MOTHERLODE_BRONZE:
case MINING_MOTHERLODE_IRON:
case MINING_MOTHERLODE_STEEL:
@@ -115,7 +136,9 @@ public class IdleNotifier extends Plugin
case MINING_MOTHERLODE_ADAMANT:
case MINING_MOTHERLODE_RUNE:
case MINING_MOTHERLODE_DRAGON:
/* Herblore */
case HERBLORE_POTIONMAKING:
/* Magic */
case MAGIC_CHARGING_ORBS:
notifyIdle = true;
lastAnimating = Instant.now();