Here is the non-aggro code I'm using:
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.
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.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]
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.