57 lines
2.9 KiB
PHP
57 lines
2.9 KiB
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
|
|
);");
|
|
}
|
|
//
|
|
$u->addItem( 4752 , $u->info['id'] , '|sudba=1' );
|
|
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = "'.$itm['id'].'" LIMIT 1');
|
|
//
|
|
}
|
|
|
|
?>
|