Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. public class QuickAttack extends Module implements PlayerHelper, CombatHelper
  2. {
  3. public int delay;
  4.  
  5. public QuickAttack() {
  6. this.setName("QuickAttack");
  7. this.setType(ModuleType.PLAYER);
  8. this.setColor(-15104089);
  9. this.setModInfo("");
  10. this.setVisible(true);
  11. }
  12.  
  13. @EventTarget
  14. public void onSendPacket(final EventSendPacket e) {
  15. if (this.isToggled()) {
  16. this.setModInfo(" §7" + this.delay);
  17. final C02PacketUseEntity packet = (C02PacketUseEntity)e.getPacket();
  18. if (packet.getAction() == C02PacketUseEntity.Action.ATTACK) {
  19. ++this.delay;
  20. QuickAttack.mc.playerController.windowClick(QuickAttack.mc.thePlayer.inventoryContainer.windowId, 9, QuickAttack.mc.thePlayer.inventory.currentItem, 2, QuickAttack.mc.thePlayer);
  21. }
  22. }
  23. }
  24.  
  25. @Override
  26. public void onDisabled() {
  27. this.delay = 0;
  28. super.onDisabled();
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement