View previous topic :: View next topic |
Author |
Message |
tcho67 How do I cheat? Reputation: 0
Joined: 23 Mar 2012 Posts: 7
|
Posted: Fri Mar 23, 2012 5:43 am Post subject: lua script for aob with checkbox |
|
|
Good morning / Good evening I want to make a trainer or he would check a checkbox so that the cheat is done all alone I think he could be fair in lua scrip thank you for your help
ps sorry for the mistake I'm french
|
|
Back to top |
|
|
Freiza Grandmaster Cheater Reputation: 22
Joined: 28 Jun 2010 Posts: 662
|
Posted: Fri Mar 23, 2012 10:01 am Post subject: |
|
|
Code: | local form = createForm( true );
checkBoxes = createCheckBox( form );
control_setCaption( checkBoxes, "cheat description ");
control_setPosition( checkBoxes, 10, 20 )
checkbox_onChange(checkBoxes, func)
function func(sender)
if checkbox_getState(checkBoxes)== 1 then
autoAssemble( "address to change:\n" .. -[[ here you put your enabled codes]]
"db 90 90 90 90 90 90"
);
else
autoAssemble( "address to restore:\n" .. --[[ here you put your disabled codes]]
"db 90 90 90 90 90 90"
);
end
return true
end |
Try this.
_________________
|
|
Back to top |
|
|
tcho67 How do I cheat? Reputation: 0
Joined: 23 Mar 2012 Posts: 7
|
Posted: Sun Mar 25, 2012 12:05 pm Post subject: |
|
|
thank you but the adress is always changing so I give you an example I wish that when I check the box she seeks CD DC DC DC DC DC DC 3F and exchange 9A 99 99 99 99 99 E9 3F thank you for your help because the adress no its not fixed
|
|
Back to top |
|
|
Freiza Grandmaster Cheater Reputation: 22
Joined: 28 Jun 2010 Posts: 662
|
Posted: Sun Mar 25, 2012 1:08 pm Post subject: |
|
|
Code: | local form = createForm( true );
checkBoxes = createCheckBox( form );
control_setCaption( checkBoxes, "cheat description ");
control_setPosition( checkBoxes, 10, 20 )
checkbox_onChange(checkBoxes, func)
stringlist=AOBScan( "CD DC DC DC DC DC DC 3F" );
firststring = strings_getString(stringlist, 0);
function func(sender)
if checkbox_getState(checkBoxes)== 1 then
autoAssemble(firststring..":\n"..
"db 9A 99 99 99 99 99 E9 3F");
else
autoAssemble( firststring..":\n" .. --[[ here you put your disabled codes]]
"db CD DC DC DC DC DC DC 3F");
end
return true
end |
_________________
|
|
Back to top |
|
|
tcho67 How do I cheat? Reputation: 0
Joined: 23 Mar 2012 Posts: 7
|
Posted: Sun Mar 25, 2012 2:43 pm Post subject: |
|
|
ok thank you but its not working because I want to a new feunetre so I modify CECheckbox1Change function (sender)
stringlist AOBScan = ("CD DC DC DC DC DC DC 3F");
= firststring strings_getString (stringlist, 0);
end
function func (sender)
checkbox_getState if (checkboxes) == 1 then
self-assembles (firststring.. ": \ n" ..
"db 9A 99 99 99 99 99 E9 3F");
else
self-assembles (firststring.. ": \ n" ..
"db CD DC DC DC DC DC DC 3F");
end
return true
end
I record and then all I louvre and when I check the error access voilation marke me thank you for your help
|
|
Back to top |
|
|
Freiza Grandmaster Cheater Reputation: 22
Joined: 28 Jun 2010 Posts: 662
|
Posted: Sun Mar 25, 2012 3:57 pm Post subject: |
|
|
this code is completely Incorrect.
Code: |
CECheckbox1Change function (sender)
stringlist AOBScan = ("CD DC DC DC DC DC DC 3F");
= firststring strings_getString (stringlist, 0);
end |
And there is no built-in function called self-assembles. Are you defining your own function somewhere in your script?
Are you using Generate Trainer Option?
_________________
|
|
Back to top |
|
|
tcho67 How do I cheat? Reputation: 0
Joined: 23 Mar 2012 Posts: 7
|
Posted: Sun Mar 25, 2012 4:09 pm Post subject: |
|
|
I understand the not too'm not too gifted I'm 13 but I do not understand the good
|
|
Back to top |
|
|
Freiza Grandmaster Cheater Reputation: 22
Joined: 28 Jun 2010 Posts: 662
|
Posted: Sun Mar 25, 2012 4:32 pm Post subject: |
|
|
Try the following steps:
1) Open your game process in CE.
1) Press Memory View button in CE main window.
2) Search-> Find Memory -> Array of bytes -> write CDDCDCDCDCDCDC3F ->ok
3) Copy the first address displayed in Hex window.
4) Go to that address in Disassembler.
5) Select CE main Window and Press Ctrl+Alt+L
6) Paste my code.
7) Press Execute Script Button.
8.) A form will popup . Close it.
9) Press Execute Script Button again.
10) Tick the checkbox.
11) Now check in disassembler if my code worked or not.
_________________
|
|
Back to top |
|
|
tcho67 How do I cheat? Reputation: 0
Joined: 23 Mar 2012 Posts: 7
|
Posted: Mon Mar 26, 2012 7:48 am Post subject: |
|
|
kidney if not is there a lua script that makes it presses A and F1
|
|
Back to top |
|
|
Freiza Grandmaster Cheater Reputation: 22
Joined: 28 Jun 2010 Posts: 662
|
Posted: Mon Mar 26, 2012 2:29 pm Post subject: |
|
|
Do you want hotkey feature? Sorry If I am getting wrong. It's difficult for me to understand your language.
This is a script that will operate if you Tick the Checkbox or Press Hotkey 'A'.
Code: | local form = createForm( true );
checkBoxes = createCheckBox( form );
control_setCaption( checkBoxes, "cheat description ");
control_setPosition( checkBoxes, 10, 20 )
stringlist=AOBScan( "CD DC DC DC DC DC DC 3F" );
firststring = strings_getString(stringlist, 0);
counter =1;
function func(sender)
print("hello WORLD")
if checkbox_getState(checkBoxes)== 1 then
autoAssemble(firststring..":\n"..
"db 9A 99 99 99 99 99 E9 3F");
else
autoAssemble( firststring..":\n" .. --[[ here you put your disabled codes]]
"db CD DC DC DC DC DC DC 3F");
end
return true
end
function foo(sender)
if checkbox_getState(checkBoxes) == 0 then
checkbox_setState(checkBoxes,1)
func(sender)
print("0 check")
else
checkbox_setState(checkBoxes,0)
print("1 check")
func(sender)
end
return true
end
checkbox_onChange(checkBoxes, func)
hkey=createHotkey("foo",VK_A)
generichotkey_onHotkey(hkey,foo) |
_________________
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25288 Location: The netherlands
|
Posted: Mon Mar 26, 2012 2:43 pm Post subject: |
|
|
Just wondering, why not use a aa script with aobscan attached to the cheattable and give the cheattable an enable/disable hotkey.
You can then make a easy trainer out of it
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
tcho67 How do I cheat? Reputation: 0
Joined: 23 Mar 2012 Posts: 7
|
Posted: Mon Mar 26, 2012 5:39 pm Post subject: |
|
|
Dark Byte wrote: | Just wondering, why not use a aa script with aobscan attached to the cheattable and give the cheattable an enable/disable hotkey.
You can then make a easy trainer out of it |
because the person using but spineless with cochement trainer says that he'll be more disiane and the trainer finally function windows xp because it only works on windows vista or windows7
et desole pour mon mauvais anglais je suis français et je n'est que 13 ans donc j'utillise google traduction carces pas avec des 12 en angalis que je vais comprendre se que vous ecrivé
|
|
Back to top |
|
|
|