57 lines
3.1 KiB
PHP
57 lines
3.1 KiB
PHP
<?php
|
||
if(!defined('GAME'))
|
||
{
|
||
die();
|
||
}
|
||
|
||
$goodkast = 1;
|
||
|
||
if( $itm['iznosNOW'] >= $itm['iznosMAX'] ) {
|
||
$goodkast = 0;
|
||
$u->error = 'Книга была испорчена... Это просто хлам...';
|
||
}
|
||
|
||
if($goodkast == 1) {
|
||
//
|
||
$u->error = 'Книга "'.$itm['name'].'" успешно использована...<br>Вы получили какую-то страницу с заклятием.';
|
||
//
|
||
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 (
|
||
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
|
||
);");
|
||
}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 (
|
||
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
|
||
);");
|
||
}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 (
|
||
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
|
||
);");
|
||
}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 (
|
||
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
|
||
);");
|
||
}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 (
|
||
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
|
||
);");
|
||
}
|
||
//
|
||
\User\ItemsModel::addItem( 4752 , $u->info['id'] , '|sudba=1' );
|
||
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = "'.$itm['id'].'" LIMIT 1');
|
||
//
|
||
}
|
||
|
||
?>
|