joelolopez Posted September 14, 2014 Group: Members Topic Count: 154 Topics Per Day: 0.03 Content Count: 493 Reputation: 46 Joined: 01/24/12 Last Seen: August 25, 2022 Share 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 Link to comment Share on other sites More sharing options...
Capuche Posted September 14, 2014 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted September 14, 2014 izlude,100,100,4 script Test 844,5,5,{ percentheal 100,100; end; } heal from 5x5 around the npc Quote Link to comment Share on other sites More sharing options...
joelolopez Posted September 14, 2014 Group: Members Topic Count: 154 Topics Per Day: 0.03 Content Count: 493 Reputation: 46 Joined: 01/24/12 Last Seen: August 25, 2022 Author Share 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 Link to comment Share on other sites More sharing options...
Capuche Posted September 14, 2014 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted September 14, 2014 the npc automatically heal a character whos hp is not 100% it does Quote Link to comment Share on other sites More sharing options...
joelolopez Posted September 14, 2014 Group: Members Topic Count: 154 Topics Per Day: 0.03 Content Count: 493 Reputation: 46 Joined: 01/24/12 Last Seen: August 25, 2022 Author Share 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 Link to comment Share on other sites More sharing options...
Capuche Posted September 17, 2014 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted September 17, 2014 it already heal without click Quote Link to comment Share on other sites More sharing options...
Skorm Posted September 18, 2014 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share 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 Link to comment Share on other sites More sharing options...
joelolopez Posted September 19, 2014 Group: Members Topic Count: 154 Topics Per Day: 0.03 Content Count: 493 Reputation: 46 Joined: 01/24/12 Last Seen: August 25, 2022 Author Share 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 Link to comment Share on other sites More sharing options...
Unknown Posted September 19, 2014 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 109 Reputation: 2 Joined: 09/07/12 Last Seen: October 21, 2016 Share Posted September 19, 2014 I think he wants something like if (playerhp == 100%) { end; } Quote Link to comment Share on other sites More sharing options...
Skorm Posted September 19, 2014 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share 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 Link to comment Share on other sites More sharing options...
joelolopez Posted September 19, 2014 Group: Members Topic Count: 154 Topics Per Day: 0.03 Content Count: 493 Reputation: 46 Joined: 01/24/12 Last Seen: August 25, 2022 Author Share 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 Link to comment Share on other sites More sharing options...
Skorm Posted September 19, 2014 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share 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 Link to comment Share on other sites More sharing options...
Colly Posted September 19, 2014 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 3 Reputation: 0 Joined: 09/18/14 Last Seen: September 29, 2016 Share Posted September 19, 2014 you can try this also http://pastebin.com/5r6TChTW Quote Link to comment Share on other sites More sharing options...
Unknown Posted September 21, 2014 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 109 Reputation: 2 Joined: 09/07/12 Last Seen: October 21, 2016 Share 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 Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
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.