summaryrefslogtreecommitdiff
path: root/world/map/npc/xmas/2011/xmas2011config.txt
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2011-10-31 18:31:57 +0100
committerJessica Tölke <jtoelke@mail.upb.de>2011-12-08 16:21:34 +0100
commitb7220816487ded7d73bc0eadf53d7abf55af29cd (patch)
tree65a053442ac46c0d3bbb047fd0ffbc7582bbeff0 /world/map/npc/xmas/2011/xmas2011config.txt
parenta71ae4883c221690510aed5ab438cd39d21919ad (diff)
downloadserverdata-b7220816487ded7d73bc0eadf53d7abf55af29cd.tar.gz
serverdata-b7220816487ded7d73bc0eadf53d7abf55af29cd.tar.bz2
serverdata-b7220816487ded7d73bc0eadf53d7abf55af29cd.tar.xz
serverdata-b7220816487ded7d73bc0eadf53d7abf55af29cd.zip
Christmas Event 2011
Diffstat (limited to 'world/map/npc/xmas/2011/xmas2011config.txt')
-rw-r--r--world/map/npc/xmas/2011/xmas2011config.txt194
1 files changed, 194 insertions, 0 deletions
diff --git a/world/map/npc/xmas/2011/xmas2011config.txt b/world/map/npc/xmas/2011/xmas2011config.txt
new file mode 100644
index 00000000..d6894d74
--- /dev/null
+++ b/world/map/npc/xmas/2011/xmas2011config.txt
@@ -0,0 +1,194 @@
+-|script|#xmas2011config|-1,{
+OnInit:
+ set $@xmas2011_start_day, 10;
+ set $@xmas2011_reward_start_day, 25;
+ set $@xmas2011_year, 2011;
+ set $@glove_id, 2160;
+
+ set $@xmas11_talkedToChief, 0x1;
+ set $@xmas11_talkedToBadGuy, 0x2;
+
+ set $@xmas11_startedReinbooSearch, 0x4;
+ set $@xmas11_firstReinboo, 0x8;
+ set $@xmas11_firstReinbooDone, 0x10;
+ set $@xmas11_secondReinboo, 0x20;
+ set $@xmas11_secondReinbooDone, 0x40;
+ set $@xmas11_thirdReinboo, 0x80;
+ set $@xmas11_thirdReinbooDone, 0x100;
+ set $@xmas11_fourthReinboo, 0x200;
+ set $@xmas11_fourthReinbooDone, 0x400;
+
+ set $@xmas11_Decoration, 0x800;
+ set $@xmas11_DecorationDone, 0x1000;
+ set $@xmas11_Bedding, 0x2000;
+ set $@xmas11_BeddingDone, 0x4000;
+ set $@xmas11_Potion, 0x8000;
+ set $@xmas11_PotionDone, 0x10000;
+
+ set $@xmas11_PlushMoubooMask, 0xE0000;
+ set $@xmas11_PlushMoubooShift, 17;
+
+ set $@xmas11_StickReinbooMask, 0x700000;
+ set $@xmas11_StickReinbooShift, 20;
+
+ set $@xmas11_DollMask, 0x3800000;
+ set $@xmas11_DollShift, 23;
+
+ set $@xmas11_BallMask, 0x1C000000;
+ set $@xmas11_BallShift, 26;
+
+ set $@xmas11_BadGuyReward, 0x20000000;
+ set $@xmas11_SantaReward, 0x40000000;
+
+// 0x80000000
+
+ set $@xmas2011_reinboopoints, 10;
+ set $@xmas2011_beddingpoints, 10;
+ set $@xmas2011_glitterpoints, 10;
+ set $@xmas2011_potionpoints, 10;
+ set $@xmas2011_plushmouboopoints, 10;
+ set $@xmas2011_stickreinboopoints, 10;
+ set $@xmas2011_ballpoints, 10;
+ set $@xmas2011_dollpoints, 10;
+
+ set $@xmas2011_totalpoints, 4*$@xmas2011_reinboopoints + $@xmas2011_beddingpoints + $@xmas2011_glitterpoints + $@xmas2011_potionpoints + $@xmas2011_plushmouboopoints + $@xmas2011_stickreinboopoints + $@xmas2011_ballpoints + $@xmas2011_dollpoints;
+
+ set $@xmas2011_main_rewardcost, 70;
+ set $@xmas2011_toy_rewardcost, 30;
+ set $@xmas2011_gloves_rewardcost, 8;
+ set $@xmas2011_gingerbreadman_rewardcost, 5;
+ set $@xmas2011_xmascake_rewardcost, 3;
+ set $@xmas2011_candy_rewardcost, 1;
+}
+
+// calculates the points for helping and sabotating
+function|script|xmas2011points|{
+ set @plushmouboo, (xmas11 & $@xmas11_PlushMoubooMask) >> $@xmas11_PlushMoubooShift;
+ set @stickreinboo, (xmas11 & $@xmas11_StickReinbooMask) >> $@xmas11_StickReinbooShift;
+ set @ball, (xmas11 & $@xmas11_BallMask) >> $@xmas11_BallShift;
+ set @doll, (xmas11 & $@xmas11_DollMask) >> $@xmas11_DollShift;
+ set @helppoints, 0;
+ set @sabotagepoints, 0;
+
+ if ((xmas11 & $@xmas11_firstReinbooDone) && !(xmas11 & $@xmas11_firstReinboo))
+ set @helppoints, @helppoints + $@xmas2011_reinboopoints;
+ if ((xmas11 & $@xmas11_firstReinbooDone) && (xmas11 & $@xmas11_firstReinboo))
+ set @sabotagepoints, @sabotagepoints + $@xmas2011_reinboopoints;
+
+ if ((xmas11 & $@xmas11_secondReinbooDone) && !(xmas11 & $@xmas11_secondReinboo))
+ set @helppoints, @helppoints + $@xmas2011_reinboopoints;
+ if ((xmas11 & $@xmas11_secondReinbooDone) && (xmas11 & $@xmas11_secondReinboo))
+ set @sabotagepoints, @sabotagepoints + $@xmas2011_reinboopoints;
+
+ if ((xmas11 & $@xmas11_thirdReinbooDone) && !(xmas11 & $@xmas11_thirdReinboo))
+ set @helppoints, @helppoints + $@xmas2011_reinboopoints;
+ if ((xmas11 & $@xmas11_thirdReinbooDone) && (xmas11 & $@xmas11_thirdReinboo))
+ set @sabotagepoints, @sabotagepoints + $@xmas2011_reinboopoints;
+
+ if ((xmas11 & $@xmas11_fourthReinbooDone) && !(xmas11 & $@xmas11_fourthReinboo))
+ set @helppoints, @helppoints + $@xmas2011_reinboopoints;
+ if ((xmas11 & $@xmas11_fourthReinbooDone) && (xmas11 & $@xmas11_fourthReinboo))
+ set @sabotagepoints, @sabotagepoints + $@xmas2011_reinboopoints;
+
+ if ((xmas11 & $@xmas11_PotionDone) && !(xmas11 & $@xmas11_Potion))
+ set @helppoints, @helppoints + $@xmas2011_potionpoints;
+ if ((xmas11 & $@xmas11_PotionDone) && (xmas11 & $@xmas11_Potion))
+ set @sabotagepoints, @sabotagepoints + $@xmas2011_potionpoints;
+
+ if ((xmas11 & $@xmas11_BeddingDone) && !(xmas11 & $@xmas11_Bedding))
+ set @helppoints, @helppoints + $@xmas2011_beddingpoints;
+ if ((xmas11 & $@xmas11_BeddingDone) && (xmas11 & $@xmas11_Bedding))
+ set @sabotagepoints, @sabotagepoints + $@xmas2011_beddingpoints;
+
+ if ((xmas11 & $@xmas11_DecorationDone) && !(xmas11 & $@xmas11_Decoration))
+ set @helppoints, @helppoints + $@xmas2011_glitterpoints;
+ if ((xmas11 & $@xmas11_DecorationDone) && (xmas11 & $@xmas11_Decoration))
+ set @sabotagepoints, @sabotagepoints + $@xmas2011_glitterpoints;
+
+ if (@plushmouboo == 5)
+ set @helppoints, @helppoints + $@xmas2011_plushmouboopoints;
+ if (@plushmouboo == 6)
+ set @sabotagepoints, @sabotagepoints + $@xmas2011_plushmouboopoints;
+
+ if (@stickreinboo == 5)
+ set @helppoints, @helppoints + $@xmas2011_stickreinboopoints;
+ if (@stickreinboo == 6)
+ set @sabotagepoints, @sabotagepoints + $@xmas2011_stickreinboopoints;
+
+ if (@ball == 5)
+ set @helppoints, @helppoints + $@xmas2011_ballpoints;
+ if (@ball == 6)
+ set @sabotagepoints, @sabotagepoints + $@xmas2011_ballpoints;
+
+ if (@doll == 5)
+ set @helppoints, @helppoints + $@xmas2011_dollpoints;
+ if (@doll == 6)
+ set @sabotagepoints, @sabotagepoints + $@xmas2011_dollpoints;
+
+ set @plushmouboo, 0;
+ set @stickreinboo, 0;
+ set @ball, 0;
+ set @doll, 0;
+ return;
+}
+
+function|script|xmas2011debug|{
+ menu
+ "i'm fine",L_Close,
+ "show my points",L_Points,
+ "show variable",L_Var,
+ "restart",L_Restart,
+ "reset",-;
+ set xmas11, 0;
+ close;
+L_Restart:
+ set xmas11, 0;
+ set xmas11, xmas11 | $@xmas11_talkedToChief;
+ close;
+
+L_Points:
+ callfunc "xmas2011points";
+ mes "Good points: " + @helppoints;
+ mes "Bad points: " + @sabotagepoints;
+ close;
+
+L_Var:
+ mes "Talked to Chief: " + ((xmas11 & 0x1));
+ mes "Talked to Bad Guy: " + ((xmas11 & 0x2) >> 1);
+ mes "Started Reinboo: " + ((xmas11 & 0x4) >> 2);
+ mes "R1 Bit 0: " + ((xmas11 & 0x8) >> 3);
+ mes "R1 Bit 1: " + ((xmas11 & 0x10) >> 4);
+ mes "R2 Bit 0: " + ((xmas11 & 0x20) >> 5);
+ mes "R2 Bit 1: " + ((xmas11 & 0x40) >> 6);
+ mes "R3 Bit 0: " + ((xmas11 & 0x80) >> 7);
+ mes "R3 Bit 1: " + ((xmas11 & 0x100) >> 8);
+ mes "R4 Bit 0: " + ((xmas11 & 0x200) >> 9);
+ mes "R4 Bit 1: " + ((xmas11 & 0x400) >> 10);
+ mes "Dec Bit 0: " + ((xmas11 & 0x800) >> 11);
+ mes "Dec Bit 1: " + ((xmas11 & 0x1000) >> 12);
+ mes "Bed Bit 0: " + ((xmas11 & 0x2000) >> 13);
+ mes "Bed Bit 1: " + ((xmas11 & 0x4000) >> 14);
+ mes "Pot Bit 0: " + ((xmas11 & 0x8000) >> 15);
+ mes "Pot Bit 1" + ((xmas11 & 0x10000) >> 16);
+ mes "plushmouboo b0: " + ((xmas11 & 0x20000) >> 17);
+ mes "plushmouboo b1: " + ((xmas11 & 0x40000) >> 18);
+ mes "plushmouboo b2: " + ((xmas11 & 0x80000) >> 19);
+ mes "stickreinboo b0: " + ((xmas11 & 0x100000) >> 20);
+ mes "stickreinboo b1: " + ((xmas11 & 0x200000) >> 21);
+ mes "stickreinboo b1: " + ((xmas11 & 0x400000) >> 22);
+ mes "doll b0: " + ((xmas11 & 0x800000) >> 23);
+ mes "doll b1: " + ((xmas11 & 0x1000000) >> 24);
+ mes "doll b2: " + ((xmas11 & 0x2000000) >> 25);
+ mes "ball b0: " + ((xmas11 & 0x4000000) >> 26);
+ mes "ball b1: " + ((xmas11 & 0x8000000) >> 27);
+ mes "ball b2: " + ((xmas11 & 0x10000000) >> 28);
+ mes "bad guy reward: " + ((xmas11 & 0x20000000) >> 29);
+ mes "santa reward: " + ((xmas11 & 0x40000000) >> 30);
+ mes "not used: " + ((xmas11 & 0x80000000) >> 31);
+ close;
+
+L_Close:
+ set @helppoints, 0;
+ set @sabotagepoints, 0;
+ close;
+}