//================= Hercules Script =======================================
//= _ _ _
//= | | | | | |
//= | |_| | ___ _ __ ___ _ _| | ___ ___
//= | _ |/ _ \ '__/ __| | | | |/ _ \/ __|
//= | | | | __/ | | (__| |_| | | __/\__ \
//= \_| |_/\___|_| \___|\__,_|_|\___||___/
//================= License ===============================================
//= This file is part of Hercules.
//= http://herc.ws - http://github.com/HerculesWS/Hercules
//=
//= Copyright (C) 2012-2020 Hercules Dev Team
//= Copyright (C) Euphy
//= Copyright (C) Masao
//= Copyright (C) L0ne_W0lf
//=
//= Hercules is free software: you can redistribute it and/or modify
//= it under the terms of the GNU General Public License as published by
//= the Free Software Foundation, either version 3 of the License, or
//= (at your option) any later version.
//=
//= This program is distributed in the hope that it will be useful,
//= but WITHOUT ANY WARRANTY; without even the implied warranty of
//= MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//= GNU General Public License for more details.
//=
//= You should have received a copy of the GNU General Public License
//= along with this program. If not, see .
//=========================================================================
//= Eden Group Quests - Mission [71 - 85]
//================= Description ===========================================
//= Repetable Quests for Players between Baselevel 71 - 85.
//================= Current Version =======================================
//= 1.3
//=========================================================================
moc_para01,44,38,3 script Mission [71 - 85] 4_BOARD3,{
if (countitem(Para_Team_Mark) < 1 && countitem(Para_Team_Mark_) < 1) {
mes "- Only members of the -";
mes "- Eden Group can read -";
mes "- this bulletin board. -";
close;
}
// Clear the original quest data (no longer used).
if (slv_quest) slv_quest = 0;
if (questprogress(10102) || questprogress(10103) || questprogress(10104) || questprogress(10105) || questprogress(10106)) {
for(.@quest = 10102; .@quest<=10106; ++.@quest) {
if (questprogress(.@quest))
erasequest .@quest;
}
mes "- Since the client has moved -";
mes "- to another place, -";
mes "- the application form has been removed. -";
next;
}
if (BaseLevel < 71) {
mes "- Only members of the -";
mes "- right level can read -";
mes "- this bulletin board. -";
mes "- Try to find a board -";
mes "- that suits your level. -";
close;
} else if (BaseLevel > 85) {
// Quest IDs: 10107-10123, 5055-5057
setarray .@quests[0],
10107,10108,10109,
10110,10111,10112,10113,
10114,10115,10116,10117,
10118,10119,10120,
10121,10122,10123,5055,5056;
for(.@i = 0; .@i= 30)
.@complete[getarraysize(.@complete)] = 5057;
if (getarraysize(.@complete)) {
mes "You have quests in progress.";
mes "Do you want to turn them in?";
next;
if(select("Of course.", "No.") == 2)
close;
for(.@i = 0; .@i{,"",""};
L_Quest:
.@quest = getarg(0);
switch(.@quest) {
case 10107: .@name$ = "Hunt Requiem"; .@exp = 15000; break;
case 10108: .@name$ = "Hunt Marduk"; .@exp = 15000; break;
case 10109: .@name$ = "Hunt Pasana"; .@exp = 15000; break;
case 10110: .@name$ = "Hunt Dark Frame"; .@exp = 20000; break;
case 10111: .@name$ = "Hunt Evil Druid"; .@exp = 20000; break;
case 10112: .@name$ = "Hunt Wraith"; .@exp = 20000; break;
case 10113: .@name$ = "Hunt Raydric Archer"; .@exp = 20000; break;
case 10114: .@name$ = "Hunt Grand Peco"; .@exp = 30000; break;
case 10115: .@name$ = "Hunt Sleeper"; .@exp = 30000; break;
case 10116: .@name$ = "Hunt Goat"; .@exp = 30000; break;
case 10117: .@name$ = "Hunt Harpy"; .@exp = 30000; break;
case 10118: .@name$ = "Hunt Clock"; .@exp = 25000; break;
case 10119: .@name$ = "Hunt Punk"; .@exp = 25000; break;
case 10120: .@name$ = "Hunt Rideword"; .@exp = 25000; break;
case 10121: .@name$ = "Hunt Kikimora"; .@exp = 30000; break;
case 10122: .@name$ = "Hunt Miyabi Doll"; .@exp = 30000; break;
case 10123: .@name$ = "Hunt Mi Gao"; .@exp = 30000; break;
case 5055: .@name$ = "Hunt Headless Mule"; .@exp = 30000; break;
case 5056: .@name$ = "Hunt Tamruan"; .@exp = 30000; break;
case 5057: .@name$ = "Gather Festival Masks for the Festival"; .@exp = 30000; break;
}
if (getargcount() == 1) {
mes "'"+.@name$+"' completed. Do you want to turn it in and receive your reward?";
next;
if(select("Turn in quest.", "Cancel.") == 1) {
if (.@quest == 5057) delitem Festival_Mask,30;
erasequest .@quest;
getexp .@exp,0;
mes "You've received EXP for finishing the quest.";
next;
return;
}
close;
} else {
if (.@quest == 5057) {
// Quest 5057 is the only collection quest, so separate conditions are unnecessary.
if (!questprogress(5057))
.@hunting = 0;
else if (countitem(Festival_Mask) >= 30)
.@hunting = 2;
} else {
.@hunting = questprogress(.@quest,HUNTING);
}
if (.@hunting == 1) {
mes getarg(1);
mes getarg(2);
next;
mes "Return here when you've finished the quest.";
} else if (.@hunting == 2) {
mes "You have completed the quest.";
next;
if(select("Turn in quest.", "Cancel.") == 1) {
if (.@quest == 5057) delitem Festival_Mask,30;
erasequest .@quest;
getexp .@exp,0;
mes "You've received EXP for finishing the quest.";
}
}/* else if (.@hunting == 3) {
// recall_completequest .@quest
erasequest .@quest;
mes "You have re-accepted the quest '"+.@name$+"'.";
}*/ else {
mes getarg(1);
mes getarg(2);
next;
mes "Do you want to accept the quest?";
next;
if(select("Yes.", "No.") == 1) {
mes "You've received the quest '"+.@name$+"'. View your quest info for more details.";
setquest .@quest;
}
}
close;
}
}