[Help] disabler verus
-
learn js
-
@thehacker_99 said in [Help] disabler verus:
this verus combat disabler
public class VerusCombatDisabler extends Module { public VerusCombatDisabler() { super("VerusCombatDisabler", "Disables Verus Combat Checks!", Catagory.MISC); } var count = 0; public void onWorldChange() { count = 0; } public void onPacket(EventPacket event) { if(!this.getState()) return; Packet packet = event.getPacket(); if (packet instanceof C0FPacketConfirmTransaction) { if(mc.thePlayer.isDead) { confirmtranscounter = 0; } if(confirmtranscounter != 0) event.setCanceled(true); confirmtranscounter++; } else if(packet instanceof C0BPacketEntityAction) { event.setCanceled(true); } } }
"confirmtranscounter" isn't defined, "confirmtranscounter" gets stuck at 0 if the player dies. Variable "count" is unused
-
canceled
worst codes I have ever seen -
-
@thehacker_99 said in [Help] disabler verus:
this verus combat disabler
public class VerusCombatDisabler extends Module { public VerusCombatDisabler() { super("VerusCombatDisabler", "Disables Verus Combat Checks!", Catagory.MISC); } var count = 0; public void onWorldChange() { count = 0; } public void onPacket(EventPacket event) { if(!this.getState()) return; Packet packet = event.getPacket(); if (packet instanceof C0FPacketConfirmTransaction) { if(mc.thePlayer.isDead) { confirmtranscounter = 0; } if(confirmtranscounter != 0) event.setCanceled(true); confirmtranscounter++; } else if(packet instanceof C0BPacketEntityAction) { event.setCanceled(true); } } }
I just fucking realized this isn't java or js
java codes:
js codes:
-
kotlin sex
-
@chocopiexd no reply for this xD
-
private object VerusCombat : Choice("VerusCombat") { override val parent: ChoiceConfigurable get() = modes private var transactionPackets = 0 val packetHandler = handler<PacketEvent> { event -> when (val packet = event.packet) { is ConfirmScreenActionC2SPacket -> { if (player.isDead) { transactionPackets = 0 } if (transactionPackets != 0) { event.cancelEvent() } else { transactionPackets++ } } is PlayerActionC2SPacket -> event.cancelEvent() } } }
-
no it's a script issue