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-nmm6 (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-nmm6 (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-nmm6 (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 brain / skill
Author Message
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #1
NPC brain / skill
Need help with this, if i create a new skill, is it possible to add this skill to a e_trainer NPC, so it can be trained to 30.0 as usual with normal skills?

and if it is possible, how would it be?

thanks in advance ^^
05-21-2014 08:52 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: #2
RE: NPC brain / skill
Technically yes,
a npc can train you a custom skill, but this skill will not appear when the player says "train".
Instead, if the player says "train newskillname" the skill will appear as usual.

Anyway, just add the new skill (with an high value) in the @create trigger of the npc.
05-22-2014 08:56 PM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #3
RE: NPC brain / skill
ok, did that and it actually says "i can train you in bla bla bla bla, and name of the new skill appears, but when you click on him custom skill wont be seen... think its not a big deal.
thanks ! Wink
05-23-2014 01:50 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #4
RE: NPC brain / skill
(05-23-2014 01:50 AM)kn4tseb Wrote:  ok, did that and it actually says "i can train you in bla bla bla bla, and name of the new skill appears, but when you click on him custom skill wont be seen... think its not a big deal.
thanks ! Wink

Nice, you need to add the context menu to show when click him Big Grin

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
05-23-2014 04:46 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #5
RE: NPC brain / skill
ohhhh didnt know that, gonna try it, thank you very much ^^
05-23-2014 11:17 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #6
RE: NPC brain / skill
Context menu did th thing, had to add a new clilock but thats okey ^^ Thank you very much!
05-24-2014 02:03 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes kn4tseb's post
Post Reply 


Forum Jump:


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