joelolopez Posted September 14, 2014 Posted September 14, 2014 i would like to have a script that will heal all players within a specific range all players who doesnt have 100% hp will be healed within the npc range Quote
Capuche Posted September 14, 2014 Posted September 14, 2014 izlude,100,100,4 script Test 844,5,5,{ percentheal 100,100; end; } heal from 5x5 around the npc Quote
joelolopez Posted September 14, 2014 Author Posted September 14, 2014 izlude,100,100,4 script Test 844,5,5,{ percentheal 100,100; end; } heal from 5x5 around the npc sir i forgot , the npc automatically heal a character whos hp is not 100% Quote
Capuche Posted September 14, 2014 Posted September 14, 2014 the npc automatically heal a character whos hp is not 100% it does Quote
joelolopez Posted September 14, 2014 Author Posted September 14, 2014 the npc automatically heal a character whos hp is not 100% it does the npc should heal the character w/o clicking them , kind of auto detection Quote
Skorm Posted September 18, 2014 Posted September 18, 2014 the npc should heal the character w/o clicking them , kind of auto detection Maybe you wanted it area restricted?... izlude,100,100,4 script Test 844,5,5,{ getmapxy( .@map$, .@x, .@y, 0 ); if( distance( .x, .y, .@x, .@y ) <= 5 ) percentheal 100,100; else dispbottom "Come closer for heal."; end; OnInit: getmapxy( .@map$, .x, .y, 1 ); } Quote
joelolopez Posted September 19, 2014 Author Posted September 19, 2014 (edited) the npc should heal the character w/o clicking them , kind of auto detection Maybe you wanted it area restricted?... izlude,100,100,4 script Test 844,5,5,{ getmapxy( .@map$, .@x, .@y, 0 ); if( distance( .x, .y, .@x, .@y ) <= 5 ) percentheal 100,100; else dispbottom "Come closer for heal."; end; OnInit: getmapxy( .@map$, .x, .y, 1 ); } sir skorm how about a condition that only the players who doesnt have 100% hp will be healed within the range, characters with full hp wont receive some healing Edited September 19, 2014 by joelolopez Quote
Unknown Posted September 19, 2014 Posted September 19, 2014 I think he wants something like if (playerhp == 100%) { end; } Quote
Skorm Posted September 19, 2014 Posted September 19, 2014 sir skorm how about a condition that only the players who doesnt have 100% hp will be healed within the range, characters with full hp wont receive some healing izlude,100,100,4 script Test 844,5,5,{ getmapxy( .@map$, .@x, .@y, 0 ); if( distance( .x, .y, .@x, .@y ) <= 5 ) if( hp != maxhp ) percentheal 100,100; else dispbottom "Come closer for heal."; end; OnInit: getmapxy( .@map$, .x, .y, 1 ); } Quote
joelolopez Posted September 19, 2014 Author Posted September 19, 2014 (edited) sir skorm how about a condition that only the players who doesnt have 100% hp will be healed within the range, characters with full hp wont receive some healing izlude,100,100,4 script Test 844,5,5,{ getmapxy( .@map$, .@x, .@y, 0 ); if( distance( .x, .y, .@x, .@y ) <= 5 ) if( hp != maxhp ) percentheal 100,100; else dispbottom "Come closer for heal."; end; OnInit: getmapxy( .@map$, .x, .y, 1 ); } its not working for me, sir skorm, did u try it? Edited September 19, 2014 by joelolopez Quote
Skorm Posted September 19, 2014 Posted September 19, 2014 its not working for me, sir skorm, did u try it? yeah it worked fine for me the message was a little offset but that doesn't matter... izlude,100,100,4 script Test 844,5,5,{ getmapxy( .@map$, .@x, .@y, 0 ); if( distance( .x, .y, .@x, .@y ) <= 5 ) if( hp != maxhp ) percentheal 100,100; end; OnInit: getmapxy( .@map$, .x, .y, 1 ); } Quote
Colly Posted September 19, 2014 Posted September 19, 2014 you can try this also http://pastebin.com/5r6TChTW Quote
Unknown Posted September 21, 2014 Posted September 21, 2014 is there a way to check if the players hp are full, so that the npc won't heal them? Quote
Question
joelolopez
i would like to have a script that will heal all players within a specific range
all players who doesnt have 100% hp will be healed within the npc range
13 answers 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.