ZaKoH How do I cheat? Reputation: 0
Joined: 10 Jun 2017 Posts: 6
|
Posted: Mon Sep 27, 2021 2:52 pm Post subject: I can't write Mob's teleport to me hack with { LUA Script } |
|
|
hello guys, I tried to make teleport Mobs (Monster) to me I success but with basic code, I didn't use loop it's tiring so I decide to make it with the loop it's faster than the first method but I can't do it, it always give me the error.
this hack needs a list of mob's coords x, y,z near you and your coords and just write your location into mob's coords.
base mobs coords : [[Mygame.exe+697614]+b8c]
need 1 offest to add it each coord
to get z_Mob_offest need (y_mob_offect - 0x4)
to get x_Mob_offest need (y_mob_offect - 0x8)
This is my code that doesn't work.
Code: | {$lua}
if syntaxcheck then return end
[ENABLE]
--function pointer(Base , offe, idnum)
--end
function checkKeys()
if isKeyPressed(VK_RBUTTON) then
coordx = readFloat('[[[Mygame.exe+697614]+5e4]+250]+84')
coordy = readFloat('[[[Mygame.exe+697614]+5e4]+250]+8c')
coordz = readFloat('[[[Mygame.exe+697614]+5e4]+250]+88')
sleep(100)
Offests ={0x457C,0x5014,0x5104,0x5144,0x5B9C,0x5C8C,0x5CCC,0x6724,0x6814,0x6854,0x72AC,0x73DC,0x739C}
displacmentX = 0x8
displacmentZ = 0x4
base = getAddress('[[Mygame.exe+697614]+b8c]')
for i=1 , 13 do
num = '[[[Mygame.exe+697614]+5e4]+250]+8c' - (base + Offests[i])
if (num <=50 or num>=-40) then
offx = Offests[i] - displacmentX
offy = Offests[i]
offz = Offests[i] - displacmentZ
writeFloat(base + offx, coordx)
writeFloat(base + offy, coordy)
writeFloat(base + offz, coordz)
end
end
end
end
t=createTimer(nil)
timer_setInterval(t, 10)
timer_onTimer(t, checkKeys)
timer_setEnabled(t, true)
[DISABLE]
timer_setEnabled(t, false) |
I hope to give me some advice,thx
|
|