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
Make NPC Walk Only
Author Message
Chukwuemeka
Apprentice
*

Posts: 12
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Nov 2016
Reputation: 0



Post: #1
Question Make NPC Walk Only
Hey,

Is there a way I can make a NPC walk only? I don't want it to run.
I tried using TAG.OVERRIDE.MOVERATE, but it only makes him go faster.

Any tips?

Thanks
05-16-2017 10:27 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Make NPC Walk Only
You can change/override (in the case the NPC uses human male or female body) the CAN property of the NPC's Chardef

Example:
Code:
[CHARDEF c_ninja]
ID=c_man
CAN=MT_WALK|MT_USEHANDS|MT_EQUIP|MT_MOUNT
NAME=human

By default c_ninja will inherit the CAN property of c_man (CAN=MT_WALK|MT_RUN|MT_USEHANDS|MT_EQUIP|MT_MOUNT), so we have to override them by adding a new CAN property (see the example above).
05-16-2017 11:56 PM
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: #3
RE: Make NPC Walk Only
SPEEDMODE=2
05-17-2017 12:31 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: Make NPC Walk Only
Speedmode it's for player only
(This post was last modified: 05-17-2017 01:02 AM by darksun84.)
05-17-2017 01:02 AM
Find all posts by this user Like Post Quote this message in a reply
Chukwuemeka
Apprentice
*

Posts: 12
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Nov 2016
Reputation: 0



Post: #5
RE: Make NPC Walk Only
(05-16-2017 11:56 PM)darksun84 Wrote:  You can change/override (in the case the NPC uses human male or female body) the CAN property of the NPC's Chardef

Example:
Code:
[CHARDEF c_ninja]
ID=c_man
CAN=MT_WALK|MT_USEHANDS|MT_EQUIP|MT_MOUNT
NAME=human

By default c_ninja will inherit the CAN property of c_man (CAN=MT_WALK|MT_RUN|MT_USEHANDS|MT_EQUIP|MT_MOUNT), so we have to override them by adding a new CAN property (see the example above).

Thank you very much, I had no idea it was this simple Big Grin
05-17-2017 03: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: 3 Guest(s)