?? wqbox.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,'cxzd',1,1);
showmessage("你打開潘多拉寶箱 獲得了1個".$addcname."~·<BR><BR><a href=pet.php?index=storage>寵物倉庫</a>");
}elseif($rand==2){
updatestoragebyitemname($discuz_user,'qtzf',1,1);
showmessage("你打開潘多拉寶箱 獲得了1個".$addcname1."~·<BR><BR><a href=pet.php?index=storage>寵物倉庫</a>");
}elseif($rand==3){
updatestoragebyitemname($discuz_user,'gzcq',1,1);
showmessage("你打開潘多拉寶箱 獲得了1個".$addcname2."~·<BR><BR><a href=pet.php?index=storage>寵物倉庫</a>");
}elseif($rand==4){
updatestoragebyitemname($discuz_user,'xtzj',1,1);
showmessage("你打開潘多拉寶箱 獲得了1個".$addcname3."~·<BR><BR><a href=pet.php?index=storage>寵物倉庫</a>");
}elseif($rand==5){
updatestoragebyitemname($discuz_user,'qlzz',1,1);
showmessage("你打開潘多拉寶箱 獲得了1個".$addcname4."~·<BR><BR><a href=pet.php?index=storage>寵物倉庫</a>");
}elseif($rand==6){
updatestoragebyitemname($discuz_user,'kingw',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 + -