office,125,38,4	script	Reset Guru#2	4_M_OLDFRIAR,{
	if(questprogress(31001) == 1 && countitem(30102) > 0 ) {
		cutin "ins_cata_pri_n",2;
		mes .npc$;
		mes "How are you doing ^003366"+strcharinfo(PC_NAME)+"^000000? Have you made a mistake in your stats or skill? Or do you want to try out different specialization? Not a problem! I'm the person for you!.";
		next;
		mes .npc$;
		mes "For a small fee, I can reset both your stats, your skills, or both - all so you can build them up again from scratch as you like it.  This way you can explore the range of possibilities and find that one build that's perfect for you!";
		mes "Come back to me any time you like in your adventure and i'll take it from there!";
		nov_train1++;
		nov_train_re = 1;
		switch (BaseLevel){
			case 1: getexp 9,0; break;
			case 2: getexp 16,0; break;
			case 3: getexp 25,0; break;
			case 4: getexp 36,0; break;
			case 5: getexp 77,0; break;
			case 6: getexp 112,0; break;
			case 7: getexp 153,0; break;
			case 8: getexp 200,0; break;
			case 9: getexp 253,0; break;
			case 10: getexp 320,0; break;
			case 11: getexp 385,0; break;
			case 12: getexp 490,0; break;
			case 13: getexp 585,0; break;
			case 14: getexp 700,0; break;
			case 15: getexp 830,0; break;
			case 16: getexp 970,0; break;
			case 17: getexp 1120,0; break;
			case 18: getexp 1260,0; break;
			case 19: getexp 1420,0; break;
		}	
		delitem 30102,countitem(30102);
		if(nov_train1 == 6){
			next;
			mes .npc$;
			mes "Go back and talk to ^ff0000Percy^000000 now, I bet she will be happy that you learned so many NPC at this room already.";
			completequest(31001);
			setquest(31002);
			cutin "",255;
			close;
		}
		cutin "",255;
		close;			
	}
	cutin "ins_cata_pri_n",2;	
	mes .npc$;
	mes "For a small fee, I can reset both your stats, your skills, or both - all so you can build them up again from scratch as you like it.  This way you can explore the range of possibilities and find that one build that's perfect for you!";
	next;
	switch(select("Reset Skill", "Reset Stats", "Reset Both", "Cancel" )) {	
	case 1:
		mes .npc$;
		mes "There you go!";
		specialeffect(EF_ANGEL, AREA, playerattached());
		specialeffect(EF_TRUESIGHT, AREA, playerattached());
		sc_end SC_ALL;
		resetskill;
		cutin "",255;
		close();
	case 2:
		mes .npc$;
		mes "There you go!";
		specialeffect(EF_ANGEL, AREA, playerattached());
		specialeffect(EF_TRUESIGHT, AREA, playerattached());
		sc_end SC_ALL;
		resetstatus;
		cutin "",255;
		close();
	case 3:
		mes .npc$;
		mes "There you go!";
		specialeffect(EF_ANGEL, AREA, playerattached());
		specialeffect(EF_TRUESIGHT, AREA, playerattached());
		sc_end SC_ALL;
		resetskill;
		resetstatus;
		cutin "",255;
		close();
	default: 
		mes .npc$;
		mes "Ok, comeback when you need me.";
		cutin "",255;
		close();
	}

OnInit:
	.npc$ = "[ ^FF3355Reset Guru^000000 ]";
	questinfo(QTYPE_JOB, 1);
	setquestinfo(QINFO_JOB, Job_Novice);
	setquestinfo(QINFO_QUEST, 31001, 1);
	setquestinfo(QINFO_ITEM, 30102, 1,1);
	end;		
}
