Убрал вызов User->addDelo.
This commit is contained in:
+35
-28
@@ -2667,18 +2667,20 @@ class Battle
|
||||
if ($this->info['money'] > 0) {
|
||||
if (isset($gm[$i])) {
|
||||
$prc .= ' Вы выйграли <strong>' . $gm[$i] . ' кр.</strong> за этот бой.';
|
||||
$u->addDelo(
|
||||
4, $this->users[$i]['id'],
|
||||
'"<font color="olive">System.battle</font>": Персонаж выйграл <strong>' . $gm[$i] . ' кр.</strong> (В бою №' . $this->info['id'] . ').',
|
||||
time(), $this->info['city'], 'System.battle', 0, 0
|
||||
Delo::add(
|
||||
4,
|
||||
'System.battle',
|
||||
$this->users[$i]['id'],
|
||||
'"<span style="color: olive; ">System.battle</span>": Персонаж выйграл <strong>' . $gm[$i] . ' кр.</strong> (В бою №' . $this->info['id'] . ').',
|
||||
);
|
||||
$this->users[$i]['money'] += $gm[$i];
|
||||
} elseif (isset($bm[$i])) {
|
||||
$prc .= ' Вы заплатили <strong>' . $bm[$i] . ' кр.</strong> за этот бой.';
|
||||
$u->addDelo(
|
||||
4, $this->users[$i]['id'],
|
||||
'"<font color="olive">System.battle</font>": Персонаж <i>проиграл</i> <strong>' . $gm[$i] . ' кр.</strong> (В бою №' . $this->info['id'] . ').',
|
||||
time(), $this->info['city'], 'System.battle', 0, 0
|
||||
Delo::add(
|
||||
4,
|
||||
'System.battle',
|
||||
$this->users[$i]['id'],
|
||||
'"<span style="color: olive; ">System.battle</span>": Персонаж <i>проиграл</i> <strong>' . $gm[$i] . ' кр.</strong> (В бою №' . $this->info['id'] . ').',
|
||||
);
|
||||
$this->users[$i]['money'] -= $bm[$i];
|
||||
}
|
||||
@@ -2758,10 +2760,11 @@ class Battle
|
||||
if ($this->info['type'] != 33) {
|
||||
$prc .= ', Награда <strong>' . $admn . ' ЕКР</strong> за этот бой.';
|
||||
}
|
||||
$u->addDelo(
|
||||
4, $this->users[$i]['id'],
|
||||
'"<font color="olive">System.battle</font>": Персонаж получил <strong>' . $admn . ' ЕКР</strong> (В бою №' . $this->info['id'] . ').',
|
||||
time(), $this->info['city'], 'System.battle', 0, 0
|
||||
Delo::add(
|
||||
4,
|
||||
'System.battle',
|
||||
$this->users[$i]['id'],
|
||||
'"<span style="color: olive; ">System.battle</span>": Персонаж получил <strong>' . $admn . ' ЕКР</strong> (В бою №' . $this->info['id'] . ').',
|
||||
);
|
||||
$this->users[$i]['money2'] += $admn;
|
||||
}
|
||||
@@ -2770,10 +2773,11 @@ class Battle
|
||||
if ($this->info['money3'] > 0) {
|
||||
if (isset($gms[$i])) {
|
||||
$prc .= ' Вы выйграли <strong>' . $gms[$i] . ' $.</strong> за этот бой.';
|
||||
$u->addDelo(
|
||||
4, $this->users[$i]['id'],
|
||||
'"<font color="olive">System.battle</font>": Персонаж выйграл <strong>' . $gms[$i] . ' $.</strong> (В бою №' . $this->info['id'] . ').',
|
||||
time(), $this->info['city'], 'System.battle', 0, 0
|
||||
Delo::add(
|
||||
4,
|
||||
'System.battle',
|
||||
$this->users[$i]['id'],
|
||||
'"<span style="color: olive; ">System.battle</span>": Персонаж выйграл <strong>' . $gms[$i] . ' $.</strong> (В бою №' . $this->info['id'] . ').',
|
||||
);
|
||||
$this->users[$i]['money3'] += $gms[$i];
|
||||
mysql_query(
|
||||
@@ -2781,10 +2785,11 @@ class Battle
|
||||
);
|
||||
} elseif (isset($bms[$i])) {
|
||||
$prc .= ' Вы заплатили <strong>' . $bms[$i] . ' $.</strong> за этот бой.';
|
||||
$u->addDelo(
|
||||
4, $this->users[$i]['id'],
|
||||
'"<font color="olive">System.battle</font>": Персонаж <i>проиграл</i> <strong>' . $gms[$i] . ' $.</strong> (В бою №' . $this->info['id'] . ').',
|
||||
time(), $this->info['city'], 'System.battle', 0, 0
|
||||
Delo::add(
|
||||
4,
|
||||
'System.battle',
|
||||
$this->users[$i]['id'],
|
||||
'"<span style="color: olive; ">System.battle</span>": Персонаж <i>проиграл</i> <strong>' . $gms[$i] . ' $.</strong> (В бою №' . $this->info['id'] . ').',
|
||||
);
|
||||
$this->users[$i]['money3'] -= $bms[$i];
|
||||
mysql_query(
|
||||
@@ -3796,18 +3801,20 @@ class Battle
|
||||
if (!$resulttp) {
|
||||
$cmsg->setText("<strong>Трупожор был пуст!</strong>");
|
||||
$chat->sendMsg($cmsg);
|
||||
$u->addDelo(
|
||||
4, $this->users[$this->uids[$uid]]['id'],
|
||||
'"<font color="olive">System.battle</font>": (В бою трупожор), ПУСТ!!! ', time(),
|
||||
$this->users[$this->uids[$uid]]['city'], 'System.battle', 0, 0
|
||||
Delo::add(
|
||||
4,
|
||||
'System.battle',
|
||||
$this->users[$this->uids[$uid]]['id'],
|
||||
'"<span style="color: olive; ">System.battle</span>": (В бою трупожор), ПУСТ!!! ',
|
||||
);
|
||||
} else {
|
||||
$cmsg->setText("<strong>Вы получили еврокредиты: $ecr екр.</strong>");
|
||||
$chat->sendMsg($cmsg);
|
||||
$u->addDelo(
|
||||
4, $this->users[$this->uids[$uid]]['id'],
|
||||
'"<font color="olive">System.battle</font>": Персонаж получил <strong>' . $ecr . ' ЕКР</strong> (В бою трупожор), сейчас: <strong>' . $this->users[$this->uids[$uid]]['money2'] . ' ЕКР</strong>',
|
||||
time(), $this->users[$this->uids[$uid]]['city'], 'System.battle', 0, 0
|
||||
Delo::add(
|
||||
4,
|
||||
'System.battle',
|
||||
$this->users[$this->uids[$uid]]['id'],
|
||||
'"<span style="color: olive; ">System.battle</span>": Персонаж получил <strong>' . $ecr . ' ЕКР</strong> (В бою трупожор), сейчас: <strong>' . $this->users[$this->uids[$uid]]['money2'] . ' ЕКР</strong>',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user