You should use code tags when submitting code. Also, you should use indentation in code because when there isn't any, the code is more difficult to follow. This script will provide what you need.
Code:
[ENABLE]
{$LUA}
godTimer = createTimer(getMainForm())
godTimer.Interval = 50 -- Set to whatever you deem fit, currently set to 50 milliseconds.
godTimer.OnTimer = function(god)
if godTimer ~= nil then
local base = getAddressSafe("[[[[[Maneater-WinGDK-Shipping.exe+04865DC8]+28]+870]+468]+3A0")
local maxHP = readFloat("[" .. base .. "]+D40")
local curHP = readFloat("[" .. base .. "]+68")
if curHP < maxHP then
writeFloat("[" .. base .. "]+68", maxHP)
end
else return end
end
This script writes max health in current health only,fatal damage still count as death
I'm aware. I was adapting the OP's script to fit the logic they wanted. Writing the max health to the current health is a form of invinicibility of which there are many; it is equally acceptable to use the term in this case.
However, you are not wrong. Any damage more than the maximum health will result in death of the player's character.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum