View previous topic :: View next topic |
Author |
Message |
ChampCrazy How do I cheat? Reputation: 0
Joined: 27 Jan 2014 Posts: 2
|
Posted: Mon Jan 27, 2014 4:53 pm Post subject: write to pointer ??? |
|
|
Hey Guyz! im new to lua scripting.
sadly i cant figure out how to write a value into a pointer :/
i know how to read adresses and write to adresses. but as we all know adresses change every time so i have to create a script that does wirte a specific value into my pointer that i found.
i know the offsets of my pointer but cant make it to do what i want in lua!
Noob in trouble need help!
|
|
Back to top |
|
|
pellik Advanced Cheater Reputation: 0
Joined: 14 Jun 2013 Posts: 93
|
|
Back to top |
|
|
ChampCrazy How do I cheat? Reputation: 0
Joined: 27 Jan 2014 Posts: 2
|
Posted: Tue Jan 28, 2014 4:44 am Post subject: |
|
|
I already knew that list...
writefloat(adress)
readfloat(adress)
works fine but i need something like :
readpointer(offsets)
writepointer(offsets)
can someone help who really understands my issue?
|
|
Back to top |
|
|
faizangmc Expert Cheater Reputation: 0
Joined: 12 Nov 2013 Posts: 167
|
Posted: Wed Feb 05, 2014 12:03 pm Post subject: |
|
|
first define the pointer eg
mypointer = "[[[game.exe+005D4D20]+c8]+b0]+1c"
for writing,
Code: | writeInteger(mypointer, 100) |
which will write 100 to the the pointer u defined
For reading,
Code: | readInteger(mypointer) |
or if you want to display the value contained in the pointer in an edit box named 'CEEdit1' in form named UDF1 then this :
Code: | UDF1.CEEdit1.Text = readInteger(mypointer) |
|
|
Back to top |
|
|
Loeffel How do I cheat? Reputation: 0
Joined: 24 Dec 2014 Posts: 6
|
Posted: Sat Dec 27, 2014 9:11 am Post subject: |
|
|
ChampCrazy wrote: | or if you want to display the value contained in the pointer in an edit box named 'CEEdit1' in form named UDF1 | What syntax do I need to use, when I have a pointer saved in a variable named pSelected_Unit_Address, that is defined in a table script.
I can show me the pointer and the value of the pointer in the table list, but I can't use it in a lua scipt.
I have testet eery function, that could be the correct one to get the integer value of the memory the pointer points to, but nothing works. I always get attempt to ...(depending on function)... (a nil value). The variable is filled and the pointer is valid, but nothing works.
I can't use game.exe+offset, as I don't know the offset. It changes not only with every game start, also with every loading of a saved game.
_________________
Yours
Loeffel |
|
Back to top |
|
|
|