Jump to content
  • 0

How i can make a command


Dynasty

Question


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  151
  • Reputation:   5
  • Joined:  11/09/12
  • Last Seen:  

Hello~...

 

How I make an NPC is activated every time you put this command (@ action) Custom command

 

This is all..

Edited by Dynasty
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

-	script	atcmd_example	-1,{
OnInit: bindatcmd "action","clydelion::OnCommand"; end;
}

prontera,111,222,3	script	clydelion	123,{
OnCommand:
	mes "Hi.";
	close;
}

 

 

@action will trigger NPC clydelion

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  151
  • Reputation:   5
  • Joined:  11/09/12
  • Last Seen:  

But i dont have to do anything else? Scr? or something like that? i haven't make the command in atcommand.c in the scr?

Edited by Dynasty
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

But i dont have to do anything else? Scr? or something like that? i haven't make the command in atcommand.c in the scr?

You don't need to touch the source with this NPC command (if you use rathena)

This command will bind a NPC event label to an atcommand.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  151
  • Reputation:   5
  • Joined:  11/09/12
  • Last Seen:  

OOOOOOOOOH! ok ok ok, Thk!

 

Solved C:

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...