原創者:不詳
引用:
http://www.discuz.net/viewthread ... p;page=1#pid6918237
<?php
if(!defined('IN_DISCUZ')) { exit('Access Denied');}
if($mypetdata['twotime']>$timestamp){
showmessage("您當前已經使用了其他卡片,時間尚未結束!<BR><BR><a href=pet.php?index=storage&itemtype=$itemtype>寵物倉庫</a>");
}
updatestoragebyid(-1,$storageid);
$db->query("UPDATE {$tablepre}wxpetdata SET twoname='exp20',twotime='$timestamp'+120 WHERE username='$discuz_user'");
showmessage("使用【<font color=red> {$cname} </font>】成功,時間效果2分鐘!<BR><BR><a href=pet.php?index=storage&itemtype=$itemtype>寵物倉庫</a>");
?>
上面文件存為 expcard20.php
上傳至 wxpet/itemuse目錄內
後台增加 expcard20物品
然後修改fight.php和petajax.php2個文件
找到相應的exp3和expcard3後面增加exp20和expcard20
如沒有改動過以上兩份文件,可以下載覆蓋..供測試用測試