#4 Отображение рун в храме
This commit is contained in:
+10
-13
@@ -698,7 +698,7 @@ FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`
|
||||
//Òèï óðîíà: 0 - íåò óðîíà, 1 - êîëþùèé, 2 - ðóáÿùèé, 3 - äðîáÿùèé, 4 - ðåæóùèé, 5 - îãîíü, 6 - âîçäóõ, 7 - âîäà, 8 - çåìëÿ, 9 - ñâåò, 10 - òüìà, 11 - ñåðàÿ
|
||||
if ($item['type'] == 18) {
|
||||
//êîëþùèé
|
||||
$sss = ceil($st['s2'] * 1);
|
||||
$sss = ceil($st['s2'] * 0.75);
|
||||
} elseif ($item['type'] == 19) {
|
||||
//ðóáÿùèé
|
||||
$sss = ceil($st['s1'] * 0.75);
|
||||
@@ -6728,20 +6728,16 @@ FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`
|
||||
} elseif ($type == 67 && $pl['gift'] != '') {
|
||||
$see1 = 0;
|
||||
} elseif ($type == 11) { // Õðàì Çíàíèé (ïëàâêà ïðåäìåòîâ)
|
||||
if ($pl['inTransfer'] > 0 || (isset($po['sudba']) && $po['sudba'] != '0' && $po['sudba'] != $this->info['login'])) { // $po['sudba'] != ''&& $po['sudba'] != '0' && $po['sudba'] != '1' && $po['sudba'] != $this->info['id'])
|
||||
$see1 = 0;
|
||||
}
|
||||
if ($pl['type'] != 1 && $pl['type'] != 3 && $pl['type'] != 9 && $pl['type'] != 10 && $pl['type'] != 11 && $pl['type'] != 5 && $pl['type'] != 6 && $pl['type'] != 8 && $pl['type'] != 12 && $pl['type'] != 14 && $pl['type'] != 15 && $pl['type'] != 18 && $pl['type'] != 19 && $pl['type'] != 20 && $pl['type'] != 21 && $pl['type'] != 22 && $pl['type'] != 13 && $pl['type'] != 72 && $pl['item_id'] != 1035) {
|
||||
$see1 = 0;
|
||||
}
|
||||
if ($po['tr_lvl'] < 4 && $pl['item_id'] != 1035) {
|
||||
if (
|
||||
$pl['inTransfer'] > 0 ||
|
||||
(!empty($po['sudba']) && $po['sudba'] != $this->info['login']) ||
|
||||
!in_array($pl['type'], [1, 3, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 18, 19, 20, 21, 22, 72, 1035]) ||
|
||||
($po['tr_lvl'] < 4 && $pl['item_id'] != 1035)
|
||||
) {
|
||||
$see1 = 0;
|
||||
}
|
||||
} elseif ($type == 14) { // Õðàì Çíàíèé (ïëàâêà ðóí)
|
||||
if ($pl['inTransfer'] > 0) {
|
||||
$see1 = 0;
|
||||
}
|
||||
if ($pl['type'] != 31) {
|
||||
if ($pl['inTransfer'] > 0 || !in_array($pl['type'], [31, 6001, 6002, 6003]) {
|
||||
$see1 = 0;
|
||||
}
|
||||
} elseif ($type == 12) {
|
||||
@@ -12237,7 +12233,8 @@ LIMIT 1'));
|
||||
if ($this->info['upexpdate'] == 0) {
|
||||
$this->info['upexpdate'] = time();
|
||||
mysql_query('UPDATE `stats` SET `upexpdate` = "' . time() . '" WHERE `id` = "' . $this->info['id'] . '" LIMIT 1');
|
||||
} elseif (time() >= ($this->info['upexpdate'] + 4 * 60 * 60 * 24)) {
|
||||
} elseif (time() >= ($this->info['upexpdate'] + 400 * 60 * 60 * 24)) //4*60*60*24
|
||||
{
|
||||
$this->info['upexpdate'] = time();
|
||||
$this->info['expstopu'] = $this->info['expstopu'] + 1;
|
||||
mysql_query('UPDATE `stats` SET `upexpdate` = "' . time() . '",`expstopu` = `expstopu`+1 WHERE `id` = "' . $this->info['id'] . '" LIMIT 1');
|
||||
|
||||
Reference in New Issue
Block a user