
Untitled
By: a guest on
Jul 20th, 2012 | syntax:
None | size: 0.74 KB | hits: 14 | expires: Never
public static int SetTabMagic() {
try {
Class<?> player = Hooks.getClass(Hooks.getOpenTab[0]);
Field f = player.getDeclaredField(Hooks.getOpenTab[1]);
f.setAccessible(true);
f.setInt(null, 6);
if (f.get(Hooks.getClientInstance()) != null) {
return f.getInt(Hooks.getClientInstance());
}
} catch (SecurityException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NoSuchFieldException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalArgumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalAccessException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return -1;
}