Page 1 of 1

Problems using NewMoveXY

Posted: 13.08.2012 11:13
by keepin
hello im trying to get a quickBullTaming script to work. But I have already Problems in using NewMoveXY.

Here is the code:

Code: Select all

Program shortQuickyTamed;

var
bullType : Array of Cardinal;
currentBull: Cardinal;

function findTameType : boolean;
Begin  
   bullType := [$00E8, $00E9];
  finddistance := 16;
   currentBull :=  FindType(bullType[0],Ground); 
  If currentBull > 0 then
    begin 
      NewMoveXY(GetX(currentBull),GetY(currentBull),true ,0,True);
      result := true;
      AddToSystemJournal('Found a bull, start moving.');
    end
  else
    begin
      result := false;
      AddToSystemJournal('Couldn Find any bulls.');
    end;   
end;

begin
findTameType;
End.
Maybe anyone can help me.

BTW: I get an error when starting Stealth with razor.
Thats the error:

Code: Select all

Client Window not Found! Dll is not Working now

Re: Problems using NewMoveXY

Posted: 13.08.2012 12:45
by Boydon
Just try to start Stealth without Razor.

Re: Problems using NewMoveXY

Posted: 13.08.2012 16:23
by keepin
Yea. Ive tried the script with and without Razor. And it didnt work. If I enter coordinates close to me, then he moves there. So I guess I'm overseeing something in the code.

Re: Problems using NewMoveXY

Posted: 14.08.2012 22:33
by keepin
Actually a friend checked just the code and told me " NewMoveXY(GetX(currentBull),GetY(currentBull),true ,0,True)" cant work cause the moving isnt going on an object.. so I had to change it to " NewMoveXY(GetX(currentBull),GetY(currentBull),true ,1,True)"

Re: Problems using NewMoveXY

Posted: 16.08.2012 22:52
by yuras
keepin wrote:Actually a friend checked just the code and told me " NewMoveXY(GetX(currentBull),GetY(currentBull),true ,0,True)" cant work cause the moving isnt going on an object.. so I had to change it to " NewMoveXY(GetX(currentBull),GetY(currentBull),true ,1,True)"
use moveThroughNPC:=0 default this parametr 1.