//===== Hercules Script ====================================== //= Eden Group Quests - Mission [71 - 85] //===== By: ================================================== //= L0ne_W0lf //===== Current Version: ===================================== //= 1.3 //===== Description: ========================================= //= Repetable Quests for Players between Baselevel 71 - 85. //===== Additional Comments: ================================= //= 1.0 First Version. //= 1.1 Some little optimization here and there. [Masao] //= 1.2 Optimized. [Euphy] //= 1.3 Updated to match the official scripts. [Euphy] //============================================================ moc_para01,44,38,3 script Mission [71 - 85] 4_BOARD3,{ if (countitem(6219) < 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) set slv_quest,0; if (checkquest(10102) > -1 || checkquest(10103) > -1 || checkquest(10104) > -1 || checkquest(10105) > -1 || checkquest(10106) > -1) { for(set .@quest,10102; .@quest<=10106; set .@quest,.@quest+1) { if (checkquest(.@quest) > -1) 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(set .@i,0; .@i -1 && countitem(7187) >= 30) set .@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(set .@i,0; .@i{,"",""}; L_Quest: set .@quest, getarg(0); switch(.@quest) { case 10107: set .@name$,"Hunt Requiem"; set .@exp,15000; break; case 10108: set .@name$,"Hunt Marduk"; set .@exp,15000; break; case 10109: set .@name$,"Hunt Pasana"; set .@exp,15000; break; case 10110: set .@name$,"Hunt Dark Frame"; set .@exp,20000; break; case 10111: set .@name$,"Hunt Evil Druid"; set .@exp,20000; break; case 10112: set .@name$,"Hunt Wraith"; set .@exp,20000; break; case 10113: set .@name$,"Hunt Raydric Archer"; set .@exp,20000; break; case 10114: set .@name$,"Hunt Grand Peco"; set .@exp,30000; break; case 10115: set .@name$,"Hunt Sleeper"; set .@exp,30000; break; case 10116: set .@name$,"Hunt Goat"; set .@exp,30000; break; case 10117: set .@name$,"Hunt Harpy"; set .@exp,30000; break; case 10118: set .@name$,"Hunt Clock"; set .@exp,25000; break; case 10119: set .@name$,"Hunt Punk"; set .@exp,25000; break; case 10120: set .@name$,"Hunt Rideword"; set .@exp,25000; break; case 10121: set .@name$,"Hunt Kikimora"; set .@exp,30000; break; case 10122: set .@name$,"Hunt Miyabi Doll"; set .@exp,30000; break; case 10123: set .@name$,"Hunt Mi Gao"; set .@exp,30000; break; case 5055: set .@name$,"Hunt Headless Mule"; set .@exp,30000; break; case 5056: set .@name$,"Hunt Tamruan"; set .@exp,30000; break; case 5057: set .@name$,"Gather Festival Masks for the Festival"; set .@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 7187,30; //Festival_Mask 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 (checkquest(5057) == -1) set .@hunting,-1; else if (countitem(7187) >= 30) set .@hunting,2; } else set .@hunting, checkquest(.@quest,HUNTING); if (.@hunting == 0 || .@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 7187,30; //Festival_Mask 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; } }