Jump to content
  • 0

script request masters help


joelolopez

Question


  • Group:  Members
  • Topic Count:  154
  • Topics Per Day:  0.03
  • Content Count:  493
  • Reputation:   46
  • Joined:  01/24/12
  • Last Seen:  

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


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

izlude,100,100,4	script	Test	844,5,5,{
	percentheal 100,100;
	end;
}

heal from 5x5 around the npc

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  154
  • Topics Per Day:  0.03
  • Content Count:  493
  • Reputation:   46
  • Joined:  01/24/12
  • Last Seen:  

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%

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

 

the npc automatically heal a character whos hp is not 100%

it does

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  154
  • Topics Per Day:  0.03
  • Content Count:  493
  • Reputation:   46
  • Joined:  01/24/12
  • Last Seen:  

 

 

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

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

it already heal without click /no1

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

 

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 );
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  154
  • Topics Per Day:  0.03
  • Content Count:  493
  • Reputation:   46
  • Joined:  01/24/12
  • Last Seen:  

 

 

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 by joelolopez
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  109
  • Reputation:   1
  • Joined:  09/07/12
  • Last Seen:  

I think he wants something like if (playerhp == 100%) { end; }

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

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 );
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  154
  • Topics Per Day:  0.03
  • Content Count:  493
  • Reputation:   46
  • Joined:  01/24/12
  • Last Seen:  

 

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 by joelolopez
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

 

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 );
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  109
  • Reputation:   1
  • Joined:  09/07/12
  • Last Seen:  

is there a way to check if the players hp are full, so that the npc won't heal them?

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