3 define(
'CURSCRIPT',
'help');
5 require
'./include/common.inc.php';
28 if($mix[
'class'] !==
'hidden'){
29 foreach(
$iteminfo as $info_key => $info_value){
30 if(strpos($mix[
'result'][1],$info_key)===0){
31 $mixitmk = $info_value;
36 if(!empty($mix[
'result'][4]) && !is_numeric($mix[
'result'][4])){
37 for ($j = 0; $j < strlen($mix[
'result'][4]); $j++) {
38 $sub = substr($mix[
'result'][4],$j,1);
43 if(!empty($mixitmsk)){$mixitmsk = substr($mixitmsk,0,-1);}
45 $mixitem[$mix[
'class']][] = array(
'stuff' => $mix[
'stuff'],
'result' => array($mix[
'result'][0],$mixitmk,$mix[
'result'][2],$mix[
'result'][3],$mixitmsk));
51 'wp'=> array(
'殴系武器',
'yellow'),
52 'wk'=> array(
'斩系武器',
'yellow'),
53 'wg'=> array(
'射系武器',
'yellow'),
54 'wc'=> array(
'投系武器',
'yellow'),
55 'wd'=> array(
'爆系武器',
'yellow'),
56 'wf'=> array(
'灵系武器',
'yellow'),
57 'w' => array(
'其他装备',
'yellow'),
58 'h' => array(
'补给品',
'lime'),
59 'pokemon'=> array(
'小黄系道具',
'yellow'),
60 'ocg'=> array(
'游戏王系道具',
'clan'),
61 'key'=> array(
'KEY系道具',
'lime'),
62 'cube'=> array(
'方块系道具',
'yellow'),
63 'item'=> array(
'其他道具',
'yellow'),
66 foreach(
$mixitem as $class => $list){
67 $classname = $mixclass[$class][0];
68 $classcolor = $mixclass[$class][1];
69 $mixhelpinfo .=
"<p><span class=\"$classcolor\">{$classname}合成表</span>:</p>\n";
73 <td class=\"b1\" height=20px><span>合成材料一</span></td>
74 <td class=\"b1\"><span>合成材料二</span></td>
75 <td class=\"b1\"><span>合成材料三</span></td>
76 <td class=\"b1\"><span>合成材料四</span></td>
77 <td class=\"b1\"><span>合成材料五</span></td>
78 <td class=\"b1\"></td>
79 <td class=\"b1\"><span>合成结果</span></td>
80 <td class=\"b1\"><span>用途</span></td>
83 foreach($list as $val){
84 if(!empty($val[
'result'][4])){$itmskword =
'/'.$val[
'result'][4];}
85 else{$itmskword =
'';}
86 if(!isset($val[
'stuff'][2])){$val[
'stuff'][2] =
'-';}
87 if(!isset($val[
'stuff'][3])){$val[
'stuff'][3] =
'-';}
88 if(!isset($val[
'stuff'][4])){$val[
'stuff'][4] =
'-';}
89 $mixhelpinfo .=
"<tr>";
92 $mixhelpinfo .=
"<td class=\"b3\" ";
93 if (
$i==0) $mixhelpinfo .=
"height=20px ";
94 include_once
GAME_ROOT.
'./include/game/itemplace.func.php';
95 if ($val[
'stuff'][
$i]!=
'-') $mixhelpinfo .=
"title=\"".get_item_place($val[
'stuff'][
$i]).
"\" ";
96 $mixhelpinfo .=
"><span>{$val['stuff'][$i]}</span></td>";
98 $mixhelpinfo .=
"<td class=\"b3\">→</td>
99 <td class=\"b3\" title=\"{$val['result'][1]}/{$val['result'][2]}/{$val['result'][3]}{$itmskword}\"><span>{$val['result'][0]}</span></td>
100 <td class=\"b3\"><span>{$val['result'][1]}/{$val['result'][2]}/{$val['result'][3]}{$itmskword}</span></td>
104 $mixhelpinfo .=
"</table>\n";
111 <STYLE type=text/css>
113 FONT-SIZE: 10pt;MARGIN: 0; color:#eee; FONT-FAMILY:
"Trebuchet MS",
"Gill Sans",
"Microsoft Sans Serif",sans-serif;
122 color: #98fb98;text-decoration:underline
128 PADDING-LEFT: 1em;PADDING-right: 1em
132 font-family:
"微软雅黑"; color: #98fb98; width: 100%;font-size: 16px;font-weight:900;
136 PADDING-LEFT: 1em; line-height:16px
148 include
template(
'help');
writeover($filename, $data, $method="rb+", $iflock=1, $check=1, $chmod=1)
config($file= '', $cfg=1)
if(filemtime($mixfile) > filemtime($writefile)||filemtime($shopfile) > filemtime($writefile)||filemtime($mapitemfile) > filemtime($writefile)||filemtime($synfile) > filemtime($writefile)||filemtime($ovlfile) > filemtime($writefile)||filemtime($presentfile) > filemtime($writefile)||filemtime($boxfile) > filemtime($writefile)) $extrahead