 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Animus How do I cheat?
Reputation: 0
Joined: 01 Apr 2013 Posts: 4
|
Posted: Mon Apr 01, 2013 3:40 pm Post subject: Change HEX Lua... |
|
|
For a game someone created a script that loads Lua through the chat (The game is supported by Lua)
The script that does that in itself is in HEX, converting it out of hex is easy with an online converter.
The problem: I want to edit this script, make it my own. I can do this, and convert it back into hex, and place it in the script.... However, it breaks. It seems changing the script slightly breaks it. I assume it's something to do with the length. Perhaps you can help?
Roblox is the game and it's running the umstealth plugin
Here's the script (Runs in the Lua engine, of course):
NoRun = {}
function mycheck(sender)
local id = getProcessIDFromProcessName("RobloxPlayer.exe");
for i,v in pairs(NoRun) do
if v==id or not id then
return
end
end
table.insert(NoRun, id);
openProcess(id);
autoAssemble([[
stealthedit(code1,CODEREMOVED,4)
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(loop1)
label(endloop1)
label(continue)
alloc(script,4096)
label(exit)
script:
db 77 61 69 74 28 39 29 0D 0A 67 61 6D 65 2E 50 6C 61 79 65 72 73 2E 4C 6F 63 61 6C 50 6C 61 79 65 72 2E 43 68 61 74 74 65 64 3A 63 6F 6E 6E 65 63 74 28 66 75 6E 63 74 69 6F 6E 28 73 74 29 0D 0A 53 70 61 77 6E 28 66 75 6E 63 74 69 6F 6E 28 29 0D 0A 6C 6F 61 64 73 74 72 69 6E 67 28 73 74 29 28 29 20 0D 0A 65 6E 64 29 0D 0A 65 6E 64 29 2D 2D 5B 5B 30 2F 32 39 2F 31 30 0D 0A 2D 2D 20 50 6C 65 61 73 65 20 6E 6F 74 65 20 74 68 61 74 61 20 74 68 65 73 65 20 61 72 65 20 6C 6F 61 64 65 64 20 69 6E 20 61 20 73 70 65 63 69 66 69 63 20 6F 72 64 65 72 20 74 6F 20 64 69 6D 69 6E 69 73 68 20 65 72 72 6F 72 73 2F 70 65 72 63 65 69 76 65 64 20 6C 6F 61 64 20 74 69 6D 65 20 62 79 20 75 73 65 5D 5D 20
newmem:
originalcode:
cmp byte ptr[eax+3],43
jne continue
cmp byte ptr[eax+4],72
jne continue
pushad
mov ecx,0
loop1:
mov bl,byte ptr[script+ecx]
mov byte ptr [eax+ecx],bl
add ecx,1
cmp cl,E6
jnb endloop1
jmp loop1
endloop1:
popad
continue:
push edx
push ecx
push eax
push ebx
call RobloxPlayer.exe+CODEREMOVED
exit:
jmp returnhere
code1:
jmp newmem
nop
nop
nop
nop
returnhere:
]])
end
t=createTimer(nil)
timer_setInterval(t, 300)
timer_onTimer(t, mycheck)
timer_setEnabled(t,true)
Two of the codes have been removed due to followers.
Can anyone help me so I can customize the HEX to whatever length/script I want?
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Mon Apr 01, 2013 4:11 pm Post subject: |
|
|
ROBLOX cannot execute Cheat Engine Lua scripts directly.
_________________
- Retired. |
|
Back to top |
|
 |
Animus How do I cheat?
Reputation: 0
Joined: 01 Apr 2013 Posts: 4
|
Posted: Mon Apr 01, 2013 4:16 pm Post subject: |
|
|
It can noping those codes.
|
|
Back to top |
|
 |
Gniarf Grandmaster Cheater Supreme
Reputation: 43
Joined: 12 Mar 2012 Posts: 1285
|
Posted: Tue Apr 02, 2013 12:53 pm Post subject: Re: Change HEX Lua... |
|
|
Animus wrote: | It seems changing the script slightly breaks it. I assume it's something to do with the length. Perhaps you can help? | The problem is not the length but the content. You see, there are 2 kind of functions in lua:
-built-in functions (like "print" or "math.sqrt") that will work in any program that uses lua.
-extensions, that are functions added to lua by each developer so as to match application-specific needs. getProcessIDFromProcessName, openProcess, autoAssemble, and
stealthedit are such extensions and thus will only work in lua scripts executed within cheat engine.
Roblox doesn't know what autoAssemble means and this is why your script doesn't work when pasted in its chatbox.
|
|
Back to top |
|
 |
|
|
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
|
|