Jump to content
  • 0

R>Healer


myieee

Question


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  83
  • Reputation:   0
  • Joined:  12/07/11
  • Last Seen:  

Hi . i need a custom healer. when the players walk to the healer npc they will get healed and then if they want to heal again . they need to walk to the npc again. its just like areaheal thx. im using goddameit script but its kinda abused tho for PK Server even tho i adjust the delay time .. thanks in advance

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  92
  • Reputation:   17
  • Joined:  08/11/12
  • Last Seen:  

Hello myieee, how are you?

Let me see if I got what you want. Players will be able to heal only by touching the NPC area and not by clicking the NPC.
 

prontera,150,150,5	script	Healer	79,5,5,{
    end;

OnTouch:
if (@lastTick < gettimetick(2)) {
	set @lastTick, (gettimetick(2) + .delay * 60);
	percentheal 100, 100;
}
end;

OnInit:
	set .delay, 5; // delay in minutes
}

The above script is intended to heal 100% of  HP/SP once the players touch its area. There's a 5 minutes delay on each touch so you'll be protected from spams, adjust as needed.

I hope it works, good luck.

Edited by _Okuz_
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  715
  • Reputation:   83
  • Joined:  01/05/12
  • Last Seen:  

You can also use the default healer if you want

https://github.com/rathena/rathena/blob/master/npc/custom/healer.txt

 

Just edit the npc x y range
example:

prontera,162,193,4	duplicate(Healer)	Healer#prt	909,3,3
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  83
  • Reputation:   0
  • Joined:  12/07/11
  • Last Seen:  

Hello myieee, how are you?

Let me see if I got what you want. Players will be able to heal only by touching the NPC area and not by clicking the NPC.

 

prontera,150,150,5	script	Healer	79,5,5,{
    end;

OnTouch:
if (@lastTick < gettimetick(2)) {
	set @lastTick, (gettimetick(2) + .delay * 60);
	percentheal 100, 100;
}
end;

OnInit:
	set .delay, 5; // delay in minutes
}

The above script is intended to heal 100% of  HP/SP once the players touch its area. There's a 5 minutes delay on each touch so you'll be protected from spams, adjust as needed.

I hope it works, good luck.

hi thanks for the script btw im using eathena. okay when the player walk to healer npc they will be healed and when they want to heal be healed again they need to walk to heal npc again. so its not abuse on PK map . 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  92
  • Reputation:   17
  • Joined:  08/11/12
  • Last Seen:  

 

Hello myieee, how are you?

Let me see if I got what you want. Players will be able to heal only by touching the NPC area and not by clicking the NPC.

 

prontera,150,150,5	script	Healer	79,5,5,{
    end;

OnTouch:
if (@lastTick < gettimetick(2)) {
	set @lastTick, (gettimetick(2) + .delay * 60);
	percentheal 100, 100;
}
end;

OnInit:
	set .delay, 5; // delay in minutes
}

The above script is intended to heal 100% of  HP/SP once the players touch its area. There's a 5 minutes delay on each touch so you'll be protected from spams, adjust as needed.

I hope it works, good luck.

hi thanks for the script btw im using eathena. okay when the player walk to healer npc they will be healed and when they want to heal be healed again they need to walk to heal npc again. so its not abuse on PK map . 

 

Alright then! This NPC will heal players when they came within 5 cells of distance from her (Female Sprite). To be healed again players will need to get out the touching area and then came back again. Besides that, they need to wait 5 minutes of cooldown to be healed again. If you want to remove that cooldown, please set the .delay variable to 0.

Let me know if it works, please! Bye!

Edited by _Okuz_
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  83
  • Reputation:   0
  • Joined:  12/07/11
  • Last Seen:  

 

 

Hello myieee, how are you?

Let me see if I got what you want. Players will be able to heal only by touching the NPC area and not by clicking the NPC.

 

prontera,150,150,5	script	Healer	79,5,5,{
    end;

OnTouch:
if (@lastTick < gettimetick(2)) {
	set @lastTick, (gettimetick(2) + .delay * 60);
	percentheal 100, 100;
}
end;

OnInit:
	set .delay, 5; // delay in minutes
}

The above script is intended to heal 100% of  HP/SP once the players touch its area. There's a 5 minutes delay on each touch so you'll be protected from spams, adjust as needed.

I hope it works, good luck.

hi thanks for the script btw im using eathena. okay when the player walk to healer npc they will be healed and when they want to heal be healed again they need to walk to heal npc again. so its not abuse on PK map . 

 

Alright then! This NPC will heal players when they came within 5 cells of distance from her (Female Sprite). To be healed again players will need to get out the touching area and then came back again. Besides that, they need to wait 5 minutes of cooldown to be healed again. If you want to remove that cooldown, please set the .delay variable to 0.

Let me know if it works, please! Bye!

 

hi. thanks so much for the scripts and it works.. 

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