Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25865 Location: The netherlands
|
Posted: Sat Jan 05, 2008 9:29 pm Post subject: |
|
|
just replace addresstochange with the address you want to change
e.g 0x00123456
you could also use #define addresstochange 0x00123456 so the script knows addresstochange is that value (saves some time editing and makes the code look 'neater')
---------------
for a more detailed:
Include the time.h file (basicly see it like replacing that line with all the contents of time.h which is then executed/parsed)
Create a pointer (4 byte value representing an address) that represents a tm struct. The tm structi s defined in time.h
basicly create a variable of type time_t. It's actually just a normal int but whatever, makes it look nicer to use names like that.
Get the current time and place it in the 'c' variable
| Code: | | timep=localtime(&c); |
parses the time so it can be read out using a simple struct (the tm struct)
| Code: | | if (timep->tm_sec>=30) |
check if the tm_sec element of timep is bigger than or equal to 30
| Code: | | *(int *)addresstochange=1000; |
change the integer value at address (addresstochange) to 1000
no idea
| Code: | | *(int *)addresstochange=2000; |
change the integer value at address (addresstochange) to 2000
-------------------------
of course, the chance of needing exactly this script is small, but if you know c and hardly any assembler you can do some neat tricks with 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 |
|