Jump to content
  • 0

bind @ command to call NPC


Sergardo

Question


  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.02
  • Content Count:  148
  • Reputation:   0
  • Joined:  03/06/15
  • Last Seen:  

I want to call an NPC using bindatcommand function. Example NPC 1. when i type @npc1, i can access the NPC1 (Stylist) 

 

you can access the NPC Anywhere in the server by a command. But the same time, the NPC also exist in server.

 
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

-	script	npc_example	-1,{
OnCommand: //Add event on the start of your npc
	mes "I'm the Example.";
end;

OnInit:
	bindatcmd "npc1",strnpcinfo(3) + "::OnCommand";
end;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.02
  • Content Count:  148
  • Reputation:   0
  • Joined:  03/06/15
  • Last Seen:  

6 hours ago, crazyarashi said:

-	script	npc_example	-1,{
OnCommand: //Add event on the start of your npc
	mes "I'm the Example.";
end;

OnInit:
	bindatcmd "npc1",strnpcinfo(3) + "::OnCommand";
end;
}

 

thx ,  but example i need  is  i want to call my stylist npc  when @style   

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  477
  • Reputation:   269
  • Joined:  06/13/17
  • Last Seen:  

you should atleast throw your stylist script on a code box.

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