Jump to content
  • 0

Question

Posted (edited)

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

4 answers to this question

Recommended Posts

Posted

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

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