Jump to content
  • 0

when say a specific word to the area


caspa

Question


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

can i request an npc that when a person is 5 - 10 cell away from him and say the word 'heal' the npc will heal him?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

prontera,155,188,0    script    asdf    910,{

close;
    
OnHeal:
    getmapxy(.@nm$,.@nx,.@ny,1);
    getmapxy(.@pm$,.@px,.@py,0);
        set .@d,distance( .@px, .@py, .@nx, .@ny);
    if(.@d>=5 && .@d<=10 ){
        percentheal 100,100;
        specialeffect2 EF_HEAL;
    }
      
 end;

OnInit:
    defpattern 1, "([^:]+):.*\\sheal.*", "OnHeal";
    activatepset 1;          
end;
}
  • Upvote 2
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...