//================= Hercules Script =======================================
//=       _   _                     _
//=      | | | |                   | |
//=      | |_| | ___ _ __ ___ _   _| | ___  ___
//=      |  _  |/ _ \ '__/ __| | | | |/ _ \/ __|
//=      | | | |  __/ | | (__| |_| | |  __/\__ \
//=      \_| |_/\___|_|  \___|\__,_|_|\___||___/
//================= License ===============================================
//= This file is part of Hercules.
//= http://herc.ws - http://github.com/HerculesWS/Hercules
//=
//= Copyright (C) 2012-2015  Hercules Dev Team
//= Copyright (C)  ultramage
//= Copyright (C)  Silent
//= Copyright (C)  Lupus
//= Copyright (C)  massdriller
//= Copyright (C)  sEiKaN
//= Copyright (C)  Akaru
//=
//= 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 <http://www.gnu.org/licenses/>.
//=========================================================================
//= Twin Towers NPCs
//================= Description ===========================================
//= mRO Event: Twin Towers NPCs
//================= Current Version =======================================
//= 1.6
//=========================================================================

prontera,146,92,6	script	OctoberFest	4_F_KHELLISIA,{
	disable_items;
	mes "[ "+CStr("OctoberFest","GREEN")+" ]";
	mes "How are you? It is October and Halloween is also coming in a few days.";
	next;
	if (octfest17) {
		mes "[ "+CStr("OctoberFest","GREEN")+" ]";
		mes "Congratulations on your";
		mes Itemlink(Octoberfest_Beer_Hat);
		mes "we hope you love wearing it?";
		close;
	} 
	else {
		mes "[ "+CStr("OctoberFest","GREEN")+" ]";
		mes "How would you like an ";
		mes Itemlink(Octoberfest_Beer_Hat);
		mes "to celebrate it?";
	}
	next;
	mes "[ "+CStr("OctoberFest","GREEN")+" ]";
	mes "Help me to collect some ingredients first.";
	next;
	if (#VIP) {
		if (countitem(Underground_Key)){
			mes "[ "+CStr("OctoberFest","GREEN")+" ]";
			mes "Here you go!!!.";
			delitem Underground_Key,1;
			getitem Octoberfest_Beer_Hat,1;
			set octfest17,1;
			close;
		}
		else {
			mes "[ "+CStr("OctoberFest","GREEN")+" ]";
			mes "Oh, you are VIP!";
			mes "Just bring me:";
			mes "1x "+Itemlink(Underground_Key);
			close;
		}
	}
	else {
		if (countitem(Tentacle) > 99 && countitem(Sturdy_Iron_Piece) > 99 && countitem(Fox_Tail) > 99 && countitem(Old_Pick) > 99 && countitem(Mould_Powder) > 99 ) {
			mes "[ "+CStr("OctoberFest","GREEN")+" ]";
			mes "Here you go!!!.";
			delitem Tentacle,100;
			delitem Sturdy_Iron_Piece,100;
			delitem Fox_Tail,100;
			delitem Old_Pick,100;
			delitem Mould_Powder,100;
			getitem Octoberfest_Beer_Hat,1;
			set octfest17,1;
			close;
		}
		else {			
			mes "[ "+CStr("OctoberFest","GREEN")+" ]";
			mes "Just bring me:";
			mes "100x "+Itemlink(Tentacle);
			mes "100x "+Itemlink(Sturdy_Iron_Piece);
			mes "100x "+Itemlink(Fox_Tail);
			mes "100x "+Itemlink(Old_Pick);
			mes "100x "+Itemlink(Mould_Powder);
			close;
		}
	}

	end;
}

morocc,160,97,4	duplicate(OctoberFest)	OctoberFest#tt2	4_F_KHELLISIA
npayon,179,226,4	duplicate(OctoberFest)	OctoberFest#tt3	4_F_KHELLISIA
nizlude,134,92,4	duplicate(OctoberFest)	OctoberFest#tt4	4_F_KHELLISIA
alberta,25,238,4	duplicate(OctoberFest)	OctoberFest#tt5	4_F_KHELLISIA
geffen,120,60,4	duplicate(OctoberFest)	OctoberFest#tt6	4_F_KHELLISIA
aldebaran,143,116,4	duplicate(OctoberFest)	OctoberFest#tt7	4_F_KHELLISIA
comodo,194,158,4	duplicate(OctoberFest)	OctoberFest#tt8	4_F_KHELLISIA
npayon,179,106,4	duplicate(OctoberFest)	OctoberFest#tt9	4_F_KHELLISIA
