Posted: Mon Oct 20, 2008 9:20 pm Post subject: Help how do i make a timer in auto assemble?
hi there..i got a problem here...i have created a speed hack script and the server dc me if i dont change the speed frequently and stay at the same fast speed..so im trying to make this script that when i enable it it will change my speed to 5 which is the speed hack value...and after 3 seconds it will run the 2nd part of the script which is changing the current speed from 5 to 10..and then after 3 seconds it will change back the speed to 5 again and the script loops itself...is it possible in anyway?
help a newbie pls
thanks in advance!~
heres an example of my script..
Code:
[enable]
004575DF:
mov [0042A812],00000005 //0042A812 is the value of my speed
[disable]
004575DF:
mov [0042A812],0000003e //3e which is 62 in dec is my normal speed
Do a codecave and then first of all, preserve the flags and EAX/ECX/EDX by pushing them onto the stack. Then make calls to GetTickCount for the timer function. Ideally you would make a new thread and do it all in there. Best thing to do would be to code an external app to do this sort of thing actually or inject a DLL unless the codecave you choose will be constantly executed. By best, I mean easiest.
You'd have to be careful not to delay gamecode execution at a critical place though. It would take some thought to make sure that opcode is ideal for the job...
Joined: 02 Nov 2007 Posts: 1746 Location: Pakistan
Posted: Wed Oct 22, 2008 9:20 am Post subject:
[Psych] wrote:
You'd have to be careful not to delay gamecode execution at a critical place though. It would take some thought to make sure that opcode is ideal for the job...
If he uses a new thread it wouldn't collide with the game itself. _________________
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