Long ago I've used attack for farming
Code:
//------------------------------------------------
// Char simple attack
// also for mining
//------------------------------------------------
{
0045B213 |. 8B4C24 10 MOV ECX,DWORD PTR SS:[ARG.4]
0045B217 |. 55 PUSH EBP ; /Arg3
0045B218 |. 51 PUSH ECX ; |Arg2
0045B219 |. 57 PUSH EDI ; |Arg1
0045B21A |. 8BCE MOV ECX,ESI ; |
0045B21C |. E8 9F330000 CALL 0045E5C0 ; \elementclient.0045E5C0
}
procedure Call_Attack(TargetID: PParams); stdcall;
var
P1 : dword;
PW_Call : pointer;
PW_BASE_ADDR : DWORD;
begin
P1 := TargetID^.pDword1 ;
PW_Call := pointer($0045F920);
PW_BASE_ADDR := $0098addc;
asm
pushad
mov esi, PW_BASE_ADDR
mov esi, dword ptr [esi]
mov esi, dword ptr [esi+$1C]
mov esi, dword ptr [esi+$20]
push $0
push $80000000
push P1
mov ecx, esi
call PW_Call
popad
end;
end;