| View previous topic :: View next topic |
| Author |
Message |
thegaiacheater Grandmaster Cheater
Reputation: -1
Joined: 01 Nov 2008 Posts: 882
|
Posted: Mon Dec 09, 2013 11:24 pm Post subject: LUA Script for Magicka. |
|
|
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 |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Tue Dec 10, 2013 10:27 am Post subject: |
|
|
Above code is AA script, not Lua script.
Press CTRL+ALT+A, paste above code, then File->Assign....
_________________
|
|
| Back to top |
|
 |
thegaiacheater Grandmaster Cheater
Reputation: -1
Joined: 01 Nov 2008 Posts: 882
|
Posted: Tue Dec 10, 2013 5:57 pm Post subject: |
|
|
| 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 |
|
 |
|