Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

The command: NewMoveXY.............

Only for requests.
Post Reply
TheEnd
Neophyte
Neophyte
Posts: 23
Joined: 20.11.2012 11:20
Contact:

The command: NewMoveXY.............

Post by TheEnd »

Code: Select all

Program New;
const
  questCoordsX = 7040;
  questCoordsY = 376;
  
  actionDelay = 575;
  
begin
 //Body of Script 
   while ((GetX(self()) <> questCoordsX) or (GetY(self()) <> questCoordsY)) do
  begin
    while IsGump do CloseSimpleGump(0);
    NewMoveXY(questCoordsX, questCoordsY, True, 0, True);
    Wait(actionDelay);
  end;
end.
with this code, if someone in the position(7040,376), my Char cant go to the Coords(7040,376).
help~~!

is there any method to ignore somebody standing Coords? so i can go to the Coords.
chernysh
Novice
Novice
Posts: 61
Joined: 05.06.2011 14:54
Location: Ukraine

Re: The command: NewMoveXY.............

Post by chernysh »

Try to use SetGoodLocation(X,Y). It will be mark point as walkable without any checks.
Crome696
Novice
Novice
Posts: 67
Joined: 04.03.2012 18:57
Location: Germany
Contact:

Re: The command: NewMoveXY.............

Post by Crome696 »

chernysh wrote:Try to use SetGoodLocation(X,Y). It will be mark point as walkable without any checks.
I noticed that when you are on a different layer, that it stucks a bit.
Stealth Development Team & Support
User avatar
Vizit0r
Developer
Developer
Posts: 3958
Joined: 24.03.2005 17:05
Contact:

Re: The command: NewMoveXY.............

Post by Vizit0r »

Code: Select all

SetMoveThroughNPC
in Python
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
TheEnd
Neophyte
Neophyte
Posts: 23
Joined: 20.11.2012 11:20
Contact:

Re: The command: NewMoveXY.............

Post by TheEnd »

Vizit0r wrote:

Code: Select all

SetMoveThroughNPC
in Python
in pascal, any other method to complete this funcion?
TheEnd
Neophyte
Neophyte
Posts: 23
Joined: 20.11.2012 11:20
Contact:

Re: The command: NewMoveXY.............

Post by TheEnd »

chernysh wrote:Try to use SetGoodLocation(X,Y). It will be mark point as walkable without any checks.
with this Procedure SetGoodLoacation cant compiled.
[Error] : Unknown identifier 'SetGoodLocation'
: Compiling failed
PS: Win7 Ultimated, x86
Lonny
Posts: 9
Joined: 24.11.2012 23:51
Contact:

Re: The command: NewMoveXY.............

Post by Lonny »

try this
MoveThroughNPC := 0;
User avatar
Vizit0r
Developer
Developer
Posts: 3958
Joined: 24.03.2005 17:05
Contact:

Re: The command: NewMoveXY.............

Post by Vizit0r »

Lonny wrote:try this
MoveThroughNPC := 0;
it's PS edition.

For Python will be

Code: Select all

SetMoveThroughNPC(0)
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
TheEnd
Neophyte
Neophyte
Posts: 23
Joined: 20.11.2012 11:20
Contact:

Re: The command: NewMoveXY.............

Post by TheEnd »

Lonny wrote:try this
MoveThroughNPC := 0;
It works now, thanks!

also thanks for all of kind replies.
Post Reply