📄 tkbox.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,'kingh',1,1);
showmessage("你打开潘多拉宝箱 获得了1个".$addcname."~·<BR><BR><a href=pet.php?index=storage>宠物仓库</a>");
}elseif($rand==2){
updatestoragebyitemname($discuz_user,'cxtk',1,1);
showmessage("你打开潘多拉宝箱 获得了1个".$addcname1."~·<BR><BR><a href=pet.php?index=storage>宠物仓库</a>");
}elseif($rand==3){
updatestoragebyitemname($discuz_user,'qttk',1,1);
showmessage("你打开潘多拉宝箱 获得了1个".$addcname2."~·<BR><BR><a href=pet.php?index=storage>宠物仓库</a>");
}elseif($rand==4){
updatestoragebyitemname($discuz_user,'gztk',1,1);
showmessage("你打开潘多拉宝箱 获得了1个".$addcname3."~·<BR><BR><a href=pet.php?index=storage>宠物仓库</a>");
}elseif($rand==5){
updatestoragebyitemname($discuz_user,'xttk',1,1);
showmessage("你打开潘多拉宝箱 获得了1个".$addcname4."~·<BR><BR><a href=pet.php?index=storage>宠物仓库</a>");
}elseif($rand==6){
updatestoragebyitemname($discuz_user,'qltk',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 + -