//==================================
// [ڤ] The PlutoEA Project []
// http://opensvn.csie.org/PlutoEA
// ---------------------------------
// - ׼  Ա -
//===================================

function	script	ZondaMain	{

	cutin "zonda_01",2;
	mes "[׼  Ա]";
	mes "ӭ٣׼";
	mes "Զõķģ";
	mes "Ҫһַ?";
	next;
	switch(select(":ֿ:Ƴ:")){

	case 1:
		savepoint getarg(0),getarg(1),getarg(2);
		mes "[׼  Ա]";
		mes "Ѿˣ";
		mes "ллʹ";
		break;

	case 2:
		mes "[׼  Ա]";
		if(basicskillcheck() && getskilllv(1) < 6){
			mes "ĻҪ6";
			mes "ʹòֿ";
			emotion e_sry;
			break;
		}
		if(Zeny < 40){
			mes "˿֧ͣĽ㰡";
			mes "ֿʹ÷ 40";
			emotion e_cash;
			close2;
			cutin "",255;
			end;
		}
		set Zeny, Zeny - 40;
		set RESRVPTS, RESRVPTS + 4;
		mes "ֿ⽫ˣ";
		mes "лʹ";
		close2;
		openstorage;
		cutin "",255;
		end;

	case 3:
		mes "[׼  Ա]";
		if(BaseClass != Job_Merchant){
			mes "ܱǸ";
			mes "Ƴ˺ʦרõķ";
			emotion e_sry;
			break;
		}
		if(getskilllv(39) == 0){
			mes "ûѧؼܵĻ";
			mes "ûƳ";
			break;
		}
		if(checkcart() == 1){
			mes "ѾƳ";
			break;
		}
		if(countitem(7061)){
			delitem 7061,1;
			setcart;
			break;
		}
		mes "Ƴʹ÷800ң";
		mes "Ҫʹ?";
		next;
		if(select("ʹ:ȡ") == 1){
			if(Zeny < 800){
				mes "[׼  Ա]";
				mes "˿֧ͣĽ㰡";
				mes "Ƴʹ÷800ң";
				emotion e_cash;
				break;
			} else {
				set Zeny, Zeny - 800;
				set RESRVPTS, RESRVPTS + 80;
				setcart;
				break;
			}
			break;
		}
		break;

	case 4:
		mes "[׼  Ա]";
		mes "׼ ";
		mes "Զṩ÷ģв֮";
		mes "ʱ֪ǣ";
		mes "һԤԸõķ";
		break;
	}
	close2;
	cutin "",255;
	end;
}

lighthalzen,94,248,4	script	׼  Ա	874,{
	callfunc "ZondaMain","lighthalzen",94,240;
	end;
}

hugel,88,168,4	script	׼  Ա::CoolEventCorpStaffHugel	874,{
	callfunc "ZondaMain","hugel",96,155;
	end;
}

rachel,109,138,5	script	׼  Ա::CoolEventCorpStaffRachel	874,{
	callfunc "ZondaMain","rachel",115,125;
	end;
}

veins,208,128,5	script	׼  Ա::CoolEventCorpStaffVeins	874,{
	callfunc "ZondaMain","veins",204,103;
	end;
}