NPC move

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
igoooor
Posts: 31
Joined: Fri Aug 03, 2007 11:40 am

NPC move

Post by igoooor »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 4486:
L2JDP Revision 7756:

Hello all, I have some question about NPC moves.
I would like that my npc (monster), don't move until I attack him.
I can do this : can_move = 1, walkspd = 1, runspd = 180 for exemple
(For what I understood, walkspd is when is not under attack, and runspd when attacked)
With that configuration, when npc is not attacked, I see them legs move (like when he's walking) but he don't really move.
I would like to have the npc legs don't moving. Is there any way to do this ?
If I put can_move = 0, then when I attack him, he don't move, and if i put walkspd = 0, my client crash when i see the npc.

And the last thing : is there any way to define the move range from the spawn point ?
igoooor
Posts: 31
Joined: Fri Aug 03, 2007 11:40 am

Re: NPC move

Post by igoooor »

Nobody have an answer ? Really ?
My question is so weird ?^^
Nik
L2j Veteran
L2j Veteran
Posts: 629
Joined: Fri Apr 18, 2008 9:09 pm

Re: NPC move

Post by Nik »

# Maximum distance mobs can randomly go from spawn point.
# DEFAULT NEEDS TO BE VERIFIED, MUST BE CHANGED HERE AND IN CONFIG.JAVA IF NOT CORRECT
# Default: 300
MaxDriftRange = 300

set this to 0
Playing a game where you know how every single mechanism works is quite satisfying.
Its the main perk that a gamer-developer has :D
igoooor
Posts: 31
Joined: Fri Aug 03, 2007 11:40 am

Re: NPC move

Post by igoooor »

Ok thanks =) So there is no way to define this point for a specific mob right ?
Nik
L2j Veteran
L2j Veteran
Posts: 629
Joined: Fri Apr 18, 2008 9:09 pm

Re: NPC move

Post by Nik »

use a script for individual NPCs, set this
npc.setIsNoRndWalk(true);
Playing a game where you know how every single mechanism works is quite satisfying.
Its the main perk that a gamer-developer has :D
Post Reply