|
下面的是我用DELPHI写的...想转化成AU3的
//使用技能call
function UseSkillCall(p: PGetGwCallParam):DWORD; Stdcall;
var
edx1: DWORD;
address:Pointer;
begin
address:=Pointer($00462470);
edx1 := p^.EDX;
asm
pushad
// mov eax, dword ptr [$9497B4]
mov eax, edx1
mov ecx, dword ptr [$9497B4]
mov ecx, dword ptr [ecx + $1C]
mov ecx, dword ptr [ecx + $24]
push -1
push 0
push 0
push eax
call address
popad;
end;
result:=0; // retn 0xC
end;
//选怪call
function GetGwCall(p: PGetGwCallParam):DWORD; Stdcall;
var
edx1: DWORD;
address:Pointer;
begin
address:=Pointer($00583980);
edx1 := p^.EDX;
asm
pushad
mov esi, edx1
push esi
mov ecx, dword ptr [$009497B4]
mov ecx, dword ptr [ecx+$20]
add ecx,$D4
call address
popad;
end;
result:=0;
end; |
|