From 6133612d369697e2228545e70eff5d69e6e8c46e Mon Sep 17 00:00:00 2001 From: Dastgir Date: Thu, 10 Dec 2015 15:31:39 +0530 Subject: ItemID to Constant: custom Folder --- npc/custom/events/xmas_rings_event.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'npc/custom/events/xmas_rings_event.txt') diff --git a/npc/custom/events/xmas_rings_event.txt b/npc/custom/events/xmas_rings_event.txt index 71be79aa5..a1b8918d9 100644 --- a/npc/custom/events/xmas_rings_event.txt +++ b/npc/custom/events/xmas_rings_event.txt @@ -64,17 +64,17 @@ M_WRAP: next; menu "Wrap them, please!",-, "No, thanks.",M_QUEST; - set @prizes, countitem(664)+countitem(665)+countitem(666)+countitem(667); + set @prizes, countitem(Gift_Box_1)+countitem(Gift_Box_2)+countitem(Gift_Box_3)+countitem(Gift_Box_4); if( @prizes == 0){ mes "[Snower]"; mes "I don't see any gifts in fancy boxes on you..."; - if(countitem(644))mes "You've got only gray boxes."; + if(countitem(Gift_Box))mes "You've got only gray boxes."; close; } - delitem 664,countitem(664); - delitem 665,countitem(665); - delitem 666,countitem(666); - delitem 667,countitem(667); + delitem 664,countitem(Gift_Box_1); + delitem 665,countitem(Gift_Box_2); + delitem 666,countitem(Gift_Box_3); + delitem 667,countitem(Gift_Box_4); getitem 644,@prizes; mes "[Snower]"; @@ -114,7 +114,7 @@ louyang,224,249,4 script Sneewy 4_F_KID3,{ menu "Here are your 4 Gift Boxes",-, "I don't know any Snowhatevers...",M_End; mes "[Sneewy]"; - if(countitem(644)<4){ + if(countitem(Gift_Box)<4){ mes "Gimme 4 gifts for poor kids... Wait, you haven't got 4 of them!"; emotion e_sry; close; @@ -166,7 +166,7 @@ izlu2dun,133,160,2 script Snoowy 4_F_06,{ menu "Have these gifts!",-, "I need a li'l something in return",M_End; mes "[Snoowy]"; - if(countitem(644)<3){ + if(countitem(Gift_Box)<3){ mes "Oops!! You haven't got 3 gray gift boxes on you."; emotion e_sry; close; -- cgit v1.2.3-60-g2f50