brenoepics / morningstar

An open-source Arcturus Community Fork.
GNU General Public License v3.0
3 stars 2 forks source link

New campaign calendar system - [merged] #1514

Closed brenoepics closed 1 year ago

brenoepics commented 2 years ago

In GitLab by @brenoepic on Mar 2, 2022, 20:10

Merges calendar-fix -> dev

Fix issues #708 #709

What was fixed or added?

Example campaign:

productname must exist in productdata or swf won't show the furni you got

%% variables were added because some rewards may not have a defined value for example: habbo gives twice as many duckets to hc users so if it was duckets_200 it would be wrong because the hc user received 400.

-- ----------------------------
-- Records of calendar_campaigns
-- ----------------------------
INSERT INTO `calendar_campaigns` VALUES ('1', 'xmas15', '', '2022-02-09 16:49:13', '31', '1', '1');

-- ----------------------------
-- Records of calendar_rewards
-- ----------------------------
INSERT INTO `calendar_rewards` VALUES ('144', '1', '%credits%credit_prize_14', 'client_static/advent_extras_coins.png', '1', '0', '0', '0', '', '0', null, '0');
INSERT INTO `calendar_rewards` VALUES ('145', '1', '%credits%credit_prize_14', 'client_static/advent_extras_coins.png', '2', '0', '0', '0', '', '0', null, '0');
INSERT INTO `calendar_rewards` VALUES ('143', '1', 'duckets_%pixels%', 'client_static/advent_extras_ducket.png', '0', '200', '0', '0', '', '0', null, '0');
INSERT INTO `calendar_rewards` VALUES ('142', '1', 'duckets_%pixels%', 'client_static/advent_extras_ducket.png', '0', '100', '0', '0', '', '0', null, '0');
INSERT INTO `calendar_rewards` VALUES ('146', '1', '%item%', '', '0', '0', '0', '0', '', '3030', null, '0');
INSERT INTO `calendar_rewards` VALUES ('147', '1', 'val_hSeat_3', '', '0', '0', '0', '0', '', '3388', null, '0');
INSERT INTO `calendar_rewards` VALUES ('148', '1', '%item%', '', '0', '0', '0', '0', '', '3371', null, '0');
INSERT INTO `calendar_rewards` VALUES ('149', '1', '%item%', '', '0', '0', '0', '0', '', '10481', null, '0');
INSERT INTO `calendar_rewards` VALUES ('150', '1', '%item%', '', '0', '0', '0', '0', '', '11259', null, '0');
INSERT INTO `calendar_rewards` VALUES ('151', '1', '%item%', '', '0', '0', '0', '0', '', '4432', null, '0');
INSERT INTO `calendar_rewards` VALUES ('152', '1', '%item%', '', '0', '0', '0', '0', '', '44480', null, '0');
INSERT INTO `calendar_rewards` VALUES ('153', '1', '%item%', '', '0', '0', '0', '0', '', '9951', null, '0');
INSERT INTO `calendar_rewards` VALUES ('154', '1', '%item%', '', '0', '0', '0', '0', '', '4926', null, '0');
INSERT INTO `calendar_rewards` VALUES ('155', '1', '%subscription_type%_VIP_%subscription_days%_DAYS', 'client_static/advent_extras_hc.png', '0', '0', '0', '0', '', '0', 'HABBO_CLUB', '3');
INSERT INTO `calendar_rewards` VALUES ('1', '1', '%subscription_type%_VIP_%subscription_days%_DAY', 'client_static/advent_extras_hc.png', '0', '0', '0', '0', '', '0', 'HABBO_CLUB', '1');
INSERT INTO `calendar_rewards` VALUES ('3', '1', 'xmas_c19_unicornfigure2', '', '0', '0', '0', '0', '', '10929', null, '0');
brenoepics commented 2 years ago

In GitLab by @brenoepic on Mar 2, 2022, 20:11

changed target branch from master to dev

brenoepics commented 2 years ago

In GitLab by @brenoepic on Mar 2, 2022, 20:39

added 9 commits

Compare with previous version

brenoepics commented 2 years ago

In GitLab by @brenoepic on Mar 19, 2022, 15:26

added 32 commits

Compare with previous version

brenoepics commented 2 years ago

In GitLab by @brenoepic on Mar 20, 2022, 16:15

added 10 commits

Compare with previous version

brenoepics commented 2 years ago

In GitLab by @Harmonic on Mar 21, 2022, 15:51

mentioned in commit 46e6a8e7da982b4c3d366c2b0571682f76a49207