//@unloadnpc Freebies
//@loadnpc npc/amatsu/freebies.txt

prontera,149,199,6	script	Freebies	4W_SAILOR,{
	if (EventFreebies < 2) {
		mes "[ ^FF0000Simply Amatsu^000000 ]";
		mes "You can only carry maximum freebies item regardless if you use it or not.  Make sure to consume freebies before you do another claim.";
		next;
		mes "[ ^FF0000Simply Amatsu^000000 ]";
		mes "For today you will receive the following supplies:";
			mes 100-(countitem(30001))+" x "+Itemlink(Light_White_Pot_Freebies);
			mes 50-(countitem(30002))+" x "+Itemlink(Light_Blue_Pot_Freebies);
			mes 20-(countitem(30003))+" x "+Itemlink(Wing_Of_Fly_Freebies);
			mes 10-(countitem(30004))+" x "+Itemlink(Wing_Of_Butterfly_Freebies);
			mes 20-(countitem(30005))+" x "+Itemlink(Cargo_Free_Ticket_Freebies);
		mes "";
		mes "^FF0000Do you want to collect now?^000000";
		next;
		switch(select("No, I will collect later:Yes, I'm ready to collect now.")) {
		case 1:
			mes "[ ^FF0000Simply Amatsu^000000 ]";
			mes "Okay, come back when you are ready!!!";
			close;
		case 2:
			mes "[ ^FF0000Simply Amatsu^000000 ]";
			mes "There you go!!! See you next time.";
			set EventFreebies, 2;
			getitembound 30001,100-(countitem(Light_White_Pot_Freebies)),4; // Light White Potion
			getitembound 30002,50-(countitem(Light_Blue_Pot_Freebies)),4; // Light Blue Potion
			getitembound 30003,20-(countitem(Wing_Of_Fly_Freebies)),4; // fly wing
			getitembound 30004,10-(countitem(Wing_Of_Butterfly_Freebies)),4; // Butterflywing
			getitembound 30005,20-(countitem(Cargo_Free_Ticket_Freebies)),4; // Free Kafra Storage ticket
			close;
		}
	}

	mes "[ ^FF0000Simply Amatsu^000000 ]";
	mes "No available FREEBIES or you already claimed for today. Freebies is available to be claimed 2x per day every:";
	mes "^FF00001AM and 12PM Reset Daily^000000";
	mes "--------------------";
		mes "^FF0000100^000000x "+Itemlink(Light_White_Pot_Freebies);
		mes "^FF000050^000000x "+Itemlink(Light_Blue_Pot_Freebies);
		mes "^FF000020^000000x "+Itemlink(Wing_Of_Fly_Freebies);
		mes "^FF000010^000000x "+Itemlink(Wing_Of_Butterfly_Freebies);
		mes "^FF000020^000000x "+Itemlink(Cargo_Free_Ticket_Freebies);

	mes "--------------------";
	close;
	
OnInit:
        waitingroom "FREE Supplies",0;
end;
}
