121 lines
4.4 KiB
Plaintext
121 lines
4.4 KiB
Plaintext
|
<?
|
|||
|
if(!defined('GAME'))
|
|||
|
{
|
|||
|
die();
|
|||
|
}
|
|||
|
if($tr['var_id'] != '') {
|
|||
|
|
|||
|
$io = '';
|
|||
|
|
|||
|
/*
|
|||
|
1. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> - 1% , <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> , <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> , <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> , 3 <20><>. <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
2. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> 5 <20><><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> +200% <20><><EFBFBD><EFBFBD><EFBFBD> <20><> 3 <20><><EFBFBD><EFBFBD> (<28><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
|||
|
3. 1 <20><> 4 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> +15 (<28><><EFBFBD>.)
|
|||
|
4. <20><><EFBFBD> 20 <20><>.
|
|||
|
*/
|
|||
|
$trgos = false;
|
|||
|
|
|||
|
$key1 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4460 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
|
|||
|
$key2 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4461 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
|
|||
|
$key3 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4462 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
|
|||
|
$key4 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4463 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
|
|||
|
|
|||
|
if( isset($key1['id']) && isset($key2['id']) && isset($key3['id']) && isset($key4['id']) ) {
|
|||
|
mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `id` = '.$key1['id'].' OR `id` = '.$key2['id'].' OR `id` = '.$key3['id'].' OR `id` = '.$key4['id'].' LIMIT 4');
|
|||
|
$trgos = true;
|
|||
|
}
|
|||
|
|
|||
|
if( $trgos == true ) {
|
|||
|
if( rand(0,100) == 57 || $this->info['admin'] > 0 ) {
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
$io .= '<i><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></i>, ';
|
|||
|
$arts_1 = array();
|
|||
|
$arts_lvl = $this->info['level'];
|
|||
|
if( $arts_lvl < 4 ) {
|
|||
|
$arts_lvl = 4;
|
|||
|
}elseif( $arts_lvl > 10 ) {
|
|||
|
$arts_lvl = 10;
|
|||
|
}
|
|||
|
$sp1 = mysql_query('SELECT `items_id` FROM `items_main_data` WHERE `data` LIKE "%|art=%" AND `data` LIKE "%tr_lvl='.$arts_lvl.'%"');
|
|||
|
while( $pl1 = mysql_fetch_array($sp1) ) {
|
|||
|
$arts_1[] = $pl1['items_id'];
|
|||
|
}
|
|||
|
$arts_1 = $arts_1[rand(0,count($arts_1)-1)];
|
|||
|
if( $arts_1 > 0 ) {
|
|||
|
$this->addItem($arts_1,$this->info['id'],'|nosale=1|srok='.(1*86400).'',NULL,50);
|
|||
|
}
|
|||
|
//echo '['.$arts_1[rand(0,count($arts_1)-1)].'!'.count($arts_1).'!'.$arts_lvl.']';
|
|||
|
}
|
|||
|
|
|||
|
$recr=rand(0,99); // 1% 4510 - 40 <20><><EFBFBD> /3% 5021 - 20 <20><><EFBFBD> /10% 5020 -10 <20><><EFBFBD>/ 20% 4465 -5 <20><><EFBFBD>/ 100% 5017 - 1<><31><EFBFBD>
|
|||
|
$rcr=rand(0,99); // 5%4274 - 400 <20><> / 15% 4392/4392 - 100 <20><> / 30% 4392 -50 <20><>/ 100% 4464 - 20<32><30>
|
|||
|
|
|||
|
if( $recr > 98 ) {
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> +40 <20><><EFBFBD>.
|
|||
|
$io .= '<i><3E><><EFBFBD> <20><> 40 <20><><EFBFBD>.</i>, ';
|
|||
|
$this->addItem(4510,$this->info['id'],'|sudba='.$this->info['login']);
|
|||
|
}elseif( $recr > 96 ){
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> +20 <20><><EFBFBD>.
|
|||
|
$io .= '<i><3E><><EFBFBD> <20><> 20 <20><><EFBFBD>.</i>, ';
|
|||
|
$this->addItem(5021,$this->info['id'],'|sudba='.$this->info['login']);
|
|||
|
}elseif( $recr > 89 ){
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> +10 <20><><EFBFBD>.
|
|||
|
$io .= '<i><3E><><EFBFBD> <20><> 10 <20><><EFBFBD>.</i>, ';
|
|||
|
$this->addItem(5020,$this->info['id'],'|sudba='.$this->info['login']);
|
|||
|
}elseif( $recr > 79 ){
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> +5 <20><><EFBFBD>.
|
|||
|
$io .= '<i><3E><><EFBFBD> <20><> 5 <20><><EFBFBD>.</i>, ';
|
|||
|
$this->addItem(4465,$this->info['id'],'|sudba='.$this->info['login']);
|
|||
|
}else{
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> +1 <20><><EFBFBD>.
|
|||
|
$io .= '<i><3E><><EFBFBD> <20><> 1 <20><><EFBFBD>.</i>, ';
|
|||
|
$this->addItem(5017,$this->info['id'],'|sudba='.$this->info['login']);
|
|||
|
}
|
|||
|
|
|||
|
if( $rcr > 94 ) {
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> 400 <20><>.
|
|||
|
$io .= '<i><3E><><EFBFBD> <20><> 400 <20><>.</i> ';
|
|||
|
$this->addItem(4274,$this->info['id'],'|sudba='.$this->info['login']);
|
|||
|
}elseif( $rcr > 84 ){
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> 100 <20><>.
|
|||
|
$io .= '<i><3E><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> 100 <20><>.</i> ';
|
|||
|
$this->addItem(4392,$this->info['id'],'|sudba='.$this->info['login']);
|
|||
|
$this->addItem(4392,$this->info['id'],'|sudba='.$this->info['login']);
|
|||
|
}elseif( $rcr > 69 ){
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> 50 <20><>.
|
|||
|
$io .= '<i><3E><><EFBFBD> <20><> 50 <20><>.</i> ';
|
|||
|
$this->addItem(4392,$this->info['id'],'|sudba='.$this->info['login']);
|
|||
|
}else{
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> 20 <20><>.
|
|||
|
$io .= '<i><3E><><EFBFBD> <20><> 20 <20><>.</i> ';
|
|||
|
$this->addItem(4464,$this->info['id'],'|sudba='.$this->info['login']);
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
$elik_1 = array(
|
|||
|
4037,4038,4039,4040
|
|||
|
);
|
|||
|
$elik_1 = $elik_1[rand(0,3)];
|
|||
|
if( $elik_1 > 0 ) {
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1 <20><> 4 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
$io .= '<i><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> +22 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></i>, ';
|
|||
|
$this->addItem($elik_1,$this->info['id'],'|nosale=1|sudba='.$this->info['login'],NULL,1);
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> +200%
|
|||
|
$io .= '<i><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> +100% <20><><EFBFBD><EFBFBD><EFBFBD></i>, ';
|
|||
|
$this->addItem(4466,$this->info['id'],'');
|
|||
|
|
|||
|
}else{
|
|||
|
$no_open_itm = true;
|
|||
|
$this->error = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 4 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>.';
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
unset($i5,$i3,$i4);
|
|||
|
?>
|