ฑีฆายุโก โหตุ มหาราชา

Discuz Thai

 ลืมรหัสผ่าน
 สมัครสมาชิก
ค้นหา
คำค้นยอดนิยม: ภาษาไทยdiscuz
DiscuzX Patch 20110817 ThaiDiscuz X2 Thai Mr.JakDiscuz X2 Thai i~Designs
วิธีอัพเกรด Discuz! X2.0Discuz! Board คืออะไร???FAQ Discuz X
เจ้าของ: acaz

[A/M/H6.0] Mod Pet Display viewthread [คัดลอกลิงค์]

Rank: 1

สิทธิ์ในการอ่าน
10
UID
8996
เครดิต
33
จิตพิศัย
33
Money
118
Gold
30
โพสต์
408
กระทู้
21
สมัครสมาชิกเมื่อ
2008-11-6
เข้าสู่ระบบล่าสุด
2012-2-13
โพสต์เมื่อ 2009-6-23 11:11:08 |แสดงโพสต์ทั้งหมด
โฮสสำหรับดิสคัสโดยเฉพาะ
ค้นหา $post['attachments'] = array();
คัดลอกโค๊ดเพิ่มโคดนี้ไปด้านบน

if ($post[mypet]){

@include DISCUZ_ROOT.'./forumdata/cache/plugin_pet.php';

$petdir = $_DPLUGIN['pet']['vars']['imgdir'];

$petsettings = $_DPLUGIN['pet']['vars'];

$post['petusername'] =  rawurlencode($post['username']);

$t=time();

$today = gmdate ("Ymd",$t);

$post['petdiff'] = time() - $post['petregdate'];

$post['petregdate']=gmdate ("Ymd",$post['petregdate']);

$post['pett'] = $today-$post['petregdate'];

$post['petlevel'] = pow (log10 ($post['mypetexp']), 3);

$post['petshowlevel'] = floor ($post['petlevel'] + 1);

$post['levelpic']=intval($post['petshowlevel']/10);

$post['levelpic'] = $post['levelpic'] > '10' ? '11' : $post['levelpic'];

$post['level1']=intval($post['petshowlevel']/2);

$post['level2']=intval($post['petshowlevel']/2);

$post['petpic']=$post['mypetname'];

$post['pethp']=$post['mypethp'];

$post['petatk']=$post['mypetatk']+$post['item1']+$post['item2']+2+$post[level1];

$post['petdef']=$post['mypetdef']+$post['item3']+$post['item4']+$post['item5']+3+$post['level1'];

if($post['petshowlevel']<2){$post['petmaxhp']=$petsettings['basichp'];}

else{$post['petmaxhp']=$petsettings['basichp']+$post['petshowlevel']*5;}

$post['petsp']=$post['mypetsp']-$post['pett']*$petsettings['basicsp2'];

if($post['petsp']>$petsettings['basicsp']){$post['petsp']=$petsettings['basicsp'];}

$post['hpf']= floor (100 * ($post['pethp'] / $post['petmaxhp']));

$post['spf']= floor (100 * ($post['petsp'] / $petsettings['basicsp']));



$post['pethp'] = $post['pethp'] < '0' ? '0' : $post['pethp'];

$post['petsp'] = $post['petsp'] < '0' ? '0' : $post['petsp'];

$post['petdead'] = $post['pethp'] < '1' || $post['petsp'] < '1' ? 'ตาย' : 'มีชีวิต';

$post['petsex'] = $post['mypetsex'] < '2' ? 'เพศผู้' : 'เพศเมีย';

$post['petpk'] = $post['openpk'] < '2' ?  'พร้อมรบ' : 'ไม่พร้อมรบ';

$post['hpf'] = $post['hpf'] >= '100' ? '100' : $post['hpf'];

$post['spf'] = $post['spf'] >= '100' ? '100' : $post['spf'];

}
คัดลอกโค๊ด



แล้วมันทำให้ เวลาโพสตอบแล้วมันไม่รัเฟรส น่ะครับ แก้ไขอย่างไงหรือ

สิทธิ์ในการอ่าน
1
UID
24040
เครดิต
0
จิตพิศัย
0
Money
40
Gold
0
โพสต์
143
กระทู้
6
สมัครสมาชิกเมื่อ
2009-7-1
เข้าสู่ระบบล่าสุด
2010-8-13
โพสต์เมื่อ 2009-7-10 21:05:34 |แสดงโพสต์ทั้งหมด
ยอมทรับว่าลงยากมากๆเลยครับผม

Rank: 1

สิทธิ์ในการอ่าน
10
UID
25783
เครดิต
0
จิตพิศัย
0
Money
5
Gold
0
โพสต์
28
กระทู้
0
สมัครสมาชิกเมื่อ
2009-8-20
เข้าสู่ระบบล่าสุด
2011-10-10
โพสต์เมื่อ 2009-8-26 01:44:59 |แสดงโพสต์ทั้งหมด
โฮสสำหรับดิสคัสโดยเฉพาะ
ผมทำยังไม่ได้เลยครับ
คุณต้องเข้าสู่ระบบก่อนจึงจะสามารถตอบกลับ เข้าสู่ระบบ | สมัครสมาชิก

รูปแบบข้อความล้วน|โทรศัพท์มือถือ|ดิสคัส ไทย Follow us: Become a fan on facebook. Follow us on Twitter.

GMT+7, 2012-2-13 07:01 , Processed in 0.019392 second(s), 10 queries , Gzip On.

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

ขึ้นไปด้านบน