Utf8 convert
This commit is contained in:
@@ -9,7 +9,7 @@ if($e['bm_a1']=='wpchrr2' && $end > 0)
|
||||
$hpmin = $this->atacks[$end]['uid_'.$uid2.'_t1']+$this->atacks[$end]['uid_'.$uid2.'_t4']+$this->atacks[$end]['uid_'.$uid2.'_t5'];
|
||||
if(rand(0,10000)<1000 && $hpmin > 0) //500
|
||||
{
|
||||
//íàíîñèì óðîí ìàãè÷åñêèì êîëüöîì
|
||||
//наносим урон магическим кольцом
|
||||
$hpmin = rand(10,20);
|
||||
//
|
||||
if (isset($this->stats[$this->uids[$uid2]]['zaproc']))
|
||||
@@ -21,7 +21,7 @@ if($e['bm_a1']=='wpchrr2' && $end > 0)
|
||||
if($hpmin < 0) { $hpmin = 0; }
|
||||
$hp2 = $this->stats[$this->uids[$uid2]]['hpNow'];
|
||||
|
||||
//ðàñ÷åò óðîíà ñòèõèé
|
||||
//расчет урона стихий
|
||||
|
||||
$hp2 -= $hpmin;
|
||||
if($hp2<=0)
|
||||
@@ -34,7 +34,7 @@ if($e['bm_a1']=='wpchrr2' && $end > 0)
|
||||
|
||||
$hp1 = $this->stats[$this->uids[$uid1]]['hpNow'];
|
||||
|
||||
//ðàñ÷åò óðîíà ñòèõèé
|
||||
//расчет урона стихий
|
||||
if ($hp1>0){
|
||||
$hp1 += $hpmin;
|
||||
}
|
||||
@@ -50,7 +50,7 @@ if($e['bm_a1']=='wpchrr2' && $end > 0)
|
||||
|
||||
$this->takeExp($u->info['id'],$hpmin,$uid1,$uid2);
|
||||
|
||||
//îòíèìàåì ÍÐ
|
||||
//отнимаем НР
|
||||
$this->users[$this->uids[$uid2]]['hpNow'] = $hp2;
|
||||
$this->stats[$this->uids[$uid2]]['hpNow'] = $hp2;
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = '.$hp2.' WHERE `id` = "'.$uid2.'" LIMIT 1');
|
||||
@@ -61,7 +61,7 @@ if($e['bm_a1']=='wpchrr2' && $end > 0)
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = '.$hp1.' WHERE `id` = "'.$uid1.'" LIMIT 1');
|
||||
$this->priemYronSave($this->users[$this->uids[$uid2]]['id'],$this->users[$this->uids[$uid1]]['id'],-1*$hpmin,1);
|
||||
|
||||
//çàíîñèì â ëîã áîÿ
|
||||
//заносим в лог боя
|
||||
$vLog = 'time1='.time().'||s1='.$this->users[$this->uids[$uid1]]['sex'].'||t1='.$this->users[$this->uids[$uid1]]['team'].'||login1='.$this->users[$this->uids[$uid1]]['login'].'||s2='.$this->users[$this->uids[$uid2]]['sex'].'||t2='.$this->users[$this->uids[$uid2]]['team'].'||login2='.$this->users[$this->uids[$uid2]]['login'].'';
|
||||
$mas1 = array('time'=>time(),'battle'=>$this->info['id'],'id_hod'=>($this->hodID),'text'=>'','vars'=>$vLog,'zona1'=>'','zonb1'=>'','zona2'=>'','zonb2'=>'','type'=>'1');
|
||||
if($hpmin>0)
|
||||
@@ -72,12 +72,12 @@ if($e['bm_a1']=='wpchrr2' && $end > 0)
|
||||
$hpmin1 = '--';
|
||||
$hpmin = '--';
|
||||
}
|
||||
$mas1['text'] = '{tm1} {u1} âûòÿíóë çäîðîâüå ó {u2} ïðè ïîìîùè "<b>'.$itm['name'].'</b> (Âûòÿãèâàíèå äóøè [2])". <b title=Òèï óðîíà: òüìà ><font color=Purple>'.$hpmin.'</font></b> ['.ceil($hp2).'/'.$this->stats[$this->uids[$uid2]]['hpAll'].'] / <b title=Òèï óðîíà: òüìà ><font color=green>'.$hpmin1.'</font></b> ['.ceil($hp1).'/'.$this->stats[$this->uids[$uid1]]['hpAll'].']';
|
||||
$mas1['text'] = '{tm1} {u1} вытянул здоровье у {u2} при помощи "<b>'.$itm['name'].'</b> (Вытягивание души [2])". <b title=Тип урона: тьма ><font color=Purple>'.$hpmin.'</font></b> ['.ceil($hp2).'/'.$this->stats[$this->uids[$uid2]]['hpAll'].'] / <b title=Тип урона: тьма ><font color=green>'.$hpmin1.'</font></b> ['.ceil($hp1).'/'.$this->stats[$this->uids[$uid1]]['hpAll'].']';
|
||||
$this->add_log($mas1);
|
||||
|
||||
// ñïàñåíèå
|
||||
// спасение
|
||||
$this->spaCheck($this->stats[$this->uids[$uid2]]['id']);
|
||||
// ñïàñåíèå
|
||||
// спасение
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user