The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NPC movement
Author Message
Sekvent
Apprentice
*

Posts: 4
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: May 2012
Reputation: 0



Post: #1
NPC movement
Hello,

I am new to all this. But I have a specific question:

How do I make NPCs stay at the tile where their spawn point is. Should be some kind of freeze @create flag or something?

I want to put it directly into the NPC script. Version 56b.
05-21-2012 02:44 AM
Find all posts by this user Like Post Quote this message in a reply
Reflex
Journeyman
*

Posts: 130
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Apr 2012
Reputation: 1



Post: #2
RE: NPC movement
If you're using axis just put max distance to 1 or if you're not using axis you will have to set that manually when adding the spawn of course ;p
(This post was last modified: 05-21-2012 02:56 AM by Reflex.)
05-21-2012 02:55 AM
Find all posts by this user Like Post Quote this message in a reply
Sekvent
Apprentice
*

Posts: 4
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: May 2012
Reputation: 0



Post: #3
RE: NPC movement
I set max distance to 1 and the NPC wanders around a lot!
05-21-2012 03:20 AM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #4
RE: NPC movement
After changing something like distance you may need to respawn it?
05-21-2012 03:25 AM
Find all posts by this user Like Post Quote this message in a reply
Sekvent
Apprentice
*

Posts: 4
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: May 2012
Reputation: 0



Post: #5
RE: NPC movement
I tried. He walks around like crazy anyways. I was wandering if I could just add a parameter to the npc script that would just freeze it (like there is flag 04 for frozen with axis)
05-21-2012 03:29 AM
Find all posts by this user Like Post Quote this message in a reply
WRWR
Journeyman
*

Posts: 212
Likes Given: 30
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 1



Post: #6
RE: NPC movement
just remove mt_walk flag
05-21-2012 05:01 AM
Find all posts by this user Like Post Quote this message in a reply
Sekvent
Apprentice
*

Posts: 4
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: May 2012
Reputation: 0



Post: #7
RE: NPC movement
HAHA found it!

you can add to any npc the following:

CAN=MT_NONMOVER

I found it in sphere definitions file.
(This post was last modified: 05-21-2012 05:51 AM by Sekvent.)
05-21-2012 05:30 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)