game/_incl_data/class/magic/toms.php

57 lines
2.9 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;
$u->error = '<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>... <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>...';
}
if($goodkast == 1) {
//
$u->error = '<27><><EFBFBD><EFBFBD><EFBFBD> &quot;'.$itm['name'].'&quot; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>...<br><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>-<2D><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.';
//
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']."', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', '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']."', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', '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']."', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', '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']."', '<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', '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']."', '<27><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', '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');
//
}
?>