summaryrefslogblamecommitdiff
path: root/npc/xmas.txt
blob: 4a764836f8a0ed7bc6809d47f0d29b54a846800b (plain) (tree)











































                                                                                            
new_3-1.gat,67,42,0	script	Santa	105,{
if( ChristmasQuest == 1) goto done;
mes "[Fake Santa]";
mes "Why hello there young'n";
mes "Now how would you like yourself a Christmas hat?";
next;
L_M:
menu "Yes",L_Y,"No",L_N,"Requirements?",L_R;
	L_Y:
		mes "[Fake Santa]";
		mes "Hmm, let me check your supplies, I myself dont have enough to make 1.";
		next;
		if(countitem(504)<10) goto NoItem;
		if(countitem(506)<25) goto NoItem;
		if(countitem(508)<5) goto NoItem;
		mes "Here you go, enjoy your new hat!";
		delitem 504,10;
		delitem 506,25;
		delitem 508,5;
		getitem 511,1;
		set ChristmasQuest,1;
		close;
	L_R:
		mes "[Fake Santa]";
		mes "For this special hat, i need a pint of magic and a little help";
		mes ",Just kidding, i need";
		mes "25 Candy Canes";
		mes "10 Decor Candy";
		mes "5 Xmas Cakes";
		next;
		goto L_M;
	L_N:
		mes "[Fake Santa]";
		mes "Well, thats too bad, but make sure to have the holiday spirit!";
		close;
	NoItem:
		mes "[Fake Santa]";
		mes "Oh my, you dont seem to have the items needed for the Hat.";
		close;
	done:
		mes "[Fake Santa]";
		mes "well, seems you already did this quest.";
		close;
}