Skip to content

Instantly share code, notes, and snippets.

View Jire's full-sized avatar
🇧🇷
of the jungle

Jire Jire

🇧🇷
of the jungle
View GitHub Profile
ItemDef itemDef = forID(lendTemplateID);
inventoryOptions = new String[5];
groundModel = itemDef.groundModel;
modelOffset1 = itemDef.modelOffset1;
modelRotation2 = itemDef.modelRotation2;
modelOffset2 = itemDef.modelOffset2;
modelZoom = itemDef.modelZoom;
modelRotation1 = itemDef.modelRotation1;
anInt204 = itemDef.anInt204;
value = 0;
DT_TestTraceline.m_clrRender (0x70)
DT_TestTraceline.m_vecOrigin (0x134)
DT_TestTraceline.m_angRotation[0] (0x128)
DT_TestTraceline.m_angRotation[1] (0x12c)
DT_TestTraceline.m_angRotation[2] (0x130)
DT_TestTraceline.moveparent (0x144)
DT_TEWorldDecal.m_vecOrigin (0x10)
DT_TEWorldDecal.m_nIndex (0x1c)
DT_TESpriteSpray.m_vecOrigin (0x10)
DT_TESpriteSpray.m_vecDirection (0x1c)
@Jire
Jire / BunnyHop.kts
Last active October 28, 2016 21:40
import life.cheat.Environment.client
import life.cheat.script.Script
import java.awt.event.KeyEvent
onGround {
pressKey(KeyEvent.VK_SPACE)
sleep(20)
releaseKey(KeyEvent.VK_SPACE)
}
package org.jire.knetty
import io.netty.bootstrap.Bootstrap
import io.netty.buffer.ByteBuf
import io.netty.channel.*
import io.netty.channel.nio.NioEventLoopGroup
import io.netty.channel.socket.DatagramChannel
import io.netty.channel.socket.DatagramPacket
import io.netty.channel.socket.nio.NioDatagramChannel
import io.netty.handler.codec.MessageToMessageDecoder
public final class VisionID {
public static void main(String[] args) {
long a = Byte.toUnsignedLong((byte) 68);
long b = Byte.toUnsignedLong((byte) 199);
long c = Byte.toUnsignedLong((byte) 163);
long d = Byte.toUnsignedLong((byte) 44);
long port = Short.toUnsignedLong((short) 65535);
long ip = (a << 40) | (b << 32) | (c << 24) | (d << 16) | port;
import it.unimi.dsi.fastutil.longs.Long2FloatArrayMap
import org.jire.strukt.Strukt
import kotlin.reflect.KProperty
class FloatMember(private val default: Float) : Member() {
private val current = Long2FloatArrayMap()
operator fun getValue(ref: Strukt, prop: KProperty<*>) = current[key]
inline fun <reified T : Any, DELEGATE : Any> findDelegate(
instance: T, delegatingTo: KClass<DELEGATE>): DELEGATE? {
for (prop in T::class.declaredMemberProperties) {
val javaField = prop.javaField ?: continue
javaField.isAccessible = true // is private, have to open that up
if (delegatingTo.java.isAssignableFrom(javaField.type)) {
@Suppress("UNCHECKED_CAST")
return javaField.get(instance) as DELEGATE
}
class Predicator<out RESULT>(val predicate: () -> RESULT?) {
operator inline fun invoke(crossinline whenTrue: RESULT.() -> Unit) {
val result = predicate() ?: return
result.whenTrue()
}
}
- Redo the Kotlin-based configuration system and dumper (It was tough and now I have to redo it, not so happy so I'm not gonna work on this until I feel like it lol)
- All defense anims happen at wrong time (should be 1 cycle before hit) - DONE
- Ranged/magic casts need to be from the player's movement position rather than where their position actually was - DONE
- Magic shouldn't have defense animation - DONE
- Magic spells shouldn't be cancelled by walking (the walking should work but the spell be cast first) - DONE
- Ranged shouldn't be cancelled by walking (the walking should work but the arrow should fire) - DONE
- Ranged/magic casts need to be from the player's movement position rather than where their position actually was
@Jire
Jire / build.gradle
Last active July 29, 2016 03:17
My Java/Kotlin build.gradle boilerplate for BinTray
/*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the