caspa Posted June 8, 2013 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Share Posted June 8, 2013 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? Quote Link to comment Share on other sites More sharing options...
QQfoolsorellina Posted June 8, 2013 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 587 Reputation: 105 Joined: 11/19/11 Last Seen: July 7, 2019 Share Posted June 8, 2013 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; } 2 Quote Link to comment Share on other sites More sharing options...
Question
caspa
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.