// Headgears \\ ama_in01.gat,80,104,4 script Headgear Quests 756,{ mes "[Headgear Quests]"; mes "Hi, What headgear would you like make?"; switch(select("2nd Anniversary Hat","Angel Wing Ears","Binoculars",",Evil Wing Ears","Helm of Angel","Mage Hat","Neko Mimi","Note Headgear","Tiger Mask","Zealotus Mask")){ case 1: callfunc "Anni"; break; case 2: callfunc "Angel"; break; case 3: callfunc "Bino"; break; case 4: callfunc "Evil"; break; case 5: callfunc "Helm"; break; case 6: callfunc "Mage"; break; case 7: callfunc "Neko"; break; case 8: callfunc "Note"; break; case 9: callfunc "Tiger"; break; case 10: callfunc "Zeal"; break; } end; function script Anni { if(anniquest==1) goto L_Anni; mes "[Headgear Quests]"; mes "You need 100 Piece of Cake and 10 Scarlet Dyestuffs"; mes "Continue?"; switch(select("Yes","No")){ case 1: mes "Then go get them"; set anniquest,1; break; case 2: mes "AW what a shame"; break; } end; L_Anni: if((countitem(539)>=100)) && ((countitem(975)>=10)) goto L_Reward; mes "[Headgear Quests]"; mes "You don't have the items!"; mes "You need 100 Piece of Cake and 10 Scarlet Dyestuffs"; close; L_Reward: mes "[Headgear Quests]"; mes "Here is your item"; getitem 5105,1; close; } function script Angel { if(angelquest==1) goto L_Angel; mes "[Headgear Quests]"; mes "You need 1 Elven Ears and 1 Angel Wing."; mes "Continue?"; switch(select("Yes","No")){ case 1: mes "Then go get them"; set angelquest,1; break; case 2: mes "AW what a shame"; break; } end; L_Angel: if((countitem(2286)>=1)) && ((countitem(2254)>=1)) goto L_Reward2; mes "[Headgear Quests]"; mes "You don't have the items!"; mes "You need 1 Elven Ears and 1 Angel Wing."; close; L_Reward2: mes "[Headgear Quests]"; mes "Here is your item"; getitem 5074,1; close; } function script Bino { if(binoquest==1) goto L_Bino; mes "[Headgear Quests]"; mes "You need 50 Glass Bead and 50 Steel."; mes "Continue?"; switch(select("Yes","No")){ case 1: mes "Then go get them"; set binoquest,1; break; case 2: mes "AW what a shame"; break; } end; L_Bino: if((countitem(746)>=50)) && ((countitem(999)>=50)) goto L_Reward3; mes "You don't have the items!"; mes "You need 50 Glass Bead and 50 Steel."; close; L_Reward3: mes "[Headgear Quests]"; mes "Here is your item"; getitem 2296,1; close; } function script Evil { if(evilquest==1) goto L_Evil; mes "[Headgear Quests]"; mes "You need 1 Elven Ears and 1 Evil Wing."; mes "Continue?"; switch(select("Yes","No")){ case 1: mes "Then go get them"; set evilquest,1; break; case 2: mes "AW what a shame"; break; } end; L_Evil: if((countitem(2286)>=1)) && ((countitem(2255)>=1)) goto L_Reward4; mes "You don't have the items!"; mes "You need 1 Elven Ears and 1 Evil Wing."; close; L_Reward4: mes "[Headgear Quests]"; mes "Here is your item"; getitem 5068,1; close; } function script Helm { if(helmquest==1) goto L_Helm; mes "[Headgear Quests]"; mes "You need 1 Angel Wing, 1 Helm [1] and 5 Fang of Hatii."; mes "Continue?"; switch(select("Yes","No")){ case 1: mes "Then go get them"; set helmquest,1; break; case 2: mes "AW what a shame"; break; } end; L_Helm: if((countitem(2254)>=1)) && ((countitem(2229)>=1)) && ((countitem(7036)>=1)) goto L_Reward5; mes "You don't have the items!"; mes "You need 1 Angel Wing, 1 Helm [1] and 5 Fang of Hatii."; close; L_Reward5: mes "[Headgear Quests]"; mes "Here is your item"; getitem 5025,1; close; } function script Mage { if(magequest==1) goto L_Mage; mes "[Headgear Quests]"; mes "You need 5 Magician Hat and 5 Mage Coat"; mes "Continue?"; switch(select("Yes","No")){ case 1: mes "Then go get them"; set magequest,1; break; case 2: mes "AW what a shame"; break; } end; L_Mage: if((countitem(5045)>=5)) && ((countitem(2334)>=5)) goto L_Reward6; mes "You don't have the items!"; mes "You need 5 Magician Hat and 5 Mage Coat"; close; L_Reward6: mes "[Headgear Quests]"; mes "Here is your item"; getitem 5027,1; close; } function script Neko { if(nekoquest==1) goto L_Neko; mes "[Headgear Quests]"; mes "You need 100 Sea Otter Fur and 30 Nine Tails."; mes "Continue?"; switch(select("Yes","No")){ case 1: mes "Then go get them"; set nekoquest,1; break; case 2: mes "AW what a shame"; break; } end; L_Neko: if((countitem(7065)>=100)) && ((countitem(1022)>=30)) goto L_Reward7; mes "You don't have the items!"; mes "You need 100 Sea Otter Fur and 30 Nine Tails."; close; L_Reward7: mes "[Headgear Quests]"; mes "Here is your item"; getitem 5099,1; close; } function script Note { if(notequest==1) goto L_Note; mes "[Headgear Quests]"; mes "You need 100 Little Ghost Doll and 10 Black Dyestuffs."; mes "Continue?"; switch(select("Yes","No")){ case 1: mes "Then go get them"; set notequest,1; break; case 2: mes "AW what a shame"; break; } end; L_Note: if((countitem(983)>=10)) && ((countitem(7268)>=100)) goto L_Reward8; mes "You don't have the items!"; mes "You need 100 Little Ghost Doll and 10 Black Dyestuffs."; close; L_Reward8: mes "[Headgear Quests]"; mes "Here is your item"; getitem 5151,1; close; } function script Tiger { if(tigerquest==1) goto L_Tiger; mes "[Headgear Quests]"; mes "You need 100 Sea Otter Fur and 10 Tiger's Footskin."; mes "Continue?"; switch(select("Yes","No")){ case 1: mes "Then go get them"; set tigerquest,1; break; case 2: mes "AW what a shame"; break; } end; L_Tiger: if((countitem(7065)>=100)) && ((countitem(1030)>=10)) goto L_Reward8; mes "You don't have the items!"; mes "You need 100 Sea Otter Fur and 10 Tiger's Footskin."; close; L_Reward8: mes "[Headgear Quests]"; mes "Here is your item"; getitem 5098,1; close; } function script Zeal { if(zealquest==1) goto L_Note; mes "[Headgear Quests]"; mes "You need 50 Dark Crystal Fragment and 50 Blade Lost in Darkness."; mes "Continue?"; switch(select("Yes","No")){ case 1: mes "Then go get them"; set zealquest,1; break; case 2: mes "AW what a shame"; break; } end; L_Note: if((countitem(7315)>=50)) && ((countitem(7023)>=50)) goto L_Reward10; mes "You don't have the items!"; mes "You need 50 Dark Crystal Fragment and 50 Blade Lost in Darkness."; close; L_Reward10: mes "[Headgear Quests]"; mes "Here is your item"; getitem 5121,1; close; } }