[GUIDE] AlmostNoCooldown (limit rate of skills)
Posted: Tue Jan 04, 2011 9:32 am
If you follow my guide at http://www.memoryhacking.com/forums/viewtopic.php?f=32&t=8663&sid=a81c7eaff7d88789e57c9d423acbffb3, you will get bumped in an eye blink. That's cause just locking the value makes you resend the command (skill) as fast as your computer/bandwidth/whatever permits. Thus you get flooded quickly. What to do? 'Time' your skills. Too hard to time it, as a single keypress sends billion commands.
What can be done is set the lock to be updated only at a given time interval. Not possible via simple lock. Solution? Scripted locks.
Well, for that, I've used the 'Dash' skill. If you just lock, you can see you are not bumped off (dc'ed)!! But you can see your mana being drained like popcorn. No matter how quick you press the key, it just bugs. And also bugs server logs. Come on, we can get most from the hack and annoy the less the admins. Also it makes harder to find our doing on the game...
Okay. Let's get into the scripted locks. Know that you apply the nocooldown hack not for a given skill but for a given sword or magic slot on your skill bar. Refer to my other guide at http://www.memoryhacking.com/forums/viewtopic.php?f=32&t=8663&sid=a81c7eaff7d88789e57c9d423acbffb3 for details on the NoCooldown procedure.
Once you have the correct entry in MHS, open it to modify, open the 'script lock' tab, and paste the code below
Mark the 'Use script to apply lock'.
For clarity, I defined the 'forcetime' variable, in milisseconds for how often to enforce the lock. Although it blindly writes 0 (shall calculate correct time in float and write it given the game's provided value), it just works, and does not spam the server, and the time (for the dash) is enough 0.5s to end one and apply the other. Maybe 0.8 is the perfect time for this skill as it takes 0.8 secs to be released.
Once you have the code in place and box checked, click 'Ok' to close the modify window, it will freeze for a moment (while it compiles the code you just 'wrote'), and then, when you lock the value (given you have the right address for the skill locking) voila, you will be dashing quick as wind! And your mana goes for every dash not once and for all.
This 'flood control' helps preventing DC on the guide from the links above. It just does make it not happen, just controls the spamming rate so it takes longer for you to take a DC. You may put a very short value (20ms) to avoid just a single keypress being sent a thousand times.
What can be done is set the lock to be updated only at a given time interval. Not possible via simple lock. Solution? Scripted locks.
Well, for that, I've used the 'Dash' skill. If you just lock, you can see you are not bumped off (dc'ed)!! But you can see your mana being drained like popcorn. No matter how quick you press the key, it just bugs. And also bugs server logs. Come on, we can get most from the hack and annoy the less the admins. Also it makes harder to find our doing on the game...
Okay. Let's get into the scripted locks. Know that you apply the nocooldown hack not for a given skill but for a given sword or magic slot on your skill bar. Refer to my other guide at http://www.memoryhacking.com/forums/viewtopic.php?f=32&t=8663&sid=a81c7eaff7d88789e57c9d423acbffb3 for details on the NoCooldown procedure.
Once you have the correct entry in MHS, open it to modify, open the 'script lock' tab, and paste the code below
- Code: Select all
int lasthit = 0;
VOID Lock(MHS_ADDRESS sAddress, INT iItemSize) {
extern float val = { "", sAddress };
extern float secval = { "", sAddress+0x8 };
int timenow=Time();
int forcetime=800; // 800ms
if (val && (lasthit > timenow ||
lasthit < timenow-forcetime)) {
lasthit=timenow;
val=0;
secval=0;
}
}
Mark the 'Use script to apply lock'.
For clarity, I defined the 'forcetime' variable, in milisseconds for how often to enforce the lock. Although it blindly writes 0 (shall calculate correct time in float and write it given the game's provided value), it just works, and does not spam the server, and the time (for the dash) is enough 0.5s to end one and apply the other. Maybe 0.8 is the perfect time for this skill as it takes 0.8 secs to be released.
Once you have the code in place and box checked, click 'Ok' to close the modify window, it will freeze for a moment (while it compiles the code you just 'wrote'), and then, when you lock the value (given you have the right address for the skill locking) voila, you will be dashing quick as wind! And your mana goes for every dash not once and for all.
This 'flood control' helps preventing DC on the guide from the links above. It just does make it not happen, just controls the spamming rate so it takes longer for you to take a DC. You may put a very short value (20ms) to avoid just a single keypress being sent a thousand times.