//================= 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)  Euphy
//=
//= 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/>.
//=========================================================================
//= Mergician
//================= Description ===========================================
//= Merges items taking up multiple slots in a player's inventory.
//================= Current Version =======================================
//= 1.0
//=========================================================================

prontera,146,95,3	script	Mergician#pron	1_M_WIZARD,{
	if (checkweight(Axe,1) == 0) {
		mes "- Wait a second !! -";
		mes "- You are carrying too many items -";
		mes "- or too much weight to proceed. -";
		mes "- Come back after -";
		mes "- arranging your inventory. -";
		close;
	}
	mes "[Mergician]";
	mes "Do you believe in the miracle of Merge god?? If so, repeat my spell loudly as I pronunce it!!!";
	mes "Merge Merge, Merrrrge!!!";
	next;
	switch(select("What is the miracle of Merge?", "Merrrrge!!!!", "Abandon...")) {
	case 1:
		mes "[Mergician]";
		mes "There is an order which rules the world and keeps the world to go well.";
		next;
		mes "[Mergician]";
		mes "But there has been a bad factor which totally jeopardised this rule!!";
		next;
		mes "[Mergician]";
		mes "Those things which are separated even if they are composed by the same material!!";
		next;
		mes "[Mergician]";
		mes "Have you never experienced this bad incident??";
		mes "The fact that I had ^3131FFthe same potion, but appearing more than twice in your inventory!!^000000 So unpleasant!!!";
		next;
		mes "[Mergician]";
		mes "Believe in Mergism. That is the truth.";
		mes "Then I can help you be happy and content.";
		close;
	case 2:
		mes "[Mergician]";
		mes "This is the total holy ritual to pray to the Great God, Merge! and I am borrowing the power for a while!!";
		next;
		mes "[Mergician]";
		mes "And if you eagerly want to be blessed by Merge, be humble and shout out loud! Merge Merge, Merrrrge!!!";
		next;
		switch(select("Merrrrge!", "Don't follow what he says.")) {
		case 1:
			mes "[Mergician]";
			mes "Merge just heard your wish and let it be realised!";
			mes "Open your inventory to check the miracle!";
			close2;
			mergeitem();
			end;
		case 2:
			mes "[Mergician]";
			mes "You jerk!!! You just broke the whole rhythm! Why can't you get my flow and follow me?! Idiot!";
			close;
		}
	case 3:
		close;
	}
}
