prontera,130,190,0	script	Slayer	4_M_KY_HEAD,{
	if ( #slayer && slayer_1 == 0 && slayer_2 == 0 ) {
		mes "[Slayer]";
		mes "It looks like";
		mes "your other character";
		mes "applied for this mission";
		mes "already.";
		close();
	}	
	if (slayer_1) {
		if ( slayer_1 == 2) {
			mes "[Slayer]";
			mes "Hello there Undead Slayer.";
			mes "It's nice to see you again.";
			close();
		}	
		if (slayer_1m1 == 700 && slayer_1m2 == 350){
			announce "[System] "+strcharinfo(PC_NAME)+" has completed the Undead Slayer Quest and has been rewarded accordingly",0;
			mes "[Slayer]";
			mes "Very well.";
			mes "Here is your awsome reward";
			slayer_1 = 2;
			getitembound(20199,1,4);
			getitembound(5654,1,4);  
			close();
		} else {
			mes "[Slayer]";
			mes "Welcome back.";
			mes "Here is your progress";
			mes "so far.";
			mes "   "+slayer_1m1+" / 700 "+CStr("Ghoul","RED");
			mes "   "+slayer_1m2+" / 350 "+CStr("Evil Druid","RED");
			close();
		}
	} else if (slayer_2) {
		if ( slayer_2 == 2) {
			mes "[Slayer]";
			mes "Hello there Dragon Slayer.";
			mes "It's nice to see you again.";
			close();
		}	
		if (slayer_2m1 == 700 && slayer_2m2 == 700){
			announce "[System] "+strcharinfo(PC_NAME)+" has completed the Dragon Slayer Quest and has been rewarded accordingly",0;
			mes "[Slayer]";
			mes "Very well.";
			mes "Here is your awsome reward";
			slayer_2 = 2;
			getitembound(20081,1,4);
			getitembound(5467,1,4); 
			close();
		} else {
			mes "[Slayer]";
			mes "Welcome back.";
			mes "Here is your progress";
			mes "so far.";
			mes "   "+slayer_2m1+" / 700 "+CStr("Earth Petite","RED");
			mes "   "+slayer_2m2+" / 700 "+CStr("Sky Petite","RED");
			close();
		}
	} else {
		if (BaseLevel < 75 ) {
			mes "[Slayer]";	
			mes "I don't think you are";
			mes "strong enough for this quest.";
			close();
		}
		if (Class == Job_Priest){ .@slayer=1; } else { .@slayer=2; }		
		mes "[Slayer]";
		mes "Ah...";
		mes "I know those eyes.";
		mes "Full of compassion";
		mes "...and courage.";
		next;
		mes "[Slayer]";
		mes "Of course you're a volunteer";
		mes "for campaign to reclaim Midgard.";
		mes CStr("Would you like to join the mission?","RED");
		next;
		switch(select(
			((.@slayer==2)?":":" > "+CStr("Undead Slayer","GREEN")+":")+
			((.@slayer==1)?":":" > "+CStr("Dragon Slayer","GREEN")+":")+
			" > ^777777Close^000000"
		)) {
		case 1:
			mes "[Slayer]";
			mes "In this mission";
			mes "you are asked to kill:";
			mes "   x700 "+CStr("Ghoul","RED");
			mes "   x350 "+CStr("Evil Druid","RED");
			mes "Reward: "+CStr("(Not Tradable)","RED");	
			if (#mobile) {
				mes CStr("1x Costume Evil Marching Hat","GREEN");
				mes CStr("1x Holy Marching Hat","GREEN");
			} else {
				mes "   "+CStr(Itemlink("1x "+C_Evil_Marching_Hat),"BLUE");
				mes "   "+CStr(Itemlink("1x "+Holy_Marching_Hat_J),"BLUE");
			}
			mes "Note:";
			mes "- Party kill will not count. So you will have to kill it by yourself.";
			mes "- You can only do this 1 time in this account. Your other character will not be able to do this quest when you accept this mission.";
			mes "-";
			mes CStr("Would you like to accept mission?","RED");
			next;
			if (select("No. I can't do that","Yes. I accept the mission") == 2) {
				mes "[Slayer]";
				mes "Okay. Good luck.";
				mes "Report to me when";
				mes "you are done.";
				#slayer = 1;
				slayer_1 = 1;
				close();	
			}
			mes "[Slayer]";
			mes "Okay no problem at all.";			
			close;
		case 2:
			mes "[Slayer]";
			mes "In this mission";
			mes "you are asked to kill:";
			mes "   x700 "+CStr("Earth Petite","RED");
			mes "   x700 "+CStr("Sky Petite","RED");
			mes "Reward: "+CStr("(Not Tradable)","RED");
			if (#mobile) {
				mes CStr("1x Costume Metal Dragon Helm","GREEN");
				mes CStr("1x Dragon Helm [1]","GREEN");
			} else {
				mes "   "+CStr("1x "+Itemlink(C_Metal_Dragon_Helm),"BLUE");
				mes "   "+CStr("1x "+Itemlink(Helm_Of_Dragoon)+"[1]","BLUE");
			}
			mes "Note:";
			mes "- Party kill will not count. So you will have to kill it by yourself.";
			mes "- You can only do this 1 time in this account. Your other character will not be able to do this quest when you accept this mission.";
			mes "-";
			mes CStr("Would you like to accept mission?","RED");
			next;
			if (select("No. I can't do that","Yes. I accept the mission") == 2) {
				mes "[Slayer]";
				mes "Okay. Good luck.";
				mes "Report to me when";
				mes "you are done.";
				#slayer = 1;
				slayer_2 = 1;
				close();	
			}
			mes "[Slayer]";
			mes "Okay no problem at all.";			
			close;
		case 3:
			mes "[Slayer]";
			close;
		}
	}
OnNPCKillEvent:
	// Evil Slayer	
	if (slayer_1 && strmobinfo(1,killedrid) == strmobinfo(1,1036)) {
		if (slayer_1m1 < 700) {
			slayer_1m1++;
			dispbottom "[Slayer Mission] Killed "+slayer_1m1+" / 700 "+strmobinfo(1,killedrid)+".";
			end;
		}
	}
	if (slayer_1 && strmobinfo(1,killedrid) == strmobinfo(1,1117) ) {
		if (slayer_1m2 < 350) {
			slayer_1m2++;
			dispbottom "[Slayer Mission] Killed "+slayer_1m2+" / 350 "+strmobinfo(1,killedrid)+".";
			end;
		}
	}

	// Dragon Slayer
	if (slayer_2 && strmobinfo(1,killedrid) == strmobinfo(1,1155)) {
		if (slayer_2m1 < 700) {
			slayer_2m1++;
			dispbottom "[Slayer Mission] Killed "+slayer_2m1+" / 700 "+strmobinfo(1,killedrid)+".";
			end;
		}	
	} 
	if (slayer_2 && strmobinfo(1,killedrid) == strmobinfo(1,1156)) {
		if (slayer_2m2 < 700) {
			slayer_2m2++;
			dispbottom "[Slayer Mission] Killed "+slayer_2m2+" / 700 "+strmobinfo(1,killedrid)+".";
			end;
		}
	}
	end;
}


