From 6bf5be60ac1d2d5aa70f00db1bc2399f335c0b41 Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Sun, 21 May 2023 06:08:24 -0500 Subject: [PATCH] Ironbun Script --- Ironbun.LUA | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Ironbun.LUA diff --git a/Ironbun.LUA b/Ironbun.LUA new file mode 100644 index 0000000..6224fab --- /dev/null +++ b/Ironbun.LUA @@ -0,0 +1,38 @@ +erinaCostume = readInteger("rabiribi.exe+167CFB4") +ribbonCostume = readInteger("rabiribi.exe+167CFB8") + + + +print("Started Bun") + +writeInteger("rabiribi.exe+167CFB4",5*65536) +writeInteger("rabiribi.exe+167CFB8",3) + +maxHealthPointer=readPointer("rabiribi.exe+01682364")+0x4F0 +healthPointer=readPointer("rabiribi.exe+01682364")+0x4E0 +currentHealth=50 +currentMaxHealth=50 +titleScreenPointer=readPointer("rabiribi.exe+00E8E67C")+0x5C + +function update(timer) + if (readInteger(titleScreenPointer)==0) then + currentHealth=50 + currentMaxHealth=50 + return + else + if (readInteger(healthPointer)currentMaxHealth) then + currentHealth=currentHealth+readInteger(maxHealthPointer)-currentMaxHealth + currentMaxHealth=readInteger(maxHealthPointer) + end + writeInteger(healthPointer,currentHealth) + end +end + +healthSetTimer=createTimer(getMainForm()) +healthSetTimer.setInterval(50) +healthSetTimer.setOnTimer(update) +healthSetTimer.setEnabled(true) +