INSERTINTO`emulator_settings`(`key`,`value`)VALUES('subscriptions.hc.payday.query','SELECT SUM(cost_credits) AS `amount_spent` FROM `logs_shop_purchases` WHERE `user_id` = @user_id AND `timestamp` > @timestamp_start AND `timestamp` <= @timestamp_end AND `catalog_name` NOT LIKE \'CF_%\' AND `catalog_name` NOT LIKE \'CFC_%\';');
INSERTINTO`emulator_texts`(`key`,`value`)VALUES('commands.error.cmd_subscription.invalid_action','Invalid action specified. Must be add, +, remove or -');
INSERTINTO`emulator_texts`(`key`,`value`)VALUES('commands.error.cmd_subscription.type_not_found','%subscription% is not a valid subscription type');
INSERTINTO`emulator_texts`(`key`,`value`)VALUES('commands.error.cmd_subscription.invalid_params_time','Invalid time span, try: x minutes/days/weeks/months');
INSERTINTO`emulator_texts`(`key`,`value`)VALUES('commands.error.cmd_subscription.success_add_time','Successfully added %time% seconds to %subscription% on %user%');
INSERTINTO`emulator_texts`(`key`,`value`)VALUES('commands.error.cmd_subscription.user_not_have','%user% does not have the %subscription% subscription');
INSERTINTO`emulator_texts`(`key`,`value`)VALUES('commands.error.cmd_subscription.success_remove_time','Successfully removed %time% seconds from %subscription% on %user%');
INSERTINTO`emulator_texts`(`key`,`value`)VALUES('commands.error.cmd_subscription.success_remove_sub','Successfully removed %subscription% sub from %user%');
INSERTINTO`emulator_texts`(`key`,`value`)VALUES('commands.error.cmd_subscription.user_not_found','%user% was not found');
INSERTINTO`emulator_texts`(`key`,`value`)VALUES('subscriptions.hc.payday.message','Woohoo HC Payday has arrived! You have received %amount% credits to your purse. Enjoy!');
-- OPTIONAL HC MIGRATION
-- INSERT INTO users_subscriptions SELECT NULL, user_id, 'HABBO_CLUB' as `subscription_type`, UNIX_TIMESTAMP() AS `timestamp_start`, (club_expire_timestamp - UNIX_TIMESTAMP()) AS `duration`, 1 AS `active` FROM users_settings WHERE club_expire_timestamp > UNIX_TIMESTAMP();