⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kjbox.php

📁 天使宠物 V6 Final版 天使宠物 V6 Final版目前支持Discuz!6.0 和 Discuz!6.1论坛
💻 PHP
字号:
<?php
if(!defined('IN_DISCUZ')) { exit('Access Denied');}

updatestoragebyid(-1,$storageid);
			    $rand=rand(1,7);
				$addcname = "皇者之铠";
				$addcname1 = "初心者护手";
				$addcname2 = "青铜护手";
				$addcname3 = "贵族护手";
				$addcname4 = "玄铁护手";
				$addcname5 = "权利护手";
				if($rand>80){
				    updatestoragebyitemname($discuz_user,'kingb',1,1);
					showmessage("你打开潘多拉宝箱 获得了1个".$addcname."~·<BR><BR><a href=pet.php?index=storage>宠物仓库</a>");
				}elseif($rand>70){
					updatestoragebyitemname($discuz_user,'cxhs',1,1);
					showmessage("你打开潘多拉宝箱 获得了1个".$addcname1."~·<BR><BR><a href=pet.php?index=storage>宠物仓库</a>");
				}elseif($rand>60){
					updatestoragebyitemname($discuz_user,'qths',1,1);
					showmessage("你打开潘多拉宝箱 获得了1个".$addcname2."~·<BR><BR><a href=pet.php?index=storage>宠物仓库</a>");
				}elseif($rand>50){
					updatestoragebyitemname($discuz_user,'gzhs',1,1);
					showmessage("你打开潘多拉宝箱 获得了1个".$addcname3."~·<BR><BR><a href=pet.php?index=storage>宠物仓库</a>");
				}elseif($rand>45){
					updatestoragebyitemname($discuz_user,'xths',1,1);
					showmessage("你打开潘多拉宝箱 获得了1个".$addcname4."~·<BR><BR><a href=pet.php?index=storage>宠物仓库</a>");
				}elseif($rand>40){
					updatestoragebyitemname($discuz_user,'qlhs',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 + -