Jump to content
  • 0

script request masters help


Question

13 answers to this question

Recommended Posts

Posted

 

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 );
}
Posted (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 by joelolopez
Posted

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 );
}
Posted (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 by joelolopez
Posted

 

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 );
}

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...