How to send a packet?
-
@auto-reply-bot morez vars plz
-
@ez-chan-osu
you can google it easily
it's like:
var [varname] = Java.type("thing you wanna import -> lang object")
look after the lang object.
i googled 1 of em and instantly found them.
same with PacketBuffer, and the rest that is comming from minecraft
-
@ez-chan-osu ```
var ByteArrayOutputStream = Java.type("java.io.ByteArrayOutputStream") var DataOutputStream = Java.type("java.io.DataOutputStream") var PacketBuffer = Java.type("net.minecraft.network.PacketBuffer") var Unpooled = Java.type("io.netty.buffer.Unpooled") var C17PacketCustomPayload = Java.type("net.minecraft.network.play.client.C17PacketCustomPayload") var IOException = Java.type("java.io.IOException") var C03PacketPlayer = Java.type("net.minecraft.network.play.client.C03PacketPlayer") //and for the module, just paste what auto reply bot said, if(packet instanceof C03PacketPlayer) { if(mc.thePlayer.ticksExisted % 15 == 0) { try { b = new ByteArrayOutputStream(); out = new DataOutputStream(b); out.writeUTF(mc.thePlayer.getGameProfile().getName()); buf = new PacketBuffer(Unpooled.buffer()); buf.writeBytes(b.toByteArray()); mc.thePlayer.sendQueue.addToSendQueueNoEvent(new C17PacketCustomPayload("matrix:geyser", buf)); } catch (IOException) { } } }
-
@mimikyuin wow you are actually smart at learning and searching stuffs, glad to see someone like you, unlike most new coders who just beg without brain
-
@sigma-bot ty
-
@sigma-bot begging? also unlike you, i do other things, since coding is not my job
-
@ender1355 i doubt you can do anything else other than being braindead
-
@sigma-bot cmon did you even make a script?
-
@ender1355 yes, I made an useful one that is used by many people, unlike you retard can't even read scriptapi docs
-
@sigma-bot we are not begging, i just asked a simple question.
-
oh wow that's a lot of fucking imports for a char array
with utf8 support, I guess