<commit_before>//===== Hercules Script ======================================
//= Eden Group Quests - Mission [56 - 70]
//===== By: ==================================================
//= L0ne_W0lf
//===== Current Version: =====================================
//= 2.0
//===== Description: =========================================
//= Repetable Quests for Players between Baselevel 56 - 70.
//===== Additional Comments: =================================
//= 1.0 First Version.
//= 1.1 Some little optimization here and there. [Masao]
//= 1.2 Added checkquest confirmation for -1. [Euphy]
//= 1.3 Fixed Puppet Master's Agony Quest (12217 -> 3259). [Joseph]
//= 1.4 Fixed invalid check (Magic Wand Quest). [Joseph]
//= 2.0 Optimised [Zopokx]
//============================================================

moc_para01,42,38,3	script	Mission [56 - 70]	857,{
	if (countitem(6219) < 1) {
		mes "To get these missions, I need to Join the Eden Group first. I must find Secretary Lime Evenor and become a member.";
		close;
	}
	if ((BaseLevel < 56) && (BaseLevel > 70)) {
		mes "These missions are not fit for my level. I should look for other missions.";
		close;
	}
	mes "Here is the list of various adventures for level 56~70 adventurers.";
	next;
	mes "Lots of missions such as a Monster Hunting, Delivery Goods, Finding People.";
	next;
	switch (select("Mission Numbers 1~5:Mission Numbers 6~10:Mission Numbers 11~15")) {
		case 1:
			switch (select("What is this Bandage?:Dangerous Alligators.:That wasn't a mermaid...:My country is calling me!")) {
				case 1: callsub L_HuntingQuest,3250,15000,5000,930,20; break;
				case 2: callsub L_HuntingQuest,3251,16000,6000; break;
				case 3: callsub L_HuntingQuest,3252,17000,8000; break;
				case 4: callsub L_Quest,3254,18000,8000,7043,10,1056,30; break;
			}
			break;
		case 2:
			switch (select("Hunt Wild Boar:Preparing the Summer:A Woman's Grudge:Special ingredients:Puppet Master's Agony")) {
				case 1: callsub L_HuntingQuest,3255,16000,7000; break;
				case 2: callsub L_Quest,3256,15000,5000,918,30; break;
				case 3: callsub L_HuntingQuest,3257,17000,8000; break;
				case 4: callsub L_Quest,3258,16000,7000,7198,40; break;
				case 5: callsub L_HuntingQuest,3259,17000,7000,1060,30; break;
			}
			break;
		case 3:
			switch (select("Tiresome Flies:Dangerous Munak:Make the World green:Magic Wand")) {
				case 1: callsub L_HuntingQuest,3260,16000,6000; break;
				case 2: callsub L_HuntingQuest,3261,16000,7000; break;
				case 3: callsub L_Quest,3262,17000,7000,1032,40; break;
				case 4: callsub L_Quest,3263,18000,8000,1021,30,7150,30; break;
			}
			break;
	}
	close;

L_Quest:
	if (checkquest(getarg(0)) <= 0) {
		callsub L_CheckDetails, getarg(0);
		mes " ";
		next;
		mes "Would you like to accept this mission?";
		next;
		if(select("Accept the mission.:Do not accept the mission.") == 2) {
			setquest getarg(0);
			mes "I have successfully accepted the mission. I have to come back and confirm my work after I complete the mission.";
			next;
			mes "This mission doesn't have time limits.";
		}
	}
	else if ((checkquest(getarg(0)) == 1) && (countitem(getarg(3)) < getarg(4)) && (countitem(getarg(5,0)) < getarg(6,1))){
		mes "You have an on-going mission. Would you like to check the details?";
		next;
		if(select("Check the details.:Cancel.") == 2) { close; }
		callsub L_CheckDetails, getarg(0);
	}
	else if ((checkquest(getarg(0)) == 1) && (countitem(getarg(3)) >= getarg(4)) && (countitem(getarg(5,0)) >= getarg(6,0))){
		mes "I have done pretty well for the mission. Should I report it now?";
		next;
		if(select("Report the mission.:Do not report it yet.") == 2) { close; }
		delitem getarg(3),getarg(4);
		if (getarg(5,0) > 0) { delitem getarg(5),getarg(6); }
		getexp getarg(1),getarg(2);
		erasequest getarg(0);
		mes "You have completed the mission. Get rewards.";
	}
	close;

L_HuntingQuest:
	if (checkquest(getarg(0)) <= 0) {
		callsub L_CheckDetails, getarg(0);
		mes " ";
		next;
		mes "Would you like to accept this mission?";
		next;
		if(select("Accept the mission.:Do not accept the mission.") == 2) {
			setquest getarg(0);
			mes "I have successfully accepted the mission. I have to come back and confirm my work after I complete the mission.";
			next;
			mes "This mission doesn't have time limits.";
		}
	}
	else if (checkquest(getarg(0),HUNTING) == 1) {
		mes "You have an on-going mission. Would you like to check the details?";
		next;
		if(select("Check the details.:Cancel.") == 2) { close; }
		callsub L_CheckDetails, getarg(0);
	}
	else if (checkquest(getarg(0),HUNTING) == 2) {
		if (getarg(3,0)){
			if (countitem(getarg(3)) < getarg(4)) {
				mes "I don't have enough "+getitemname(getarg(3))+".";
				mes "I need to gather "+getarg(4)+" "+getitemname(getarg(3))+" to complete this mission.";
				close;
			}
		}
		mes "I have done pretty well for the mission. Should I report it now?";
		next;<commit_msg>Thanks to Euphy for pointing out a problem with the level check that shouldn't be at beginning of the script.<commit_after>//===== Hercules Script ======================================
//= Eden Group Quests - Mission [56 - 70]
//===== By: ==================================================
//= L0ne_W0lf
//===== Current Version: =====================================
//= 2.0
//===== Description: =========================================
//= Repetable Quests for Players between Baselevel 56 - 70.
//===== Additional Comments: =================================
//= 1.0 First Version.
//= 1.1 Some little optimization here and there. [Masao]
//= 1.2 Added checkquest confirmation for -1. [Euphy]
//= 1.3 Fixed Puppet Master's Agony Quest (12217 -> 3259). [Joseph]
//= 1.4 Fixed invalid check (Magic Wand Quest). [Joseph]
//= 2.0 Optimised [Zopokx]
//============================================================

moc_para01,42,38,3	script	Mission [56 - 70]	857,{
	if (countitem(6219) < 1) {
		mes "To get these missions, I need to Join the Eden Group first. I must find Secretary Lime Evenor and become a member.";
		close;
	}
	mes "Here is the list of various adventures for level 56~70 adventurers.";
	next;
	mes "Lots of missions such as a Monster Hunting, Delivery Goods, Finding People.";
	next;
	switch (select("Mission Numbers 1~5:Mission Numbers 6~10:Mission Numbers 11~15")) {
		case 1:
			switch (select("What is this Bandage?:Dangerous Alligators.:That wasn't a mermaid...:My country is calling me!")) {
				case 1: callsub L_HuntingQuest,3250,15000,5000,930,20; break;
				case 2: callsub L_HuntingQuest,3251,16000,6000; break;
				case 3: callsub L_HuntingQuest,3252,17000,8000; break;
				case 4: callsub L_Quest,3254,18000,8000,7043,10,1056,30; break;
			}
			break;
		case 2:
			switch (select("Hunt Wild Boar:Preparing the Summer:A Woman's Grudge:Special ingredients:Puppet Master's Agony")) {
				case 1: callsub L_HuntingQuest,3255,16000,7000; break;
				case 2: callsub L_Quest,3256,15000,5000,918,30; break;
				case 3: callsub L_HuntingQuest,3257,17000,8000; break;
				case 4: callsub L_Quest,3258,16000,7000,7198,40; break;
				case 5: callsub L_HuntingQuest,3259,17000,7000,1060,30; break;
			}
			break;
		case 3:
			switch (select("Tiresome Flies:Dangerous Munak:Make the World green:Magic Wand")) {
				case 1: callsub L_HuntingQuest,3260,16000,6000; break;
				case 2: callsub L_HuntingQuest,3261,16000,7000; break;
				case 3: callsub L_Quest,3262,17000,7000,1032,40; break;
				case 4: callsub L_Quest,3263,18000,8000,1021,30,7150,30; break;
			}
			break;
	}
	close;

L_Quest:
	if (checkquest(getarg(0)) <= 0) {
		callsub L_CheckDetails, getarg(0);
		mes " ";
		next;
		mes "Would you like to accept this mission?";
		next;
		if(select("Accept the mission.:Do not accept the mission.") == 2) {
			if ((BaseLevel < 56) && (BaseLevel > 70)) {
				mes "These missions are not fit for my level. I should look for other missions.";
				close;
			}
			setquest getarg(0);
			mes "I have successfully accepted the mission. I have to come back and confirm my work after I complete the mission.";
			next;
			mes "This mission doesn't have time limits.";
		}
	}
	else if ((checkquest(getarg(0)) == 1) && (countitem(getarg(3)) < getarg(4)) && (countitem(getarg(5,0)) < getarg(6,1))){
		mes "You have an on-going mission. Would you like to check the details?";
		next;
		if(select("Check the details.:Cancel.") == 2) { close; }
		callsub L_CheckDetails, getarg(0);
	}
	else if ((checkquest(getarg(0)) == 1) && (countitem(getarg(3)) >= getarg(4)) && (countitem(getarg(5,0)) >= getarg(6,0))){
		mes "I have done pretty well for the mission. Should I report it now?";
		next;
		if(select("Report the mission.:Do not report it yet.") == 2) { close; }
		delitem getarg(3),getarg(4);
		if (getarg(5,0) > 0) { delitem getarg(5),getarg(6); }
		getexp getarg(1),getarg(2);
		erasequest getarg(0);
		mes "You have completed the mission. Get rewards.";
	}
	close;

L_HuntingQuest:
	if (checkquest(getarg(0)) <= 0) {
		callsub L_CheckDetails, getarg(0);
		mes " ";
		next;
		mes "Would you like to accept this mission?";
		next;
		if(select("Accept the mission.:Do not accept the mission.") == 2) {
			if ((BaseLevel < 56) && (BaseLevel > 70)) {
				mes "These missions are not fit for my level. I should look for other missions.";
				close;
			}
			setquest getarg(0);
			mes "I have successfully accepted the mission. I have to come back and confirm my work after I complete the mission.";
			next;
			mes "This mission doesn't have time limits.";
		}
	}
	else if (checkquest(getarg(0),HUNTING) == 1) {
		mes "You have an on-going mission. Would you like to check the details?";
		next;
		if(select("Check the details.:Cancel.") == 2) { close; }
		callsub L_CheckDetails, getarg(0);
	}
	else if (checkquest(getarg(0),HUNTING) == 2) {
		if (getarg(3,0)){
			if (countitem(getarg(3)) < getarg(4)) {
				mes "I don't have enough "+getitemname(getarg(3))+".";
				mes "I need to gather "+getarg(4)+" "+getitemname(getarg(3))+" to complete this mission.";
				close;
			}
		}
		mes "I have done pretty well for the mission. Should I report it now?";
		next;
{'fraction_non_alphanumeric': 0.18842450114166584, 'fraction_numerical': 0.07167675965452198, 'mean_word_length': 4.227815256875973, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '942222', 'n_tokens_mistral': 4182, 'n_tokens_neox': 3417, 'n_words': 1085}