//===== Hercules Script ======================================
//= Reset NPC
//===== By: ==================================================
//= Hercules Dev Team
//===== Current Version: =====================================
//= 1.3
//===== Description: =========================================
//= Resets skills, stats, or both.
//===== Additional Comments: =================================
//= 1.0 First Version
//= 1.1 Optimized for the greater good. [Kisuka]
//= 1.2 Cleaning [Euphy]
//= 1.3 All statuses removed upon skill reset. [Euphy]
//============================================================

//@unloadnpc Reset#NYR18
//@loadnpc npc/thor/events/NYR18.txt

office,132,29,2	script	Reset#NYR18	4_M_SANTA,{


	if(#NYR18) { 
		mes "[Santa]";
		mes "Sorry, this account already availed the ^FF3355FREE^000000 reset.";
		close;
	}
	mes "[Santa]";
	mes "Good Day!!!";
	mes "This is now your chance to correct your ^FF3355Skill^000000 and ^FF3355Stats^000000. It's ^FF3355FREE^000000 but its ^FF3355LIMITED^000000";
	mes "~ FREE RESET is granted to one (1) of your character in every account only.  I am available from 1AM - 2AM today.";
	mes "Do you wish to RESET this character?";
	next;
	switch(select("Stat Reset", "Skill Reset", "Cancel")) {
	case 1:
		if(#NYR18ST){
			mes "[Santa]";
			mes "You already used this service.";
			close;
		}
		mes "[Santa]";
		mes "There you go!";
		specialeffect(EF_ANGEL, AREA, playerattached());
		#NYR18ST=1;
		sc_end SC_ALL;
		resetstatus;
		close;
	case 2:

		if(#NYR18SK){
			mes "[Santa]";
			mes "You already used this service.";
			close;
		}	
		if(!#NYR18ST){
			mes "[Santa]";
			mes "Do the STAT RESET before SKILL RESET.";
			close;
		}
		if( StatusPoint > 2 ) {
			mes "[Santa]";
			mes "I can see that your have ^FF3355"+StatusPoint+"^000000 Stat Points remaining. Please distribute your status points and come back to me. Yes, ^FF33552^000000 status points remaining is also acceptable.";
			close;
		}
		if (checkcart() || checkfalcon() || checkmount()) {
			mes "[Santa]";
			mes "Oh! Please remove your ^FF3355PUSHCART^000000, ^FF3355PECOPECO^000000 or ^FF3355FALCON^000000 before proceeding with the SKILL RESET.";
			close;
		}
		mes "[Santa]";
		mes "There you go!";
		specialeffect(EF_ANGEL, AREA, playerattached());
		#NYR18SK=1;
		#NYR18=1;
		sc_end SC_ALL;
		resetskill;
		close;
	case 3:
		mes "[Santa]";
		mes "Ok, comeback when you are ready";
		close;
	}
}
