Jump to content
  • 0

Question

Posted

Using rAthena's healer script. Can someone change it to like this..


  • If player is below level 85. Player can use the healer for free without buffs and w/ 10 seconds delay.
  • If player is above level 85. Player can no longer use all the healer NPC's functions.

Thank you!


6 answers to this question

Recommended Posts

Posted (edited)

Thanks very much!


Can u make me another version though?

 

  • If player is below level 85. Player can use the healer for free without buffs and w/ 10 seconds delay.
  • If player is above level 85. Player can use the healer for an amount of zeny (with npc message advising the player about this) without buffs and w/ 10 seconds delay.
Edited by cassie24
Posted


if( BaseLevel > 85 ){

set .@Price,12345; // Zeny required for heal

}

else{

set .@Price,0; // Zeny required for heal

}

set .@Buffs,0; // Also buff players? (1: yes / 0: no)

set .@Delay,10; // Heal delay, in seconds

Posted

Thanks but again, how to make the npc have a message window advising players above lvl 85 about the price, emistry?


	if( BaseLevel > 85 ){
		set .@Price,12345;	// Zeny required for heal
	}
	else{
		set .@Price,0;	// Zeny required for heal
	}
	set .@Buffs,0;	// Also buff players? (1: yes / 0: no)
	set .@Delay,10;	// Heal delay, in seconds

 

Btw this doesnt work. I get free heal, my character is lv 98.


I tried lv 1 novice and 85+ character with this script http://pastebin.com/raw.php?i=BKvPigrv, the npc cant be clicked.


Done, tweaked it like this and it worked :D

-	script	Healer	-1,{

	if( BaseLevel < 85 ){
		set .@Price,0;	// Zeny required for heal
		set .@Buffs,0;	// Also buff players? (1: yes / 0: no)
		set .@Delay,10;	// Heal delay, in seconds
	}
	else{
    mes "[Healer]";
    mes "LOREM IPSUM ";
    mes " ";
    mes "LOREM IPSUM ";
    mes " ";
    mes "^777777Delay: 3 minutes^000000";
    next;
		set .@Price,30000;	// Zeny required for heal
		set .@Buffs,0;	// Also buff players? (1: yes / 0: no)
		set .@Delay,180000;	// Heal delay, in seconds
	}

	if( BaseLevel < 50 ){
    mes "[Healer]";
    mes " LOREM IPSUM ";
    mes " ";
    mes "^777777Delay: 10 secs^000000";
    next;
		set .@Price,0;	// Zeny required for heal
		set .@Buffs,1;	// Also buff players? (1: yes / 0: no)
		set .@Delay,10;	// Heal delay, in seconds
	}


	if (@HD > gettimetick(2)) end;
	if (.@Price) {
		message strcharinfo(0),"Healing costs "+callfunc("F_InsertComma",.@Price)+" Zeny.";
		if (Zeny < .@Price) end;
		if(select("^0055FFHeal^000000:^777777Cancel^000000") == 2) end;
		set Zeny, Zeny-.@Price;
	}
	specialeffect2 EF_HEAL2; percentheal 100,100;
	if (.@Buffs) {
		specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,240000,10;
		specialeffect2 EF_BLESSING; sc_start SC_BLESSING,240000,10;
	}
	if (.@Delay) set @HD, gettimetick(2)+.@Delay;
	end;
}

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