Jump to content
  • 0

Need help in NPC that detect nearby skill use


leechy

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  12/19/12
  • Last Seen:  

hi, im newbie looking for help :)Can anyone tell me is there a command script that can respond to a skill that used by a nearby player.

Example:

NPC1 will mes"hey there !!" when player1 use first aid skill near the NPC1.

Thanks in advance

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

kinda feel lazy to write a working script atm

but this is only possible to be done using OnPCUseSkillEvent

means need source modification

OnPCUseSkillEvent:

if ( @useskillid == <1st aid> ) {

getmapxy .@map$, .@x, .@y, 0;

if ( .@map$ == ... .@x > ... .@x < .. .@y > ... .@y < ... )

npctalk "hey there";

end;

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