Jump to content
  • 0

RA healer add duration?


manabeast

Question


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

Question 1 - What is code for adding duration for this npc? i want this npc have duration of 1 minit.

Question 2 - for change heal lv is percentheal 100,100;< ? Lv 1 = 10,10?

//===== rAthena Script =======================================
//= Healer
//===== By: ==================================================
//= rAthena Dev Team
//===== Current Version: =====================================
//= 3.2
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
//= Healer NPC Which Heals For Free
//===== Additional Comments: =================================
//=
//============================================================
- script healer -1,{
callfunc "F_ClearGarbage",0;
mes "[Healer]";
mes "I have amazing healing powers!!";
mes "You look like a person who needs them";
mes "Want some?";
next;
switch(select("Heal:No thanks")) {
case 1:
 percentheal 100,100;
 mes "[Healer]";
 mes "Wonderfull, You are now healed!.";
 mes "Have fun adventuring!!";
 break;
case 2:
 mes "[Healer]";
 mes "Alright, come back if you need a heal.";
 break;
}
close;
}

Edited by manabeast
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  268
  • Reputation:   27
  • Joined:  12/06/11
  • Last Seen:  

Q1 - Uh, I can't understand what you mean. What duration do you mean for a free healer NPC?

Q2 - It is not lvl it means 100% for HP and 100% for MP

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

Q1- mean ppl click on that npc. for free healing. after second time/second ppl click need wait 1 minit duration only can get heal again.

Q2- Thx ^^

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

Q1:

-	script	healer	-1,{
callfunc "F_ClearGarbage",0;
mes "[Healer]";
mes "I have amazing healing powers!!";
mes "You look like a person who needs them";
mes "Want some?";
next;
switch(select("Heal:No thanks")) {
case 1:
	mes "[Healer]";
	if ((@PC_LAST_HEAL_TIME +60) > gettimetick(2)) {
		mes "Please wait " + (@PC_LAST_HEAL_TIME +60 - gettimetick(2)) + " seconds.";
	} else {
		set @PC_LAST_HEAL_TIME, gettimetick(2);
		percentheal 100,100;
		mes "Wonderfull, You are now healed!.";
		mes "Have fun adventuring!!";
	}
	break;
case 2:
	mes "[Healer]";
	mes "Alright, come back if you need a heal.";
	break;
}
close;
}

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

thanks you brian. /thx

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