prontera,141,180,0	script	Exchange	4_F_CAPEGIRL,{
disable_items();
mes("[ "+CStr("Special Exchange","GREEN")+" ]");
if(countitem(Zherlthsh_Ticket)) {
	mes("Oh, you came for an exchange?");
	next;
	while(1)
		switch(select(
			" > Exchange with Items:"+
			" > Exchange with 30min Buffs:"+
			" > ^777777Nevermind^000000"
			)) {
		case 1:
			close2;
			openshop();							
			end;
		case 2:
			mes("[ "+CStr("Special Exchange","GREEN")+" ]");
			mes("Which buffs do you like?.");
			next;
			switch(select(
				" > +50% EXP Boost:"+
				" > +50% DROP Boost:"+
				" > ^777777Nevermind^000000"
			)) {
			case 1:
				if (countitem(Zherlthsh_Ticket) > 24) {
					if (SC_CASH_PLUSEXP) {
						mes("[ "+CStr("Special Exchange","GREEN")+" ]");
						mes("You still have active EXP Boost Buff .  Do you still wish to exchange?");
						if (select("No, thanks", "Yes, I'm sure") == 2) {
							delitem Zherlthsh_Ticket,5;
							sc_start SC_CASH_PLUSEXP,1800000,50;
						}
						close();
					} else {		
						delitem Zherlthsh_Ticket,5;
						sc_start SC_CASH_PLUSEXP,1800000,50;
					}	
					close();
				}
				mes("[ "+CStr("Special Exchange","GREEN")+" ]");
				mes ("Sorry, you don't have enough Zherlthsh Exchange Ticket");
				close();
			case 2:
				if (countitem(Zherlthsh_Ticket) > 24) {
					if (SC_CASH_RECEIVEITEM) {
						mes("[ "+CStr("Special Exchange","GREEN")+" ]");
						mes("You still have active DROP Boost Buff .  Do you still wish to exchange?");
						if (select("No, thanks", "Yes, I'm sure") == 2) {
							delitem Zherlthsh_Ticket,5;
							sc_start SC_CASH_RECEIVEITEM,1800000,50;
						}
						close();
					} else {
						delitem Zherlthsh_Ticket,5;
						sc_start SC_CASH_RECEIVEITEM,1800000,50;
					}
					close();
				}
				mes("[ "+CStr("Special Exchange","GREEN")+" ]");
				mes ("Sorry, you don't have enough Zherlthsh Exchange Ticket");
				close();
			default:
				close();
			}

		close();
	default:
		close();
	}
	
}

mes("Those Zealotus manage to roam around Amatsu.  Gather those Invitation Ticket for a special prize.");
next;
mes("[ "+CStr("Special Exchange","GREEN")+" ]");
mes("~ "+CStr("30 min EXP/DROP Boost","BLUE"));
mes("~ "+CStr("Diabolic Pet Egg","BLUE"));
mes("~ "+CStr("Zealotus Mask","BLUE"));
mes("~ "+CStr("Costume Celestial Hat","BLUE"));
mes("~ "+CStr("Old Blue Box","BLUE"));
mes("~ "+CStr("Kafra Card Box","BLUE"));
close();

OnInit:
	addmonsterdrop(ZHERLTHSH, Zherlthsh_Ticket, 1000);
	tradertype(NST_CUSTOM);
	sellitem 5121,100;
	sellitem 30020,30;
	sellitem 19753,100;
	sellitem 603,10;
	sellitem 12909,25;
	end;

OnCountFunds:
	setcurrency(countitem(Zherlthsh_Ticket));
	end;

OnPayFunds:
	if(countitem(Zherlthsh_Ticket) < @price) end;
	delitem Zherlthsh_Ticket,@price;
	purchaseok();
	end;
 
}

