?? tzbox.php
字號:
<?php
if(!defined('IN_DISCUZ')) { exit('Access Denied');}
updatestoragebyid(-1,$storageid);
$rand=rand(1,100);
$addcname = "玄鐵套裝";
$addcname1 = "初心者套裝";
$addcname2 = "皇者套裝";
$addcname3 = "青銅套裝";
$addcname4 = "權(quán)利套裝";
$addcname5 = "死神套裝";
if($rand>90){
updatestoragebyitemname($discuz_user,'xtzj',1,1);
updatestoragebyitemname($discuz_user,'xtjz',1,1);
updatestoragebyitemname($discuz_user,'xttk',1,1);
updatestoragebyitemname($discuz_user,'xths',1,1);
updatestoragebyitemname($discuz_user,'xtzx',1,1);
showmessage("你打開潘多拉寶箱 獲得了1套".$addcname."~·<BR><BR><a href=pet.php?index=storage>寵物倉庫</a>");
}elseif($rand>80){
updatestoragebyitemname($discuz_user,'cxzd',1,1);
updatestoragebyitemname($discuz_user,'cxjz',1,1);
updatestoragebyitemname($discuz_user,'cxtk',1,1);
updatestoragebyitemname($discuz_user,'cxhs',1,1);
updatestoragebyitemname($discuz_user,'cxxz',1,1);
showmessage("你打開潘多拉寶箱 獲得了1套".$addcname1."~·<BR><BR><a href=pet.php?index=storage>寵物倉庫</a>");
}elseif($rand>75){
updatestoragebyitemname($discuz_user,'kingw',1,1);
updatestoragebyitemname($discuz_user,'kingl',1,1);
updatestoragebyitemname($discuz_user,'kingh',1,1);
updatestoragebyitemname($discuz_user,'kingb',1,1);
updatestoragebyitemname($discuz_user,'kings',1,1);
showmessage("你打開潘多拉寶箱 獲得了1套".$addcname2."~·<BR><BR><a href=pet.php?index=storage>寵物倉庫</a>");
}elseif($rand>71){
updatestoragebyitemname($discuz_user,'qtzf',1,1);
updatestoragebyitemname($discuz_user,'qtjz',1,1);
updatestoragebyitemname($discuz_user,'qttk',1,1);
updatestoragebyitemname($discuz_user,'qths',1,1);
updatestoragebyitemname($discuz_user,'qtxz',1,1);
showmessage("你打開潘多拉寶箱 獲得了1套".$addcname3."~·<BR><BR><a href=pet.php?index=storage>寵物倉庫</a>");
}elseif($rand>68){
updatestoragebyitemname($discuz_user,'qlzz',1,1);
updatestoragebyitemname($discuz_user,'qlyd',1,1);
updatestoragebyitemname($discuz_user,'qltk',1,1);
updatestoragebyitemname($discuz_user,'qlhs',1,1);
updatestoragebyitemname($discuz_user,'qlzx',1,1);
showmessage("你打開潘多拉寶箱 獲得了1套".$addcname4."~·<BR><BR><a href=pet.php?index=storage>寵物倉庫</a>");
}elseif($rand>64){
updatestoragebyitemname($discuz_user,'wmtcst',1,1);
updatestoragebyitemname($discuz_user,'wmtcyj',1,1);
updatestoragebyitemname($discuz_user,'wmtcmj',1,1);
updatestoragebyitemname($discuz_user,'wmtccp',1,1);
updatestoragebyitemname($discuz_user,'wmtczx',1,1);
showmessage("你打開潘多拉寶箱 獲得了1套".$addcname5."~·<BR><BR><a href=pet.php?index=storage>寵物倉庫</a>");
}else{
showmessage("你打開潘多拉寶箱 可惜甚么都沒有獲得~·<BR><BR><a href=pet.php?index=storage>寵物倉庫</a>");
}
?>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -