Troll
2010-10-17 07:09:35
well title says it all ive found a cow im looking for
thanks
Edit: still not sure here is what i've got
If (NPCs[i].Name = 'Cow') then
i want to get it so i can use it like
Mouse(x,y,3,3,True);
any help would be greatthanks
Edit: still not sure here is what i've got
Function HelloCow:Boolean;
Var NPCs : TNPCArray;
I,x,y : Integer;
CowTile : TPoint;
Begin
If Not LoggedIn Then Exit;
NPCs := GetNPCsBy('Cow');
If high(NPCs) > 0 Then
Begin
For i:= 0 To high(NPCs) Do
Begin
If (NPCs[i].Name = 'Cow') then
Begin
writeln ('Found cow');
CowTile := TileToMS(NPCs[i],0)
MMouse(CowTile.x,CowTile.y,3,3);
If R_IsUpText('Cow') Then
GetMousePos(x,y);
If Not Random(15) = 5 Then
Mouse(x,y,0,0,true);
Else Begin
Mouse(x,y,0,0,False);
R_ChooseOption('ttac');
End;
Result := True
End;
End;
End;
End;