Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


I can't write Mob's teleport to me hack with { LUA Script }

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
ZaKoH
How do I cheat?
Reputation: 0

Joined: 10 Jun 2017
Posts: 6

PostPosted: Mon Sep 27, 2021 2:52 pm    Post subject: I can't write Mob's teleport to me hack with { LUA Script } Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites