Ironbun Script
This commit is contained in:
commit
6bf5be60ac
38
Ironbun.LUA
Normal file
38
Ironbun.LUA
Normal file
@ -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)<currentHealth) then
|
||||||
|
currentHealth=readInteger(healthPointer)
|
||||||
|
end
|
||||||
|
if (readInteger(maxHealthPointer)>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)
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user