commit 6bf5be60ac1d2d5aa70f00db1bc2399f335c0b41 Author: sigonasr2 Date: Sun May 21 06:08:24 2023 -0500 Ironbun Script 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) +