Utf8 convert
This commit is contained in:
@@ -9,7 +9,7 @@ if($e['bm_a1']=='itm10026' && $end > 0)
|
||||
$hpmin = $this->atacks[$end]['uid_'.$uid1.'_t1']+$this->atacks[$end]['uid_'.$uid1.'_t4']+$this->atacks[$end]['uid_'.$uid1.'_t5'];
|
||||
if(rand(0,10000)<5000 && $hpmin > 0)
|
||||
{
|
||||
//íàíîñèì óðîí ìàãè÷åñêèì êîëüöîì
|
||||
//наносим урон магическим кольцом
|
||||
$hpmin = rand(7,16);
|
||||
$hpmin = $hpmin*$this->users[$this->uids[$uid2]]['level'];
|
||||
//
|
||||
@@ -17,7 +17,7 @@ if($e['bm_a1']=='itm10026' && $end > 0)
|
||||
if($hpmin < 0) { $hpmin = 0; }
|
||||
$hp2 = $this->stats[$this->uids[$uid2]]['hpNow'];
|
||||
|
||||
//ðàñ÷åò óðîíà ñòèõèé
|
||||
//расчет урона стихий
|
||||
|
||||
$hp2 -= $hpmin;
|
||||
if($hp2<0)
|
||||
@@ -30,12 +30,12 @@ if($e['bm_a1']=='itm10026' && $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');
|
||||
|
||||
//çàíîñèì â ëîã áîÿ
|
||||
//заносим в лог боя
|
||||
$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)
|
||||
@@ -47,11 +47,11 @@ if($e['bm_a1']=='itm10026' && $end > 0)
|
||||
$rtm=rand(1,2);
|
||||
if ($rtm==1)
|
||||
{
|
||||
$mas1['text'] = '{tm1} {u2} Ëåäÿíîé âåòåð îò "<b>'.$itm['name'].'</b>" íàíåñ ïîâðåæäåíèÿ <b title=Òèï óðîíà: õîëîä ><font color=#0000FF>'.$hpmin.'</font></b> ['.ceil($hp2).'/'.$this->stats[$this->uids[$uid2]]['hpAll'].']';
|
||||
$mas1['text'] = '{tm1} {u2} Ледяной ветер от "<b>'.$itm['name'].'</b>" нанес повреждения <b title=Тип урона: холод ><font color=#0000FF>'.$hpmin.'</font></b> ['.ceil($hp2).'/'.$this->stats[$this->uids[$uid2]]['hpAll'].']';
|
||||
}
|
||||
elseif ($rtm==2)
|
||||
{
|
||||
$mas1['text'] = '{tm1} {u2} "<b>'.$itm['name'].'</b>" îñòàâèë ïå÷àòü õîëîäà <b title=Òèï óðîíà: õîëîä ><font color=#0000FF>'.$hpmin.'</font></b> ['.ceil($hp2).'/'.$this->stats[$this->uids[$uid2]]['hpAll'].']';
|
||||
$mas1['text'] = '{tm1} {u2} "<b>'.$itm['name'].'</b>" оставил печать холода <b title=Тип урона: холод ><font color=#0000FF>'.$hpmin.'</font></b> ['.ceil($hp2).'/'.$this->stats[$this->uids[$uid2]]['hpAll'].']';
|
||||
}
|
||||
|
||||
$this->add_log($mas1);
|
||||
|
||||
Reference in New Issue
Block a user