From 371db803633dcc4185e147f5ddff08c7bd5aa613 Mon Sep 17 00:00:00 2001 From: Freeyorp Date: Thu, 8 Apr 2010 15:56:50 +1200 Subject: Easter 2010 --- npc/easter/2010/_import.txt | 3 + npc/easter/2010/egg_func.txt | 114 ++++++ npc/easter/2010/eggs.txt | 934 +++++++++++++++++++++++++++++++++++++++++++ npc/easter/2010/helper.txt | 15 + 4 files changed, 1066 insertions(+) create mode 100644 npc/easter/2010/_import.txt create mode 100644 npc/easter/2010/egg_func.txt create mode 100755 npc/easter/2010/eggs.txt create mode 100644 npc/easter/2010/helper.txt (limited to 'npc/easter') diff --git a/npc/easter/2010/_import.txt b/npc/easter/2010/_import.txt new file mode 100644 index 00000000..1f543006 --- /dev/null +++ b/npc/easter/2010/_import.txt @@ -0,0 +1,3 @@ +npc: npc/easter/2010/egg_func.txt +npc: npc/easter/2010/eggs.txt +npc: npc/easter/2010/helper.txt diff --git a/npc/easter/2010/egg_func.txt b/npc/easter/2010/egg_func.txt new file mode 100644 index 00000000..9dbf669e --- /dev/null +++ b/npc/easter/2010/egg_func.txt @@ -0,0 +1,114 @@ +function script Easter2010Loc_Check1 { + set @result, ~Easter_2010_EggState1 & (1 << @obj) & $Easter_2010_Egg_Loc_State1; + if (@result == 0) goto L_NotHere; + getinventorylist; + if (@inventorylist_count == 100 && countitem(E10_COLLECT_EGGS_ID) == 0) + goto L_TooMany; + if (rand(10)) set $Easter_2010_Egg_Loc_State1, $Easter_2010_Egg_Loc_State1 & ~(1 << @obj); + set Easter_2010_EggState1, Easter_2010_EggState1 | (1 << @obj); + mes "You pick up an egg."; + getitem E10_COLLECT_EGGS_ID, 1; + return; + +L_NotHere: + mes "You can't find an egg here."; + set @result, 0; + return; + +L_TooMany: + mes "You don't have room for this egg."; + set @result, 0; + return; +} + +function script Easter2010Loc_Check2 { + set @result, ~Easter_2010_EggState2 & (1 << @obj) & $Easter_2010_Egg_Loc_State2; + if (@result == 0) goto L_NotHere; + getinventorylist; + if (@inventorylist_count == 100 && countitem(E10_COLLECT_EGGS_ID) == 0) + goto L_TooMany; + if (rand(10)) set $Easter_2010_Egg_Loc_State2, $Easter_2010_Egg_Loc_State2 & ~(1 << @obj); + set Easter_2010_EggState2, Easter_2010_EggState2 | (1 << @obj); + mes "You pick up an egg."; + getitem E10_COLLECT_EGGS_ID, 1; + return; + +L_NotHere: + mes "You can't find an egg here."; + set @result, 0; + return; + +L_TooMany: + mes "You don't have room for this egg."; + set @result, 0; + return; +} + +function script Easter2010Loc_Check3 { + set @result, ~Easter_2010_EggState3 & (1 << @obj) & $Easter_2010_Egg_Loc_State3; + if (@result == 0) goto L_NotHere; + getinventorylist; + if (@inventorylist_count == 100 && countitem(E10_COLLECT_EGGS_ID) == 0) + goto L_TooMany; + if (rand(10)) set $Easter_2010_Egg_Loc_State3, $Easter_2010_Egg_Loc_State3 & ~(1 << @obj); + set Easter_2010_EggState3, Easter_2010_EggState3 | (1 << @obj); + mes "You pick up an egg."; + getitem E10_COLLECT_EGGS_ID, 1; + return; + +L_NotHere: + mes "You can't find an egg here."; + set @result, 0; + return; + +L_TooMany: + mes "You don't have room for this egg."; + set @result, 0; + return; +} + +function script Easter2010Loc_Check4 { + set @result, ~Easter_2010_EggState4 & (1 << @obj) & $Easter_2010_Egg_Loc_State4; + if (@result == 0) goto L_NotHere; + getinventorylist; + if (@inventorylist_count == 100 && countitem(E10_COLLECT_EGGS_ID) == 0) + goto L_TooMany; + if (rand(10)) set $Easter_2010_Egg_Loc_State4, $Easter_2010_Egg_Loc_State4 & ~(1 << @obj); + set Easter_2010_EggState4, Easter_2010_EggState4 | (1 << @obj); + mes "You pick up an egg."; + getitem E10_COLLECT_EGGS_ID, 1; + return; + +L_NotHere: + mes "You can't find an egg here."; + set @result, 0; + return; + +L_TooMany: + mes "You don't have room for this egg."; + set @result, 0; + return; +} + +function script Easter2010Loc_Check5 { + set @result, ~Easter_2010_EggState5 & (1 << @obj) & $Easter_2010_Egg_Loc_State5; + if (@result == 0) goto L_NotHere; + getinventorylist; + if (@inventorylist_count == 100 && countitem(E10_COLLECT_EGGS_ID) == 0) + goto L_TooMany; + if (rand(10)) set $Easter_2010_Egg_Loc_State5, $Easter_2010_Egg_Loc_State5 & ~(1 << @obj); + set Easter_2010_EggState5, Easter_2010_EggState5 | (1 << @obj); + mes "You pick up an egg."; + getitem E10_COLLECT_EGGS_ID, 1; + return; + +L_NotHere: + mes "You can't find an egg here."; + set @result, 0; + return; + +L_TooMany: + mes "You don't have room for this egg."; + set @result, 0; + return; +} diff --git a/npc/easter/2010/eggs.txt b/npc/easter/2010/eggs.txt new file mode 100755 index 00000000..5f174beb --- /dev/null +++ b/npc/easter/2010/eggs.txt @@ -0,0 +1,934 @@ +// + +007-1.gat,38,22,0 script Flowers 127,{ + set @obj, 0; + callfunc "Easter2010Loc_Check1"; + close; +} + +007-1.gat,40,41,0 script Grass 127,{ + set @obj, 1; + callfunc "Easter2010Loc_Check1"; + close; +} + +007-1.gat,18,71,0 script Stone 127,{ + set @obj, 2; + callfunc "Easter2010Loc_Check1"; + close; +} + +007-1.gat,58,33,0 script Tree 127,{ + set @obj, 3; + callfunc "Easter2010Loc_Check1"; + close; +} + +007-1.gat,36,58,0 script Flowers 127,{ + set @obj, 4; + callfunc "Easter2010Loc_Check1"; + close; +} + +007-1.gat,91,25,0 script Plant 127,{ + set @obj, 5; + callfunc "Easter2010Loc_Check1"; + close; +} + +007-1.gat,66,52,0 script Sign 127,{ + set @obj, 6; + callfunc "Easter2010Loc_Check1"; + close; +} + +007-1.gat,104,33,0 script Tree 127,{ + set @obj, 7; + callfunc "Easter2010Loc_Check1"; + close; +} + +007-1.gat,99,39,0 script Plant 127,{ + set @obj, 8; + callfunc "Easter2010Loc_Check1"; + close; +} + +007-1.gat,125,20,0 script Rock 127,{ + set @obj, 9; + callfunc "Easter2010Loc_Check1"; + close; +} + +007-1.gat,117,33,0 script Plant 127,{ + set @obj, 10; + callfunc "Easter2010Loc_Check1"; + close; +} + +007-1.gat,114,54,0 script Tree 127,{ + set @obj, 11; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,97,28,0 script Haystack 127,{ + set @obj, 12; + callfunc "Easter2010Loc_Check1"; + if (@result != 0) close; + if (rand(100) == 0) getitem "BentNeedle", 1; + close; +} + +008-1.gat,88,48,0 script Target 127,{ + set @obj, 13; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,137,85,0 script Tree 127,{ + set @obj, 14; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,46,18,0 script Rocks 127,{ + set @obj, 15; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,36,28,0 script Rock 127,{ + set @obj, 16; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,44,26,0 script Flowers 127,{ + set @obj, 17; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,68,21,0 script Wheat 127,{ + set @obj, 18; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,103,27,0 script Scythe 127,{ + set @obj, 19; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,128,25,0 script Trees 127,{ + set @obj, 20; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,134,39,0 script Flowers 127,{ + set @obj, 21; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,134,61,0 script Tree 127,{ + set @obj, 22; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,129,77,0 script Flowers 127,{ + set @obj, 23; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,121,95,0 script Tree 127,{ + set @obj, 24; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,99,91,0 script Tree 127,{ + set @obj, 25; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,64,90,0 script Grass 127,{ + set @obj, 26; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,46,83,0 script Pond 127,{ + set @obj, 27; + callfunc "Easter2010Loc_Check1"; + close; +} + +008-1.gat,43,64,0 script Tree 127,{ + set @obj, 28; + callfunc "Easter2010Loc_Check1"; + close; +} + +009-1.gat,26,32,0 script Tree 127,{ + set @obj, 29; + callfunc "Easter2010Loc_Check1"; + close; +} + +009-1.gat,25,51,0 script Flowers 127,{ + set @obj, 30; + callfunc "Easter2010Loc_Check1"; + close; +} + +009-1.gat,44,46,0 script Stump 127,{ + set @obj, 31; + callfunc "Easter2010Loc_Check1"; + close; +} + +009-1.gat,36,34,0 script Sign 127,{ + set @obj, 0; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,45,25,0 script Tree 127,{ + set @obj, 1; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,54,31,0 script Flower pot 127,{ + set @obj, 2; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,61,34,0 script Sign 127,{ + set @obj, 3; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,67,33,0 script Pots 127,{ + set @obj, 4; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,78,34,0 script Sign 127,{ + set @obj, 5; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,85,35,0 script Flower pot 127,{ + set @obj, 6; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,95,33,0 script Flowers 127,{ + set @obj, 7; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,90,27,0 script Bench 127,{ + set @obj, 8; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,94,52,0 script Tree 127,{ + set @obj, 9; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,82,51,0 script Tree 127,{ + set @obj, 10; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,77,45,0 script Barrel 127,{ + set @obj, 11; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,62,46,0 script Chimney 127,{ + set @obj, 12; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-1.gat,54,38,0 script Tree 127,{ + set @obj, 13; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,67,48,0 script Shelf 127,{ + set @obj, 14; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,37,24,0 script Table 127,{ + set @obj, 15; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,68,29,0 script Bed 127,{ + set @obj, 16; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,94,25,0 script Display 127,{ + set @obj, 17; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,123,21,0 script Shelf 127,{ + set @obj, 18; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,151,25,0 script Candle 127,{ + set @obj, 19; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,57,48,0 script Fireplace 127,{ + set @obj, 20; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,62,56,0 script Table 127,{ + set @obj, 21; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,101,44,0 script Bed 127,{ + set @obj, 22; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,123,44,0 script Plant 127,{ + set @obj, 23; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,112,43,0 script Window 127,{ + set @obj, 24; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,146,42,0 script Table 127,{ + set @obj, 25; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,153,46,0 script Railing 127,{ + set @obj, 26; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,18,103,0 script Chair 127,{ + set @obj, 27; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,27,97,0 script Shield 127,{ + set @obj, 28; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,148,64,0 script Counter 127,{ + set @obj, 29; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,177,58,0 script Display 127,{ + set @obj, 30; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,184,63,0 script Display 127,{ + set @obj, 31; + callfunc "Easter2010Loc_Check2"; + close; +} + +009-2.gat,148,80,0 script Container 127,{ + set @obj, 0; + callfunc "Easter2010Loc_Check3"; + close; +} + +009-2.gat,143,85,0 script Shelf 127,{ + set @obj, 1; + callfunc "Easter2010Loc_Check3"; + close; +} + +009-2.gat,150,83,0 script Shelf 127,{ + set @obj, 2; + callfunc "Easter2010Loc_Check3"; + close; +} + +009-2.gat,151,88,0 script Bag 127,{ + set @obj, 3; + callfunc "Easter2010Loc_Check3"; + close; +} + +009-2.gat,126,69,0 script Cupboard 127,{ + set @obj, 4; + callfunc "Easter2010Loc_Check3"; + close; +} + +009-2.gat,118,68,0 script Fireplace 127,{ + set @obj, 5; + callfunc "Easter2010Loc_Check3"; + close; +} + +009-2.gat,111,72,0 script Shield 127,{ + set @obj, 6; + callfunc "Easter2010Loc_Check3"; + close; +} + +009-2.gat,103,74,0 script Table 127,{ + set @obj, 7; + callfunc "Easter2010Loc_Check3"; + close; +} + +010-1.gat,24,66,0 script Rock 127,{ + set @obj, 8; + callfunc "Easter2010Loc_Check3"; + close; +} + +010-1.gat,120,84,0 script Rock 127,{ + set @obj, 9; + callfunc "Easter2010Loc_Check3"; + close; +} + +010-1.gat,27,95,0 script Barrel 127,{ + set @obj, 10; + callfunc "Easter2010Loc_Check3"; + close; +} + +010-1.gat,51,34,0 script Sign 127,{ + set @obj, 11; + callfunc "Easter2010Loc_Check3"; + close; +} + +010-1.gat,71,74,0 script Dead Tree 127,{ + set @obj, 12; + callfunc "Easter2010Loc_Check3"; + close; +} + +010-1.gat,48,82,0 script Flowerpot 127,{ + set @obj, 13; + callfunc "Easter2010Loc_Check3"; + close; +} + +010-1.gat,21,97,0 script Water 127,{ + set @obj, 14; + callfunc "Easter2010Loc_Check3"; + close; +} + +010-1.gat,130,45,0 script Grass 127,{ + set @obj, 15; + callfunc "Easter2010Loc_Check3"; + close; +} + +010-1.gat,45,102,0 script Plant 127,{ + set @obj, 16; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,38,36,0 script Cave 127,{ + set @obj, 17; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,87,33,0 script Oscar's Hat 127,{ + set @obj, 18; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,91,37,0 script Lattice 127,{ + set @obj, 19; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,97,37,0 script Drain 127,{ + set @obj, 20; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,88,66,0 script Bullrushes 127,{ + set @obj, 21; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,104,69,0 script Plant 127,{ + set @obj, 22; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,112,76,0 script Crevice 127,{ + set @obj, 23; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,108,89,0 script Grass 127,{ + set @obj, 24; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,83,85,0 script Stump 127,{ + set @obj, 25; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,59,92,0 script Sign 127,{ + set @obj, 26; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,36,90,0 script Tree 127,{ + set @obj, 27; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,50,103,0 script Tree 127,{ + set @obj, 28; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,26,89,0 script Stream 127,{ + set @obj, 29; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,35,75,0 script Tree 127,{ + set @obj, 30; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,48,79,0 script Flowers 127,{ + set @obj, 31; + callfunc "Easter2010Loc_Check3"; + close; +} + +011-1.gat,70,69,0 script Tree 127,{ + set @obj, 0; + callfunc "Easter2010Loc_Check4"; + close; +} + +011-1.gat,100,41,0 script Field 127,{ + set @obj, 1; + callfunc "Easter2010Loc_Check4"; + close; +} + +011-1.gat,89,37,0 script Flower pot 127,{ + set @obj, 2; + callfunc "Easter2010Loc_Check4"; + close; +} + +011-1.gat,77,32,0 script Foundation 127,{ + set @obj, 3; + callfunc "Easter2010Loc_Check4"; + close; +} + +011-1.gat,65,39,0 script Cattails 127,{ + set @obj, 4; + callfunc "Easter2010Loc_Check4"; + close; +} + +011-1.gat,45,35,0 script Plant 127,{ + set @obj, 5; + callfunc "Easter2010Loc_Check4"; + close; +} + +011-2.gat,29,29,0 script Torch 127,{ + set @obj, 6; + callfunc "Easter2010Loc_Check4"; + close; +} + +011-2.gat,33,51,0 script Water 127,{ + set @obj, 7; + callfunc "Easter2010Loc_Check4"; + close; +} + +011-2.gat,39,48,0 script Stalagmite 127,{ + set @obj, 8; + callfunc "Easter2010Loc_Check4"; + close; +} + +012-1.gat,124,137,0 script Tree 127,{ + set @obj, 9; + callfunc "Easter2010Loc_Check4"; + close; +} + +012-1.gat,143,121,0 script Treestump 127,{ + set @obj, 10; + callfunc "Easter2010Loc_Check4"; + close; +} + +012-1.gat,136,72,0 script Treestump 127,{ + set @obj, 11; + callfunc "Easter2010Loc_Check4"; + close; +} + +012-1.gat,110,44,0 script Grass 127,{ + set @obj, 12; + callfunc "Easter2010Loc_Check4"; + close; +} + +012-1.gat,123,115,0 script Island 127,{ + set @obj, 13; + callfunc "Easter2010Loc_Check4"; + close; +} + +012-1.gat,96,129,0 script Rock 127,{ + set @obj, 14; + callfunc "Easter2010Loc_Check4"; + close; +} + +012-1.gat,109,147,0 script Treestump 127,{ + set @obj, 15; + callfunc "Easter2010Loc_Check4"; + close; +} + +012-1.gat,118,98,0 script Waterfall 127,{ + set @obj, 16; + callfunc "Easter2010Loc_Check4"; + close; +} + +012-1.gat,99,110,0 script Rock 127,{ + set @obj, 17; + callfunc "Easter2010Loc_Check4"; + close; +} + +012-3.gat,62,141,0 script Torch 127,{ + set @obj, 18; + callfunc "Easter2010Loc_Check4"; + close; +} + +013-1.gat,135,71,0 script Treestump 127,{ + set @obj, 19; + callfunc "Easter2010Loc_Check4"; + close; +} + +013-1.gat,124,23,0 script Flower 127,{ + set @obj, 20; + callfunc "Easter2010Loc_Check4"; + close; +} + +013-1.gat,128,100,0 script Plant 127,{ + set @obj, 21; + callfunc "Easter2010Loc_Check4"; + close; +} + +013-1.gat,41,88,0 script Rock 127,{ + set @obj, 22; + callfunc "Easter2010Loc_Check4"; + close; +} + +013-1.gat,89,28,0 script Rock 127,{ + set @obj, 23; + callfunc "Easter2010Loc_Check4"; + close; +} + +013-1.gat,131,21,0 script Flowers 127,{ + set @obj, 24; + callfunc "Easter2010Loc_Check4"; + close; +} + +013-1.gat,116,48,0 script Treestump 127,{ + set @obj, 25; + callfunc "Easter2010Loc_Check4"; + close; +} + +013-1.gat,62,70,0 script Tree 127,{ + set @obj, 26; + callfunc "Easter2010Loc_Check4"; + close; +} + +014-1.gat,97,92,0 script Tree 127,{ + set @obj, 27; + callfunc "Easter2010Loc_Check4"; + close; +} + +014-1.gat,102,72,0 script Rock 127,{ + set @obj, 28; + callfunc "Easter2010Loc_Check4"; + close; +} + +014-1.gat,61,85,0 script Stump 127,{ + set @obj, 29; + callfunc "Easter2010Loc_Check4"; + close; +} + +014-1.gat,49,66,0 script Stump 127,{ + set @obj, 30; + callfunc "Easter2010Loc_Check4"; + close; +} + +014-1.gat,80,91,0 script Tree 127,{ + set @obj, 31; + callfunc "Easter2010Loc_Check4"; + close; +} + +018-1.gat,71,98,0 script Tree 127,{ + set @obj, 0; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-1.gat,63,87,0 script Cattails 127,{ + set @obj, 1; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-1.gat,62,74,0 script Foundation 127,{ + set @obj, 2; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-1.gat,65,78,0 script Firepit 127,{ + set @obj, 3; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-1.gat,94,88,0 script Tree 127,{ + set @obj, 4; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-1.gat,82,67,0 script Plant 127,{ + set @obj, 5; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-1.gat,81,59,0 script Barrel 127,{ + set @obj, 6; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-1.gat,102,73,0 script Tree 127,{ + set @obj, 7; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-1.gat,135,63,0 script Tree 127,{ + set @obj, 8; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-1.gat,131,93,0 script Tree 127,{ + set @obj, 9; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,57,26,0 script Flower pot 127,{ + set @obj, 10; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,51,20,0 script Shield 127,{ + set @obj, 11; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,36,21,0 script Bag 127,{ + set @obj, 12; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,33,32,0 script Container 127,{ + set @obj, 13; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,25,45,0 script Anvil 127,{ + set @obj, 14; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,23,28,0 script Table 127,{ + set @obj, 15; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,82,19,0 script Bookcase 127,{ + set @obj, 16; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,91,31,0 script Table 127,{ + set @obj, 17; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,79,46,0 script Bed 127,{ + set @obj, 18; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,116,22,0 script Chair 127,{ + set @obj, 19; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,123,19,0 script Mug 127,{ + set @obj, 20; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,118,24,0 script Woodpile 127,{ + set @obj, 21; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,119,40,0 script Teapot 127,{ + set @obj, 22; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-2.gat,125,49,0 script Corner 127,{ + set @obj, 23; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-3.gat,34,22,0 script Skull 127,{ + set @obj, 24; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-3.gat,24,32,0 script Stalagmite 127,{ + set @obj, 25; + callfunc "Easter2010Loc_Check5"; + close; +} + +018-3.gat,65,30,0 script Torch 127,{ + set @obj, 26; + callfunc "Easter2010Loc_Check5"; + close; +} + diff --git a/npc/easter/2010/helper.txt b/npc/easter/2010/helper.txt new file mode 100644 index 00000000..2e37bbd2 --- /dev/null +++ b/npc/easter/2010/helper.txt @@ -0,0 +1,15 @@ +028-1.gat,130,47,0 script Control#Helper 127,{ +end; + +OnBarrierEnable: + set $Easter_2010_Npc_State2, ($Easter_2010_Npc_State2 & ~(E10_BARRIER_MASK << E10_BARRIER_SHIFT)) | (E10_BARRIER_ACTIVE << E10_BARRIER_SHIFT); + end; + +OnBarrierDisable: + set $Easter_2010_Npc_State2, ($Easter_2010_Npc_State2 & ~(E10_BARRIER_MASK << E10_BARRIER_SHIFT)) | (E10_BARRIER_OPEN << E10_BARRIER_SHIFT); + end; + +OnInit: + goto OnBarrierEnable; + +} -- cgit v1.2.3-70-g09d2