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
Mining NPC
Author Message
karma
Moderator
****

Posts: 178
Likes Given: 17
Likes Received: 32 in 29 posts
Joined: Jul 2012
Reputation: 3



Post: #4
Mining NPC
You can give to the npc the pickaxe using, in his @Create, ITEMNEWBIE=i_pickaxe_anim. Doing this, it will be inlootable and if the npc is killed the item won't be dropped.
Alternatively you can do:
ITEM=i_pickaxe_anim
ATTR |= attr_newbie
In this way you give at the npc the pickaxe and add it the newbie (inloot) attr.

Also you can manipulate the TIMER, using TIMER={5 30}, so time between anims is a random number going from 5 to 30 and furthermore the npc has more time to walk around. If you want to force its walking around behaviour, in the wiki there are functions like WALK, RUN, MOVETO, GOTO or something similar, i don't remember precisely now, just give it a look!
(If you want to force the npc walking around i can expend more words on that, even if i think it's better do let it follow the default ai, which also make it walk around. Maybe we can work on the maximum distance it may reach from the spawn point, which is HOMEDIST).
(This post was last modified: 05-05-2014 10:12 PM by karma.)
05-05-2014 06:26 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Mining NPC - kn4tseb - 05-05-2014, 10:47 AM
RE: Mining NPC - Coruja - 05-05-2014, 02:11 PM
RE: Mining NPC - kn4tseb - 05-05-2014, 02:49 PM
Mining NPC - karma - 05-05-2014 06:26 PM
RE: Mining NPC - Coruja - 05-06-2014, 02:04 AM
RE: Mining NPC - kn4tseb - 05-06-2014, 02:22 AM
RE: Mining NPC - kn4tseb - 05-06-2014, 04:15 AM
RE: Mining NPC - Alaric - 05-06-2014, 07:28 AM
RE: Mining NPC - kn4tseb - 05-06-2014, 08:22 AM
Mining NPC - karma - 05-06-2014, 07:03 PM
RE: Mining NPC - Alaric - 05-06-2014, 07:55 PM
RE: Mining NPC - karma - 05-06-2014, 10:32 PM
RE: Mining NPC - Alaric - 05-07-2014, 12:34 AM
RE: Mining NPC - XuN - 05-07-2014, 02:57 AM
RE: Mining NPC - Alaric - 05-07-2014, 05:55 AM

Forum Jump:


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