game/_incl_data/class/magic/toms.php

57 lines
3.1 KiB
PHP
Raw Normal View History

2022-06-06 21:30:34 +00:00
<?
if(!defined('GAME'))
{
die();
}
$goodkast = 1;
if( $itm['iznosNOW'] >= $itm['iznosMAX'] ) {
$goodkast = 0;
2023-01-10 16:29:32 +00:00
$u->error = 'Книга была испорчена... Это просто хлам...';
2022-06-06 21:30:34 +00:00
}
if($goodkast == 1) {
//
2023-01-10 16:29:32 +00:00
$u->error = 'Книга &quot;'.$itm['name'].'&quot; успешно использована...<br>Вы получили какую-то страницу с заклятием.';
2022-06-06 21:30:34 +00:00
//
mysql_query('DELETE FROM `eff_users` WHERE `uid` = "'.$u->info['id'].'" AND `overType` = "9"');
//
if( $itm['item_id'] == 4740 ) {
mysql_query("INSERT INTO `eff_users` (
`id_eff`, `uid`, `name`, `data`, `overType`, `timeUse`, `timeAce`, `user_use`, `delete`, `v1`, `v2`, `img2`, `x`, `hod`, `bj`, `sleeptime`, `no_Ace`, `file_finish`, `tr_life_user`, `deactiveTime`, `deactiveLast`, `mark`
) VALUES (
2023-01-10 16:29:32 +00:00
377, '".$u->info['id']."', 'Зелёный Том Знаний', 'add_s1=10', 9, ".time().", 0, '".$u->info['login']."', 0, '0', 0, '', 1, -1, '0', 0, 1, '', 0, 0, 0, 0
2022-06-06 21:30:34 +00:00
);");
}elseif( $itm['item_id'] == 4741 ) {
mysql_query("INSERT INTO `eff_users` (
`id_eff`, `uid`, `name`, `data`, `overType`, `timeUse`, `timeAce`, `user_use`, `delete`, `v1`, `v2`, `img2`, `x`, `hod`, `bj`, `sleeptime`, `no_Ace`, `file_finish`, `tr_life_user`, `deactiveTime`, `deactiveLast`, `mark`
) VALUES (
2023-01-10 16:29:32 +00:00
378, '".$u->info['id']."', 'Желтый Том Знаний', 'add_s2=10', 9, ".time().", 0, '".$u->info['login']."', 0, '0', 0, '', 1, -1, '0', 0, 1, '', 0, 0, 0, 0
2022-06-06 21:30:34 +00:00
);");
}elseif( $itm['item_id'] == 4742 ) {
mysql_query("INSERT INTO `eff_users` (
`id_eff`, `uid`, `name`, `data`, `overType`, `timeUse`, `timeAce`, `user_use`, `delete`, `v1`, `v2`, `img2`, `x`, `hod`, `bj`, `sleeptime`, `no_Ace`, `file_finish`, `tr_life_user`, `deactiveTime`, `deactiveLast`, `mark`
) VALUES (
2023-01-10 16:29:32 +00:00
379, '".$u->info['id']."', 'Красный Том Знаний', 'add_s3=10', 9, ".time().", 0, '".$u->info['login']."', 0, '0', 0, '', 1, -1, '0', 0, 1, '', 0, 0, 0, 0
2022-06-06 21:30:34 +00:00
);");
}elseif( $itm['item_id'] == 4743 ) {
mysql_query("INSERT INTO `eff_users` (
`id_eff`, `uid`, `name`, `data`, `overType`, `timeUse`, `timeAce`, `user_use`, `delete`, `v1`, `v2`, `img2`, `x`, `hod`, `bj`, `sleeptime`, `no_Ace`, `file_finish`, `tr_life_user`, `deactiveTime`, `deactiveLast`, `mark`
) VALUES (
2023-01-10 16:29:32 +00:00
380, '".$u->info['id']."', 'Синий Том Знаний', 'add_s5=10', 9, ".time().", 0, '".$u->info['login']."', 0, '0', 0, '', 1, -1, '0', 0, 1, '', 0, 0, 0, 0
2022-06-06 21:30:34 +00:00
);");
}elseif( $itm['item_id'] == 4744 ) {
mysql_query("INSERT INTO `eff_users` (
`id_eff`, `uid`, `name`, `data`, `overType`, `timeUse`, `timeAce`, `user_use`, `delete`, `v1`, `v2`, `img2`, `x`, `hod`, `bj`, `sleeptime`, `no_Ace`, `file_finish`, `tr_life_user`, `deactiveTime`, `deactiveLast`, `mark`
) VALUES (
2023-01-10 16:29:32 +00:00
381, '".$u->info['id']."', 'Белый Том Знаний', 'add_s1=5|add_s2=5|add_s3=5|add_s5=5', 9, ".time().", 0, '".$u->info['login']."', 0, '0', 0, '', 1, -1, '0', 0, 1, '', 0, 0, 0, 0
2022-06-06 21:30:34 +00:00
);");
}
//
$u->addItem( 4752 , $u->info['id'] , '|sudba=1' );
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = "'.$itm['id'].'" LIMIT 1');
//
}
?>