Jump to content
  • 0

Command to @callnpc


sprite0

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   1
  • Joined:  08/01/12
  • Last Seen:  

Hi, all,

 

I'd like to request a command (map/atcomand.c) that calls out an NPC.

 

Example:

 

  1. A player types in @callnpc.
  2. An NPC dialogue shows up on his/her screen.

 

Thanks in advance.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   1
  • Joined:  09/25/14
  • Last Seen:  

As far as I know, you also have to declare what specific event you're calling from the "called npc", because you can't just execute an NPC like that, you could break some functions going on. I'd suggest that if you want to make a callnpc, you really specify which one, or which ones, and where exactly do you want to call them.

 

You should probably elaborate more on your request.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  80
  • Reputation:   1
  • Joined:  10/08/13
  • Last Seen:  

We can make an npc that players can whisper to instead of it being on the map. But like Dade said we would need to know specifically what functions you want the npc to have

Link to comment
Share on other sites


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


- script atcmd_example -1,{

OnInit:

bindatcmd "callnpc",strnpcinfo(3)+"::OnAtcommand";

end;

OnAtcommand:

specialeffect2 338;

mes "Message shown";

close;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   1
  • Joined:  08/01/12
  • Last Seen:  

@edit: Please delete this topic. I'm so sorry about that, but I thought rAthena was compatible with a translated version that I use. 

Edited by sprite0
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...