Help modifying non-aggro CE script please

03/07/2009 16:48 giljs#1
Here is the non-aggro code I'm using:

Quote:
NON AGRO:

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

0053DB4A:
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)

0053DB4A:
movzx eax,word ptr [esi+00000154]
The bold section is used to control mob speed. I want to make the mobs move a bit slower, but cannot figure out what value to replace the existing one with. 41400000 seems to be an absurdly high value, so I am guessing it is not the "actual" mob speed, but a reference or code value.

At the moment, I have just deleted the line, so that mobs move at their normal speed. Any help at adjusting the speed value would be appreciated.
03/07/2009 17:17 \/xWx\/#2
Give 41000000 or 40900000 or try alone modyfikli value at 401 to 414 xD
03/07/2009 22:09 trane.#3
//40c00000 = 6 lv 1
//40400000 = 12 lv 2
//41c00000 = 24 lv 3

read
03/08/2009 04:35 giljs#4
AH! Now I see! Didn't realize what the comment ment before!