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 


LUA Script for Magicka.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
thegaiacheater
Grandmaster Cheater
Reputation: -1

Joined: 01 Nov 2008
Posts: 882

PostPosted: Mon Dec 09, 2013 11:24 pm    Post subject: LUA Script for Magicka. Reply with quote

I am trying to make a LUA GOd Mode script for magicka but i keep getting weird compile errors like:
Code:

Script Error:[string "[ENABLE]..."]:1: unexpected symbol near '['


Here is my code:
Code:

[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
label(Health)
registersymbol(Health)
aobscan(aobHealth,D9 80 04 01 00 00 D9 80 ?? ?? ?? ?? ?? ?? ?? ?? 7A 14)

newmem:
cmp [eax+144],0 //is it 0(enemy)
je originalcode //if yes, do not set health to 10000

//still here, so set health to 10000
mov dword ptr [eax+11C],(float)10000.0

originalcode:
fld dword ptr [eax+118]

exit:
jmp returnhere

aobHealth:
Health:
jmp newmem
nop
returnhere:

[DISABLE]
dealloc(newmem)
unregistersymbol(Health)
Health:
db D9 80 04 01 00 00
[/code]
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Tue Dec 10, 2013 10:27 am    Post subject: Reply with quote

Above code is AA script, not Lua script.

Press CTRL+ALT+A, paste above code, then File->Assign....

_________________
Back to top
View user's profile Send private message MSN Messenger
thegaiacheater
Grandmaster Cheater
Reputation: -1

Joined: 01 Nov 2008
Posts: 882

PostPosted: Tue Dec 10, 2013 5:57 pm    Post subject: Reply with quote

mgr.inz.Player wrote:
Above code is AA script, not Lua script.

Press CTRL+ALT+A, paste above code, then File->Assign....

Oh okay thanks!
It's not my script, i found it as an example and just plugged my esi into the corresponding place, so i didn't know. Thanks for letting me know i'll see how it goes.
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 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