Discuz Thai

 ลืมรหัสผ่าน
 สมัครสมาชิก
ค้นหา
คำค้นยอดนิยม: ภาษาไทย discuz
Discuz! X2.5 Official VersionDiscuz X2.5 Thai Mr.JakVDO อัพเกรดดิสคัส 2.5
เจ้าของ: acaz

[A/M/H6.0] Mod Pet Display viewthread

[คัดลอกลิงก์]

24

กระทู้

0

ติดตาม

33

เครดิต

Newbie

Rank: 1

สิทธิ์ในการอ่าน
10
UID
8996
เครดิต
33
จิตพิศัย
33
Money
167
Gold
30
โพสต์
416
กระทู้
24
ลงทะเบียนเมื่อ
2008-11-6
ลงชื่อเข้าใช้ล่าสุด
2012-5-22
โพสต์เมื่อ 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'];

}
คัดลอกโค๊ด



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

6

กระทู้

0

ติดตาม

0

เครดิต

ยังไม่ได้ยืนยันสมาชิก

เด็กใหม่จ้า ...

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

0

กระทู้

0

ติดตาม

0

เครดิต

Newbie

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-5-22 02:18 , Processed in 0.052388 second(s), 6 queries , Memcache On.

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

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