本帖最後由 罪i刈 於 2010-1-31 00:48 編輯
[ENABLE]
registersymbol(FIR)
alloc(FIR,1024)
registersymbol(FIRTIMESS)
alloc(FIRTIMESS,4)
registersymbol(FIRSKILL)
alloc(FIRSKILL,4)
registersymbol(FIREDI)
alloc(FIREDI,4)
label(FIR00)
label(FIR01)
//-----------------------------------------------
FIRTIMESS:
DD 0 //招喚獸攻擊時間
FIRSKILL:
DD 0 //招喚獸攻擊次數
FIREDI:
DD 0 //招喚獸EDI
//-----------------------------------------------
FIR:
cmp [FIREDI],edi
mov [FIREDI],edi
mov [FIRTIMESS],0
mov [FIRSKILL],0
cmp [FIRSKILL],1 //偵測攻擊次數.目前1下
je FIR00
call FIR01
pop ecx
pop ecx
mov dword ptr [ebx+000000d4],01
push [ebx+000000f0]
lea eax,[ebx+000000e8]
push eax
call FIR01
pop ecx
pop ecx
mov dword ptr [ebx+000000c8],01
push [ebx+000000b4]
call 0074f4d9
pop ecx
push esi
mov ecx,ebx
call 00787d70
push eax
mov eax,[ebx+00000114]
cmp [FIRTIMESS],eax
pop eax
je 00787120
push eax
mov eax,[ebx+00000114]
mov [FIRTIMESS],eax
mov [FIREDI],edi
pop eax
jmp 00787120
//-----------------------------------------------
FIR00:
call 00415e22
jmp 00786fc9
//-----------------------------------------------
FIR01:
push ebp
mov ebp,esp
mov eax,[ebp+08]
push ebx
mov ebx,[eax+04]
push esi
mov esi,[eax]
push edi
push 05
push ebx
call 00a316bb
mov edi,eax
xor edi,esi
push 05
xor esi,baadf00d
push esi
call 00a31304
add eax,ebx
add esp,10
mov eax,edi
pop edi
pop esi
pop ebx
pop ebp
ret
00786FC4:
jmp FIR
//-----------------------------------------------
[DISABLE]
00786FC4:
call 00415e22
dealloc(FIR)
unregistersymbol(FIR)
dealloc(FIRTIMESS)
unregistersymbol(FIRTIMESS)
dealloc(FIREDI)
unregistersymbol(FIREDI)
dealloc(FIRSKILL)
unregistersymbol(FIRSKILL)
這可以用
不會鎖
我側3小時沒被鎖
3小時以上不知道
須在測試
但殺不死怪
需要改秒數
有改出來再發布摟 |