Jump to content
  • 0

Heal zone


Unknown

Question


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

would someone be so good as to provide me with a 5x5 cells healer that works without having to click it?

It's like a Heal zone, but most important, if your HP and SP are full, when entering the heal zone the npc will say: You don't need me.

- If only HP are full -> recovers sp and displays a blue effect
- If only SP are full -> recovers hp and displays a green effect
- If HP and SP are not full -> displays another effect.


thanks! and plz, answer q.q

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   16
  • Joined:  12/19/13
  • Last Seen:  

Hi
 
1.-This uses only.
prontera,155,313,5 script Healer#h1-1::Healer 742,5,5,{
percentheal 100,100;

OnTouch:
percentheal 100,100;
skilleffect 28,100;
}

2.- If undo that it announces and name of the one who recovers his life uses this

prontera,155,313,5	script	Healer#h1-1::Healer	742,5,5,{
percentheal 100,100;

OnTouch:
percentheal 100,100;
if (Sex==0) npctalk "Very well Girl"+strcharinfo(0)+"Already these treated, what have a good day";
if (Sex==1) npctalk "Very well Child"+strcharinfo(0)+"Already these treated, what have a good day";
skilleffect 28,100;
}

Link to comment
Share on other sites


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

Hi

 

I think you have the right idea but maybe like this?

prontera,155,313,5	script	Box_Healer	742,5,5,{
end; // <-- Remove this line if you want clicking the npc to work as well.

	OnTouch:
		if( MaxHp == Hp && MaxSp == Sp )
			npctalk "You don't need me.";
		if( MaxHp != Hp ) {
			itemheal MaxHp, 0;
			specialeffect2 209;
		}
		if( MaxSp != Sp ) {
			itemheal 0, MaxSp;
			specialeffect2 208;
		}

}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   16
  • Joined:  12/19/13
  • Last Seen:  

 

Hi

 

I think you have the right idea but maybe like this?

prontera,155,313,5	script	Box_Healer	742,5,5,{
end; // <-- Remove this line if you want clicking the npc to work as well.

	OnTouch:
		if( MaxHp == Hp && MaxSp == Sp )
			npctalk "You don't need me.";
		if( MaxHp != Hp ) {
			itemheal MaxHp, 0;
			specialeffect2 209;
		}
		if( MaxSp != Sp ) {
			itemheal 0, MaxSp;
			specialeffect2 208;
		}

}

 

Only in the .txt leave it this way, It is not necessary to give "click" in the NPC, It is not necessary to give "click" in the NPC,

prontera,155,313,5 script Healer#h1-1::Healer 742,5,5,{
percentheal 100,100;

OnTouch:
percentheal 100,100;
skilleffect 28,100;
}

Anyhow it proves 2 options 

ejejeje

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