?? xzbox.php
字號:
<?php
if(!defined('IN_DISCUZ')) { exit('Access Denied');}
updatestoragebyid(-1,$storageid);
$rand=rand(1,7);
$addcname = "皇者之靴";
$addcname1 = "初心者之靴";
$addcname2 = "青銅靴子";
$addcname3 = "貴族長靴";
$addcname4 = "玄鐵之靴";
$addcname5 = "權利之靴";
if($rand==1){
updatestoragebyitemname($discuz_user,'kings',1,1);
showmessage("你打開潘多拉寶箱 獲得了1個".$addcname."~·<BR><BR><a href=pet.php?index=storage>寵物倉庫</a>");
}elseif($rand==2){
updatestoragebyitemname($discuz_user,'cxxz',1,1);
showmessage("你打開潘多拉寶箱 獲得了1個".$addcname1."~·<BR><BR><a href=pet.php?index=storage>寵物倉庫</a>");
}elseif($rand==3){
updatestoragebyitemname($discuz_user,'qtxz',1,1);
showmessage("你打開潘多拉寶箱 獲得了1個".$addcname2."~·<BR><BR><a href=pet.php?index=storage>寵物倉庫</a>");
}elseif($rand==4){
updatestoragebyitemname($discuz_user,'gzxz',1,1);
showmessage("你打開潘多拉寶箱 獲得了1個".$addcname3."~·<BR><BR><a href=pet.php?index=storage>寵物倉庫</a>");
}elseif($rand==5){
updatestoragebyitemname($discuz_user,'xtzx',1,1);
showmessage("你打開潘多拉寶箱 獲得了1個".$addcname4."~·<BR><BR><a href=pet.php?index=storage>寵物倉庫</a>");
}elseif($rand==6){
updatestoragebyitemname($discuz_user,'qlzx',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>");
}
?>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -