I recently did a script for Salt and Sanctuary for infinite health and one hit kill using code injection and comparison. When I close the game and restart, the script doesn't work. I've done similar scripts using the Code Injection template and I've not had any issues with them. Any help will be greatly appreciated. Thanks
[ENABLE]
{$lua}
if syntaxcheck then return end
if process and readInteger(process) ~= 0 then
mono_initialize()
LaunchMonoDataCollector()
else
local msg = 'No process detected.'
print(msg)
error(msg)
end
{$asm}
[DISABLE]
[ENABLE]
{$lua}
if syntaxcheck then return end
if process and readInteger(process) ~= 0 then
mono_initialize()
LaunchMonoDataCollector()
else
local msg = 'No process detected.'
print(msg)
error(msg)
end
{$asm}
[DISABLE]