Cheatenige - Adjust Mobspeed Value

12/17/2009 18:43 nastydame#1
I have a problem, it doesn't work no more. My hacks work fine except the mobspeed + the offsets are correct.

Help me out please.
[ENABLE]
alloc(DrakoMobSpeed,64)
label(MobIsWalking)
label(ReturnMobSpeed)
label(MobRunSpeed)
label(MobWalkSpeed)
registersymbol(MobRunSpeed)
registersymbol(MobWalkSpeed)

0053E0B0: //80 7C 24 04 00 74 06 D9 40 70
jmp DrakoMobSpeed
ReturnMobSpeed:

DrakoMobSpeed:
cmp byte ptr [esp+04],00
je MobIsWalking
fld dword ptr [MobRunSpeed]
ret 0004
MobIsWalking:
fld dword ptr [MobWalkSpeed]
ret 0004
MobRunSpeed:
db 00 00 20 41
MobWalkSpeed:
db 00 00 40 40

[DISABLE]
dealloc(DrakoMobSpeed)
unregistersymbol(MobRunSpeed)
unregistersymbol(MobWalkSpeed)
0053E0B0:
cmp byte ptr [esp+04],00
12/17/2009 18:55 sachamo512#2
Tell us more about what is happening. Do you crash, or does the hack just not have any effect?

It's possible that you have another script that overwrites this one. See if you have mob speed in your vac script or something. Try editing your mobs speed to something overly dramatic so you know that it is taking effect or not.
12/18/2009 03:20 giljs#3
Most likely, you also have a speed-setting line in your non-aggro script that is overriding you speed-only script. See if your non-aggro looks like this:

Code:
[ENABLE] 
alloc(newmem,1024) 
label(returnhere) 
label(originalcode) 
label(exit) 

0053D08A: //0F B7 86 54 01 00
jmp newmem 
nop 
nop 
returnhere: 

newmem: 

originalcode: 
movzx eax,word ptr [esi+00000154] 

//mov eax,01 
//mov word ptr [esi+00000156],ax 
mov [esi+00000070], 41400000 // speed mob   
//40c00000 = 6 lv 1 (to replace the above blue color)
//40400000 = 12 lv 2 (to replace the above blue color)
//41c00000 = 24 lv 3 (to replace the above blue color)
mov byte ptr [esi+00000174],00 // malee attack range = 0 
mov byte ptr [esi+00000244],00 // magic attack range = 0 
mov [esi+00000240],0000000 //other attack range = 0 
mov [esi+0000023c],0000000 //other attack range = 0 
mov [esi+00000238],0000000 //other attack range = 0 
mov eax,03 
mov word ptr [esi+00000154],ax 

exit: 
jmp returnhere 


[DISABLE] 
dealloc(newmem) 

0053D08A: 
movzx eax,word ptr [esi+00000154]
If you want your speed script to control mob speed, then put you need to disable the speed portion of the non-aggro script by putting "//" in front of the line.