Jump to content
  • 0

@command that triggers an NPC


Boom

Question


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  182
  • Reputation:   22
  • Joined:  12/30/12
  • Last Seen:  

Hi! I hope someone would help me in making an @command that triggers an NPC, for example, I will be making a command @bank, and then the Banker NPC will be triggered (the NPCs window will pop-up just like talking to it directly)

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  182
  • Reputation:   22
  • Joined:  12/30/12
  • Last Seen:  

 

Thanks for the reply! I tried it on the command @heal and it actually works. My problem though is concerned with the source, adding a new @command which may or may not be with relation to the bindatcmd. For what I've observed, the bindatcmd is used for exisiting @commands already. But if I were to add a new @command that I can connect to the bindatcmd, how will I be able to do that? Thank you!

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

bindatcmd is not used only for existing commands....it allow you to add a "new" @commands using npc script...that bind to certain npc label and execute the label if it's used.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  182
  • Reputation:   22
  • Joined:  12/30/12
  • Last Seen:  

bindatcmd is not used only for existing commands....it allow you to add a "new" @commands using npc script...that bind to certain npc label and execute the label if it's used.

 

Thank you Emistry! bindatcmd is really an easy way for adding a new command via script, but is there any another way to call an NPC by making a new command on the atcommand.c source so it'll really be part of the server files?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...