Jump to content
  • 0

Customized Healer NPC


cassie24

Question


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  04/25/14
  • Last Seen:  

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!


Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  04/25/14
  • Last Seen:  

Thanks but how to make the npc have a message window advising players above lvl 85 that they are already excluded for the npc functions?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


if( BaseLevel > 85 ){

mes "I dont heal if level above 85!";

close;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  04/25/14
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  04/25/14
  • Last Seen:  

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