Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
phpdts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nemo Ma
phpdts
Commits
e591301d
Commit
e591301d
authored
Mar 24, 2023
by
Nemo Ma
Committed by
GitHub
Mar 24, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #87 from hikawiier/waaagh
Add itemmix_tips & hotkey
parents
943c6c7b
177385cb
Changes
34
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
34 changed files
with
829 additions
and
82 deletions
+829
-82
command.php
command.php
+13
-3
gamedata/cache/gamecfg_1.php
gamedata/cache/gamecfg_1.php
+1
-1
gamedata/cache/overlay_1.php
gamedata/cache/overlay_1.php
+9
-9
gamedata/cache/synitem_1.php
gamedata/cache/synitem_1.php
+10
-10
include/game/itemmix.func.php
include/game/itemmix.func.php
+382
-0
include/game/itemplace.func.php
include/game/itemplace.func.php
+187
-0
include/game20130526.js
include/game20130526.js
+63
-1
include/global.func.php
include/global.func.php
+39
-6
include/resources.func.php
include/resources.func.php
+24
-0
templates/default/battlecmd_rev.htm
templates/default/battlecmd_rev.htm
+4
-4
templates/default/battleresult.htm
templates/default/battleresult.htm
+1
-1
templates/default/command.htm
templates/default/command.htm
+16
-16
templates/default/corpse.htm
templates/default/corpse.htm
+1
-1
templates/default/deathnote.htm
templates/default/deathnote.htm
+1
-1
templates/default/dialogue.htm
templates/default/dialogue.htm
+4
-4
templates/default/elementmix.htm
templates/default/elementmix.htm
+2
-2
templates/default/findneut.htm
templates/default/findneut.htm
+1
-1
templates/default/findteam.htm
templates/default/findteam.htm
+1
-1
templates/default/game.htm
templates/default/game.htm
+10
-1
templates/default/header.htm
templates/default/header.htm
+1
-1
templates/default/itemdrop.htm
templates/default/itemdrop.htm
+1
-1
templates/default/itemdrop0.htm
templates/default/itemdrop0.htm
+1
-1
templates/default/itemencase.htm
templates/default/itemencase.htm
+2
-2
templates/default/itemfind.htm
templates/default/itemfind.htm
+3
-3
templates/default/itemmerge.htm
templates/default/itemmerge.htm
+3
-3
templates/default/itemmix.htm
templates/default/itemmix.htm
+2
-2
templates/default/itemmix_result.htm
templates/default/itemmix_result.htm
+14
-0
templates/default/itemmix_tips.htm
templates/default/itemmix_tips.htm
+26
-0
templates/default/nametag.htm
templates/default/nametag.htm
+1
-1
templates/default/radarcmd.htm
templates/default/radarcmd.htm
+1
-1
templates/default/rest.htm
templates/default/rest.htm
+2
-2
templates/default/shop.htm
templates/default/shop.htm
+1
-1
templates/default/sp_shop.htm
templates/default/sp_shop.htm
+1
-1
templates/default/team.htm
templates/default/team.htm
+1
-1
No files found.
command.php
View file @
e591301d
...
...
@@ -57,7 +57,6 @@ if(!empty($llist)){
$llist
=
'('
.
substr
(
$llist
,
0
,
-
1
)
.
')'
;
$db
->
query
(
"UPDATE
{
$tablepre
}
log SET prcsd=1 WHERE toid = '
$pid
' AND lid IN
$llist
"
);
}
//var_dump($_POST);
if
(
$hp
>
0
){
//显示枪声信息
...
...
@@ -120,6 +119,13 @@ if($hp > 0){
$mode
=
'command'
;
}
else
{
//进入指令判断
if
(
!
empty
(
$itemindex
))
{
$opendialog
=
'itemmix_tips'
;
$mode
=
'command'
;
$command
=
'itemmain'
;
$itemcmd
=
'itemmix'
;
}
if
(
strpos
(
$action
,
'chase'
)
===
false
&&
strpos
(
$action
,
'dfight'
)
===
false
&&
$mode
!==
'combat'
&&
$mode
!==
'revcombat'
&&
$mode
!==
'corpse'
&&
strpos
(
$action
,
'pacorpse'
)
===
false
&&
$mode
!==
'senditem'
){
$action
=
''
;
}
...
...
@@ -158,6 +164,9 @@ if($hp > 0){
$emax
=
get_emix_itme_max
();
foreach
(
$elements_info
as
$e_key
=>
$e_info
)
$
{
'etaginfo'
.
$e_key
}
=
"<span tooltip=
\"
"
.
print_elements_tags
(
$e_key
)
.
"
\"
>"
;
}
elseif
(
$itemcmd
==
'itemmix'
){
$main
=
'itemmix_tips'
;
}
$mode
=
$itemcmd
;
}
}
elseif
(
$command
==
'song'
)
{
...
...
@@ -339,9 +348,10 @@ if($hp > 0){
if
(
$mixmask
&
(
1
<<
(
$i
-
1
)))
$mixlist
[]
=
$i
;
}
include_once
GAME_ROOT
.
'./include/game/itemmix.func.php'
;
if
(
isset
(
$itemselect
))
itemmix
(
$mixlist
,
$itemselect
);
else
itemmix
(
$mixlist
);
itemmix
_rev
(
$mixlist
,
$itemselect
);
else
itemmix
_rev
(
$mixlist
);
}
}
elseif
(
$command
==
'elementmix'
)
{
if
(
$club
==
20
){
...
...
gamedata/cache/gamecfg_1.php
View file @
e591301d
...
...
@@ -15,7 +15,7 @@ $areaesc = 1;
$isduel
=
0
;
//开启快捷键?0为不开启,1为开启
$hotkeyon
=
0
;
$hotkeyon
=
1
;
//开启NPC台词功能?0为不开启,1为开启
$npcchaton
=
1
;
//有台词的NPC(已废弃,只要登记过台词的NPC就会显示台词,需要关闭哪个NPC的台词功能请直接注释掉ta的台词)
...
...
gamedata/cache/overlay_1.php
View file @
e591301d
No91
.
雷闪龙
☆
4
,
WC
,
380
,
∞
,
Aar
,
4
,
5
,
No39
.
希望皇
霍普
☆
4
,
WC
,
240
,
∞
,
A
,
4
,
2
,
No9
.
天盖星
戴森球
☆
9
,
WC
,
233
,
∞
,
ea
,
9
,
2
,
星圣
欧米伽星云
☆
4
,
WC
,
251
,
∞
,
Mi
,
4
,
2
,
机甲忍者
刃心
☆
4
,
WC
,
160
,
∞
,
cr
,
4
,
2
,
英豪冠军
草雉剑王
,
WK
,
150
,
200
,
nc
,
4
,
3
,
始祖守护者
提拉斯
☆
5
-
仮
,
WC
,
200
,
∞
,,
5
,
2
,
NO7
.
幸运条纹人
☆
7
,
WC
,
300
,
∞
,
rc
,
7
,
3
,
超次元机器人
银河破坏王
☆
10
,
WC
,
800
,
∞
,
rdcm
,
10
,
3
,
\ No newline at end of file
No91
.
雷闪龙
☆
4
,
WC
,
380
,
∞
,
Aar
,
4
,
5
No39
.
希望皇
霍普
☆
4
,
WC
,
240
,
∞
,
A
,
4
,
2
No9
.
天盖星
戴森球
☆
9
,
WC
,
233
,
∞
,
ea
,
9
,
2
星圣
欧米伽星云
☆
4
,
WC
,
251
,
∞
,
Mi
,
4
,
2
机甲忍者
刃心
☆
4
,
WC
,
160
,
∞
,
cr
,
4
,
2
英豪冠军
草雉剑王
,
WK
,
150
,
200
,
nc
,
4
,
3
始祖守护者
提拉斯
☆
5
-
仮
,
WC
,
200
,
∞
,,
5
,
2
NO7
.
幸运条纹人
☆
7
,
WC
,
300
,
∞
,
rc
,
7
,
3
超次元机器人
银河破坏王
☆
10
,
WC
,
800
,
∞
,
rdcm
,
10
,
3
\ No newline at end of file
gamedata/cache/synitem_1.php
View file @
e591301d
星尘龙
★
8
,
WC08
,
170
,
100
,
wMc
,
8
,
-
1
,
-
1
,
救世星龙
-
仮
,
WC
,
100
,
∞
,
cZ
,
9
,
救世龙
★
1
,
星尘龙
★
8
,
救世魔龙
-
仮
,
WC
,
100
,
∞
,
cd
,
9
,
救世龙
★
1
,
红莲魔龙
★
8
,
红莲魔龙
★
8
-
仮
,
WC
,
130
,
∞
,
cu
,
8
,
-
1
,
-
1
,
正义盟军
光明守望者
★
8
-
仮
,
WC
,
101
,
∞
,
Z
,
8
,
-
1
,
-
1
,
阿尔法大日
★
9
,
WC09
,
33
,
99
,
ebrj
,
9
,
-
1
,
-
1
,
超念力枪手
★
9
,
WC09
,
180
,
∞
,
NH
,
9
,
-
1
,
-
1
,
黑蔷薇龙
★
7
,
WC07
,
180
,
70
,
u
,
7
,
-
1
,
-
1
,
机巧将军
无零
★
7
,
WC07
,
252
,
∞
,
Z
,
7
,
-
1
,
-
1
,
流星龙
★
10
-
仮
,
WC
,
120
,
∞
,
c
,
10
,
-
1
,
-
1
,
\ No newline at end of file
星尘龙
★
8
,
WC08
,
170
,
100
,
wMc
,
8
,,
救世星龙
-
仮
,
WC
,
100
,
∞
,
cZ
,
9
,
救世龙
★
1
+
星尘龙
★
8
,
救世魔龙
-
仮
,
WC
,
100
,
∞
,
cd
,
9
,
救世龙
★
1
+
红莲魔龙
★
8
,
红莲魔龙
★
8
-
仮
,
WC
,
130
,
∞
,
cu
,
8
,,
正义盟军
光明守望者
★
8
-
仮
,
WC
,
101
,
∞
,
Z
,
8
,,
阿尔法大日
★
9
,
WC09
,
33
,
99
,
ebrj
,
9
,,
超念力枪手
★
9
,
WC09
,
180
,
∞
,
NH
,
9
,,
黑蔷薇龙
★
7
,
WC07
,
180
,
70
,
u
,
7
,,
机巧将军
无零
★
7
,
WC07
,
252
,
∞
,
Z
,
7
,,
流星龙
★
10
-
仮
,
WC
,
120
,
∞
,
c
,
10
,,
\ No newline at end of file
include/game/itemmix.func.php
0 → 100644
View file @
e591301d
This diff is collapsed.
Click to expand it.
include/game/itemplace.func.php
View file @
e591301d
...
...
@@ -3,6 +3,193 @@ if (! defined ( 'IN_GAME' )) {
exit
(
'Access Denied'
);
}
//以道具名反查mixinfo数据
//tp & 1 以原料反查,tp & 2 以产物反查
//返回mixinfo里的单个array
function
smartmix_find_recipe
(
$itm
,
$tp
=
0
)
{
include_once
GAME_ROOT
.
'./include/game/itemmix.func.php'
;
$mix_res
=
array
();
$itm
=
htmlspecialchars_decode
(
itemmix_name_proc
(
$itm
));
$mixinfo
=
get_mixinfo
();
foreach
(
$mixinfo
as
$ma
)
{
$ma
[
'type'
]
=
'normal'
;
//隐藏合成是无法查到的
if
((
$tp
&
1
&&
in_array
(
$itm
,
$ma
[
'stuff'
])
&&
$ma
[
'class'
]
!=
'hidden'
)
||
(
$tp
&
2
&&
$itm
==
$ma
[
'result'
][
0
])){
$mix_res
[]
=
$ma
;
}
}
return
$mix_res
;
}
//检查玩家包裹,返回可合成的道具列表
function
smartmix_check_available
(
$data
)
{
include_once
GAME_ROOT
.
'./include/game/itemmix.func.php'
;
extract
(
$data
);
//itms为零的道具不参与判断
$packn
=
array
();
for
(
$i
=
1
;
$i
<=
6
;
$i
++
){
if
(
!
empty
(
$
{
'itms'
.
$i
})){
$packn
[]
=
$i
;
//$packname[] = \itemmix\itemmix_name_proc(${'itm'.$i});
}
}
//生成道具序号的全组合
$fc
=
full_combination
(
$packn
,
2
);
//所有的组合全部判断一遍是否可以合成,最简单粗暴和兼容
$mix_available
=
$mix_overlay_available
=
$mix_sync_available
=
array
();
foreach
(
$fc
as
$fcval
){
$mix_res
=
itemmix_get_result
(
$fcval
,
$data
);
if
(
$mix_res
){
//$mix_res['type'] = 'normal';
$mix_available
[]
=
$mix_res
;
}
}
foreach
(
$fc
as
$fval
){
$mix_overlay_res
=
itemmix_overlay_check
(
$fval
);
if
(
$mix_overlay_res
){
foreach
(
$mix_overlay_res
as
$mkey
=>
$mval
){
//$mval['type'] = 'overlay';
if
(
!
isset
(
$mix_overlay_available
[
$mkey
])){
$mix_overlay_available
[
$mkey
]
=
array
(
$mval
);
}
else
{
$mix_overlay_available
[
$mkey
][]
=
$mval
;
}
}
}
$mix_sync_res
=
itemmix_sync_check
(
$fval
);
if
(
$mix_sync_res
){
foreach
(
$mix_sync_res
as
$mkey
=>
$mval
){
//$mval['type'] = 'sync';
if
(
!
isset
(
$mix_sync_available
[
$mkey
])){
$mix_sync_available
[
$mkey
]
=
array
(
$mval
);
}
else
{
$mix_sync_available
[
$mkey
][]
=
$mval
;
}
}
}
}
return
array
(
$mix_available
,
$mix_overlay_available
,
$mix_sync_available
);
}
function
init_itemmix_tips
(
$itemindex
=
''
,
&
$data
=
NULL
)
{
if
(
!
isset
(
$data
))
{
global
$pdata
;
$data
=
&
$pdata
;
}
extract
(
$data
,
EXTR_REFS
);
$mix_type
=
Array
(
'normal'
=>
'通常'
,
'sync'
=>
'同调'
,
'overlay'
=>
'超量'
);
$mhint
=
''
;
$smhint
=
''
;
if
(
!
empty
(
$itemindex
))
{
$mix_res
=
smartmix_find_recipe
(
$itemindex
,
1
+
2
);
if
(
$mix_res
){
$smhint
.=
'<span class="blueseed b">'
.
$itemindex
.
'</span>涉及的合成公式:<br><ul>'
;
foreach
(
$mix_res
as
$mval
){
if
(
!
isset
(
$mval
[
'type'
])
||
$mval
[
'type'
]
==
'normal'
){
foreach
(
$mval
[
'stuff'
]
as
$key
=>
$ms
){
if
(
$key
==
0
)
$smhint
.=
'<li>'
;
if
(
$ms
==
$itemindex
)
$smhint
.=
parse_smartmix_recipelink
(
$ms
)
.
' + '
;
else
$smhint
.=
parse_smartmix_recipelink
(
$ms
,
''
,
'grey'
)
.
' + '
;
}
$smhint
=
substr
(
$smhint
,
0
,
-
3
);
}
$mr
=
$mval
[
'result'
][
0
];
$smhint
.=
' → '
.
parse_smartmix_recipelink
(
$mr
,
parse_itemmix_resultshow
(
$mval
[
'result'
]),
'grey'
)
.
'</li>'
;
}
$smhint
.=
"</ul>"
;
}
else
{
$smhint
.=
'没有找到<span class="blueseed b">'
.
$itemindex
.
'</span>的相关合成公式<span class="grey">(不会显示隐藏公式)</span>'
;
}
return
$smhint
;
}
list
(
$mix_available
,
$mix_overlay_available
,
$mix_sync_available
)
=
smartmix_check_available
(
$data
);
if
(
empty
(
$mix_available
)
&&
empty
(
$mix_overlay_available
)
&&
empty
(
$mix_sync_available
)){
$mhint
.=
''
;
}
else
{
$mhint
.=
'<span class="blueseed b">可合成</span>:<br>'
;
$shown_list
=
array
();
foreach
(
$mix_available
as
$mlist
){
//第一层:不同配方
$mstuff
=
$mresult
=
''
;
$o_type
=
''
;
foreach
(
$mlist
as
$mval
){
//第二层:不同结果
if
(
!
empty
(
$o_type
)
&&
$o_type
!=
$mval
[
'type'
])
{
//换类型时把上一合成类别显示,并且清空显示的配方和结果列表
$mtstr
=
''
;
if
(
isset
(
$mix_type
[
$o_type
]))
$mtstr
=
$mix_type
[
$o_type
];
$show_str
=
'<span>'
.
$mstuff
.
'</span>可'
.
$mtstr
.
'合成:<ul>'
.
$mresult
.
'</ul><br>'
;
if
(
!
in_array
(
$show_str
,
$shown_list
)){
$shown_list
[]
=
$show_str
;
$mhint
.=
$show_str
;
}
$mstuff
=
$mresult
=
''
;
}
$o_type
=
$mval
[
'type'
];
if
(
!
$mstuff
)
{
//配方只显示1次
sort
(
$mval
[
'stuff'
]);
foreach
(
$mval
[
'stuff'
]
as
$ms
){
$mstuff
.=
parse_smartmix_recipelink
(
$ms
)
.
' + '
;
}
$mstuff
=
substr
(
$mstuff
,
0
,
-
3
);
}
$mresult
.=
'<li>'
.
parse_smartmix_recipelink
(
$mval
[
'result'
][
0
],
parse_itemmix_resultshow
(
$mval
[
'result'
]),
'yellow'
)
.
'</li>'
;
}
$mtstr
=
''
;
if
(
isset
(
$mix_type
[
$o_type
]))
$mtstr
=
$mix_type
[
$o_type
];
$show_str
=
'<span class="b">'
.
$mstuff
.
'</span>可'
.
$mtstr
.
'合成:<ul>'
.
$mresult
.
'</ul>'
;
if
(
!
in_array
(
$show_str
,
$shown_list
)){
$shown_list
[]
=
$show_str
;
$mhint
.=
$show_str
;
}
}
}
for
(
$i
=
0
;
$i
<=
6
;
$i
++
)
{
$itemindex
=
$
{
'itm'
.
$i
};
$mix_res
=
smartmix_find_recipe
(
$itemindex
,
1
+
2
);
if
(
$mix_res
){
$smhint
.=
'<span class="blueseed b">'
.
$itemindex
.
'</span>涉及的合成公式:<br><ul>'
;
foreach
(
$mix_res
as
$mval
){
if
(
!
isset
(
$mval
[
'type'
])
||
$mval
[
'type'
]
==
'normal'
){
foreach
(
$mval
[
'stuff'
]
as
$key
=>
$ms
){
if
(
$key
==
0
)
$smhint
.=
'<li>'
;
if
(
$ms
==
$
{
'itm'
.
$i
})
$smhint
.=
parse_smartmix_recipelink
(
$ms
)
.
' + '
;
else
$smhint
.=
parse_smartmix_recipelink
(
$ms
,
''
,
'grey'
)
.
' + '
;
}
$smhint
=
substr
(
$smhint
,
0
,
-
3
);
}
$mr
=
$mval
[
'result'
][
0
];
$smhint
.=
' → '
.
parse_smartmix_recipelink
(
$mr
,
parse_itemmix_resultshow
(
$mval
[
'result'
]),
'grey'
)
.
'</li>'
;
}
$smhint
.=
"</ul>"
;
}
}
if
(
!
empty
(
$smhint
))
{
//$smhint = "<span class=\"b\">素材不足:</span><br>".$smhint;
$mhint
.=
$smhint
;
}
$mhint
.=
'<br>'
;
return
$mhint
;
}
function
parse_smartmix_recipelink
(
$itemindex
,
$stext
=
''
,
$sstyle
=
''
){
return
"<a "
.
(
$sstyle
?
"class=
\"
{
$sstyle
}
\"
"
:
''
)
.
"onclick=
\"
$('itemindex').value='
$itemindex
';postCmd('maincmd','command.php');
\"
>"
.
(
$stext
?
$stext
:
$itemindex
)
.
'</a>'
;
}
function
parse_itemmix_resultshow
(
$rarr
){
$ret
=
$rarr
[
0
]
.
'/'
.
parse_info_desc
(
$rarr
[
1
],
'k'
,
''
,
0
,
'tooltip2'
)
.
'/'
.
$rarr
[
2
]
.
'/'
.
$rarr
[
3
];
$itmskw
=
!
empty
(
$rarr
[
4
])
?
parse_info_desc
(
$rarr
[
4
],
'sk'
,
$rarr
[
1
],
0
,
'tooltip2'
)
:
''
;
if
(
$itmskw
)
$ret
.=
'/'
.
$itmskw
;
return
$ret
;
}
function
get_npc_helpinfo
(
$nlist
,
$tooltip
=
1
)
{
global
$plsinfo
,
$hplsinfo
,
$gamecfg
,
$iteminfo
,
$clubinfo
;
...
...
include/game20130526.js
View file @
e591301d
function
hotkey
(
evt
)
/*
function hotkey(evt)
{
if(document.activeElement.tagName != 'INPUT'){
evt = (evt) ? evt : ((window.event) ? window.event : '');
...
...
@@ -9,6 +9,68 @@ function hotkey(evt)
}
}
}
}*/
var
ms
;
hotkey_ok
=
true
;
refchat_ok
=
true
;
function
hotkey
(
evt
)
{
if
(
hotkey_ok
&&
document
.
activeElement
.
tagName
!=
'
INPUT
'
){
evt
=
(
evt
)
?
evt
:
((
window
.
event
)
?
window
.
event
:
''
);
var
ky
=
evt
.
keyCode
?
evt
.
keyCode
:
evt
.
which
;
flag
=
1
;
//是否完成冷却
if
(
ms
!=
undefined
)
{
if
(
ms
>
0
)
flag
=
0
;
}
//双字母id=冷却时间内不可执行的操作 单字母可以执行
if
(
!
evt
.
ctrlKey
&&
!
evt
.
altKey
&&
!
evt
.
shiftKey
){
if
(
ky
==
90
){
flag
==
1
?
hotkey_click
(
'
zz
'
)
:
hotkey_click
(
'
z
'
);
}
else
if
(
ky
==
65
){
flag
==
1
?
hotkey_click
(
'
aa
'
)
:
hotkey_click
(
'
a
'
);
}
else
if
(
ky
==
83
){
flag
==
1
?
hotkey_click
(
'
ss
'
)
:
hotkey_click
(
'
s
'
);
}
else
if
(
ky
==
68
){
flag
==
1
?
hotkey_click
(
'
dd
'
)
:
hotkey_click
(
'
d
'
);
}
else
if
(
ky
==
81
){
flag
==
1
?
hotkey_click
(
'
qq
'
)
:
hotkey_click
(
'
q
'
);
}
else
if
(
ky
==
87
){
flag
==
1
?
hotkey_click
(
'
ww
'
)
:
hotkey_click
(
'
w
'
);
}
else
if
(
ky
==
69
){
flag
==
1
?
hotkey_click
(
'
ee
'
)
:
hotkey_click
(
'
e
'
);
}
else
if
(
ky
==
88
){
flag
==
1
?
hotkey_click
(
'
xx
'
)
:
hotkey_click
(
'
x
'
);
}
else
if
(
ky
==
67
){
flag
==
1
?
hotkey_click
(
'
cc
'
)
:
hotkey_click
(
'
c
'
);
}
else
if
(
ky
==
86
){
hotkey_click
(
'
v
'
);
}
else
if
(
ky
>=
49
&&
ky
<=
54
){
var
kc
=
(
ky
-
48
).
toString
();
flag
==
1
?
hotkey_click
(
kc
+
kc
)
:
hotkey_click
(
kc
);
}
}
}
}
function
hotkey_click
(
hkid
){
var
hk
=
$
(
hkid
);
if
(
hk
)
hk
.
click
();
else
if
((
hkid
==
'
zz
'
||
hkid
==
'
z
'
||
hkid
==
'
x
'
)
&&
$
(
'
zx
'
))
$
(
'
zx
'
).
click
();
else
if
(
hkid
.
length
>
1
)
{
hk
=
$
(
hkid
.
substr
(
0
,
1
));
if
(
hk
)
hk
.
click
();
}
}
//update time
...
...
include/global.func.php
View file @
e591301d
...
...
@@ -567,11 +567,12 @@ function player_format_with_db_structure($data){
}
return
$ndata
;
}
function
parse_info_desc
(
$info
,
$type
,
$vars
=
''
,
$short
=
0
)
function
parse_info_desc
(
$info
,
$type
,
$vars
=
''
,
$short
=
0
,
$tiptype
=
0
)
{
global
$iteminfo
,
$itemspkinfo
,
$cskills
;
global
$tps_name
,
$tps_names
,
$tps_ik
,
$tps_isk
;
$ttypes
=
$tiptype
?
$tiptype
:
'tooltip'
;
# 处理名字
if
(
$type
==
'm'
)
{
...
...
@@ -580,13 +581,13 @@ function parse_info_desc($info,$type,$vars='',$short=0)
{
$ts
=
$tps_names
[
$tps_name
[
$tinfo
]];
$tinfo_f
=
isset
(
$ts
[
'class'
])
?
"class=
\"
{
$ts
[
'class'
]
}
\"
"
:
''
;
$tinfo_tp
=
isset
(
$ts
[
'title'
])
?
"
tooltip
=
\"
{
$ts
[
'title'
]
}
\"
"
:
''
;
$tinfo_tp
=
isset
(
$ts
[
'title'
])
?
"
{
$ttypes
}
=
\"
{
$ts
[
'title'
]
}
\"
"
:
''
;
return
"<span
{
$tinfo_tp
}
{
$tinfo_f
}
>
{
$info
}
</span>"
;
}
elseif
(
isset
(
$tps_name
[
$tinfo
]))
{
$tinfo_f
=
isset
(
$tps_name
[
$tinfo
][
'class'
])
?
"class=
\"
{
$tps_name
[
$tinfo
][
'class'
]
}
\"
"
:
''
;
$tinfo_tp
=
isset
(
$tps_name
[
$tinfo
][
'title'
])
?
"
tooltip
=
\"
{
$tps_name
[
$tinfo
][
'title'
]
}
\"
"
:
''
;
$tinfo_tp
=
isset
(
$tps_name
[
$tinfo
][
'title'
])
?
"
{
$ttypes
}
=
\"
{
$tps_name
[
$tinfo
][
'title'
]
}
\"
"
:
''
;
return
"<span
{
$tinfo_tp
}
{
$tinfo_f
}
>
{
$info
}
</span>"
;
}
return
$info
;
...
...
@@ -605,7 +606,7 @@ function parse_info_desc($info,$type,$vars='',$short=0)
# 类别不存在样式或提示时,用大类尝试一下
if
(
!
isset
(
$tps_ik
[
$info
]))
$info
=
$v_info
;
$info_f
=
isset
(
$tps_ik
[
$info
][
'class'
])
?
"class=
\"
{
$tps_ik
[
$info
][
'class'
]
}
\"
"
:
''
;
$info_tp
=
isset
(
$tps_ik
[
$info
][
'title'
])
?
"
tooltip
=
\"
{
$tps_ik
[
$info
][
'title'
]
}
\"
"
:
''
;
$info_tp
=
isset
(
$tps_ik
[
$info
][
'title'
])
?
"
{
$ttypes
}
=
\"
{
$tps_ik
[
$info
][
'title'
]
}
\"
"
:
''
;
if
(
!
isset
(
$iteminfo
[
$info
]))
$info
=
$v_info
;
return
"<span
{
$info_tp
}
{
$info_f
}
>
{
$iteminfo
[
$info
]
}
</span>"
;
}
...
...
@@ -621,7 +622,7 @@ function parse_info_desc($info,$type,$vars='',$short=0)
if
(
!
empty
(
$info
)
&&
isset
(
$cskills
[
$info
]))
{
$sk
=
$cskills
[
$info
];
$sknm
=
$cskills
[
$info
][
'name'
];
return
"<span
tooltip
=
\"
阅读后可习得技能「
{
$sknm
}
」
\"
>知识</span>"
;
return
"<span
{
$ttypes
}
=
\"
阅读后可习得技能「
{
$sknm
}
」
\"
>知识</span>"
;
}
return
"--"
;
}
...
...
@@ -670,7 +671,7 @@ function parse_info_desc($info,$type,$vars='',$short=0)
if
(
$sk_max
>
$short_nums
&&
$short
)
$ret
=
$itemspkinfo
[
$info
[
0
]]
.
"+...+"
.
$itemspkinfo
[
end
(
$info
)];
if
(
!
empty
(
$sk_tp
))
{
$ret
=
"<span
tooltip
=
\"
{
$sk_tp
}
\"
>
{
$ret
}
</span>"
;
$ret
=
"<span
{
$ttypes
}
=
\"
{
$sk_tp
}
\"
>
{
$ret
}
</span>"
;
}
}
return
$ret
;
...
...
@@ -765,6 +766,38 @@ function generate_ndnumbers($min, $max, $count = 10)
return
$numbers
;
}
function
full_combination
(
$a
,
$min
)
{
$r
=
array
();
$n
=
count
(
$a
);
if
(
$n
>=
$min
){
for
(
$i
=
$min
;
$i
<=
$n
;
$i
++
){
$r
=
array_merge
(
$r
,
combination
(
$a
,
$i
));
}
}
return
$r
;
}
function
combination
(
$a
,
$m
)
{
$r
=
array
();
$n
=
count
(
$a
);
if
(
$m
<=
0
||
$m
>
$n
)
{
return
$r
;
}
for
(
$i
=
0
;
$i
<
$n
;
$i
++
)
{
$t
=
array
(
$a
[
$i
]);
if
(
$m
==
1
)
{
$r
[]
=
$t
;
}
else
{
$b
=
array_slice
(
$a
,
$i
+
1
);
$c
=
combination
(
$b
,
$m
-
1
);
foreach
(
$c
as
$v
)
{
$r
[]
=
array_merge
(
$t
,
$v
);
}
}
}
return
$r
;
}
function
mgzdecode
(
$data
)
{
return
gzinflate
(
substr
(
$data
,
10
,
-
8
));
...
...
include/resources.func.php
View file @
e591301d
...
...
@@ -31,6 +31,30 @@ function get_mixinfo()
if
(
!
empty
(
$vn_mixinfo
))
$mixinfo
=
array_merge
(
$mixinfo
,
$vn_mixinfo
);
return
$mixinfo
;
}
function
get_syncmixinfo
()
{
global
$gamecfg
;
$file
=
config
(
"synitem"
,
$gamecfg
);
$slist
=
openfile
(
$file
);
$n
=
count
(
$slist
);
$prp_res
=
array
();
for
(
$i
=
0
;
$i
<
$n
;
$i
++
){
$prp_res
[]
=
explode
(
','
,
$slist
[
$i
]);
}
return
$prp_res
;
}
function
get_overlaymixinfo
()
{
global
$gamecfg
;
$file
=
config
(
"overlay"
,
$gamecfg
);
$olist
=
openfile
(
$file
);
$n
=
count
(
$olist
);
$prp_res
=
array
();
for
(
$i
=
0
;
$i
<
$n
;
$i
++
){
$prp_res
[]
=
explode
(
','
,
$olist
[
$i
]);
}
return
$prp_res
;
}
# achievement_1.php
function
get_achtype
()
...
...
templates/default/battlecmd_rev.htm
View file @
e591301d
...
...
@@ -8,18 +8,18 @@
<tr>
<!-- 第一攻击方式 -->
<td
width=
100px
align=
"center"
style=
"vertical-align:top"
>
<input
type=
"button"
class=
"cmdbutton"
style=
"width:95"
name=
"w1"
value=
"
{$attinfo[$w1]}"
onclick=
"$('command').value='$w1';postCmd('gamecmd','command.php');this.disabled=true;"
>
<input
type=
"button"
class=
"cmdbutton"
style=
"width:95"
id=
"zz"
name=
"w1"
value=
"[Z]
{$attinfo[$w1]}"
onclick=
"$('command').value='$w1';postCmd('gamecmd','command.php');this.disabled=true;"
>
</td>
<!-- 第二攻击方式 -->
<!--{if $w2}-->
<td
width=
100px
>
<input
type=
"button"
class=
"cmdbutton"
style=
"width:95"
name=
"w2"
value=
"
{$attinfo[$w2]}"
onclick=
"$('command').value='$w2';postCmd('gamecmd','command.php');this.disabled=true;"
>
<input
type=
"button"
class=
"cmdbutton"
style=
"width:95"
id=
"aa"
name=
"w2"
value=
"[A]
{$attinfo[$w2]}"
onclick=
"$('command').value='$w2';postCmd('gamecmd','command.php');this.disabled=true;"
>
</td>
<!--{/if}-->
<td
width=
100px
>
<!-- 切换副武器 -->
<!--{if $pdata['wep2s']}-->
<input
type=
"button"
class=
"cmdbutton"
style=
"width:95"
value=
"
切换"
onclick=
"$('command').value='changewep';postCmd('gamecmd','command.php');this.disabled=true;"
>
<input
type=
"button"
class=
"cmdbutton"
style=
"width:95"
id=
"cc"
value=
"[C]
切换"
onclick=
"$('command').value='changewep';postCmd('gamecmd','command.php');this.disabled=true;"
>
<!--{/if}-->
</td>
</tr>
...
...
@@ -42,7 +42,7 @@
<!-- 末行:逃跑、坚守 -->
<tr>
<td
width=
100px
align=
"center"
style=
"vertical-align:top"
>
<input
type=
"button"
class=
"cmdbutton"
name=
"back"
style=
"width:95"
value=
"
逃跑"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
<input
type=
"button"
class=
"cmdbutton"
id=
"x"
name=
"back"
style=
"width:95"
value=
"[X]
逃跑"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
</td>
<td>
</td>
...
...
templates/default/battleresult.htm
View file @
e591301d
<input
type=
"hidden"
name=
"mode"
value=
"command"
>
<input
type=
"hidden"
name=
"command"
value=
"back"
>
<input
type=
"button"
class=
"cmdbutton"
name=
"submit"
value=
"确定"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
<input
type=
"button"
class=
"cmdbutton"
id=
"zz"
name=
"submit"
value=
"[Z]确定"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
templates/default/command.htm
View file @
e591301d
This diff is collapsed.
Click to expand it.
templates/default/corpse.htm
View file @
e591301d
...
...
@@ -55,4 +55,4 @@
<input
type=
"radio"
name=
"command"
id=
"money"
value=
"money"
checked
><a
onclick=
sl('money');
href=
"javascript:void(0);"
>
$w_money {lang moneyunit}
</a><br>
<!--{/if}-->
<input
type=
"button"
name=
"submit"
value=
"提交"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
<input
type=
"button"
id=
"zz"
name=
"submit"
value=
"[Z]提交"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
templates/default/deathnote.htm
View file @
e591301d
...
...
@@ -11,4 +11,4 @@
(注意,deathnote只能对玩家使用。)
<br
/>
<br
/>
<input
type=
"button"
name=
"submit"
value=
"提交"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
<input
type=
"button"
name=
"submit"
id=
"zz"
value=
"[Z]提交"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
templates/default/dialogue.htm
View file @
e591301d
...
...
@@ -25,10 +25,10 @@
</table>
<br>
<!--{if $dkey > 0}-->
<input
type=
"button"
class=
"cmdbutton"
style=
"margin-right: 5%;"
value=
"
上一页"
onclick=
"changePages($dkey,$dkey-1);"
>
<input
type=
"button"
class=
"cmdbutton"
id=
"c"
style=
"margin-right: 5%;"
value=
"[C]
上一页"
onclick=
"changePages($dkey,$dkey-1);"
>
<!--{/if}-->
<!--{if (($dkey < ($maxdkey-1)) || (isset($dialogue_branch[$dialogue_id])))}-->
<input
type=
"button"
class=
"cmdbutton"
value=
"
下一页"
onclick=
"changePages($dkey,$dkey+1);"
>
<input
type=
"button"
class=
"cmdbutton"
id=
"z"
value=
"[Z]
下一页"
onclick=
"changePages($dkey,$dkey+1);"
>
<!--{elseif isset($dialogue_end[$dialogue_id])}-->
$dialogue_end[$dialogue_id]
<!--{/if}-->
...
...
@@ -48,9 +48,9 @@
</center></p>
<!--{if (isset($dialogue_branch[$dialogue_id]) || isset($dialogue_end[$dialogue_id]))}-->
<img
class=
"dialog-background"
src=
"img/profile.gif"
onclick=
""
>
<img
class=
"dialog-background"
src=
"img/profile.gif"
id=
"x"
onclick=
""
>
<!--{else}-->
<img
class=
"dialog-background"
src=
"img/profile.gif"
onclick=
"closeDialog($('dialogue'));$('command').value='end_dialogue';postCmd('gamecmd','command.php');this.disabled=true;"
>
<img
class=
"dialog-background"
src=
"img/profile.gif"
id=
"x"
onclick=
"closeDialog($('dialogue'));$('command').value='end_dialogue';postCmd('gamecmd','command.php');this.disabled=true;"
>
<!--{/if}-->
</dialog>
<script>
...
...
templates/default/elementmix.htm
View file @
e591301d
...
...
@@ -64,5 +64,5 @@
› 当前:效果、耐久占比会在
<span
class=
"lime"
>
2%~98%
</span>
间浮动。
</span><br>
<br>
<!--{/if}-->
<input
type=
"button"
class=
"cmdbutton"
name=
"submit"
value=
"提交"
onclick=
"$('command').value='elementmix';itemmixchooser();postCmd('gamecmd','command.php');this.disabled=true;"
>
<input
type=
"button"
class=
"cmdbutton"
name=
"submit"
value=
"放弃"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
<input
type=
"button"
class=
"cmdbutton"
id=
"zz"
name=
"submit"
value=
"[Z]提交"
onclick=
"$('command').value='elementmix';itemmixchooser();postCmd('gamecmd','command.php');this.disabled=true;"
>
<input
type=
"button"
class=
"cmdbutton"
id=
"x"
name=
"submit"
value=
"[X]放弃"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
templates/default/findneut.htm
View file @
e591301d
<input
type=
"button"
class=
"cmdbutton"
name=
"back"
value=
"返回"
onclick=
"postCmd('gamecmd','command.php');"
><br><br>
\ No newline at end of file
<input
type=
"button"
class=
"cmdbutton"
id=
"zz"
name=
"back"
value=
"[Z]返回"
onclick=
"postCmd('gamecmd','command.php');"
><br><br>
\ No newline at end of file
templates/default/findteam.htm
View file @
e591301d
...
...
@@ -2,7 +2,7 @@
<input
type=
"hidden"
name=
"mode"
value=
"senditem"
>
<input
type=
"hidden"
id=
"command"
name=
"command"
value=
"back"
>
留言:
<br><input
size=
"30"
type=
"text"
name=
"message"
maxlength=
"60"
><br><br>
<input
type=
"button"
class=
"cmdbutton"
name=
"back"
value=
"
返回"
onclick=
"postCmd('gamecmd','command.php');"
><br><br>
<input
type=
"button"
class=
"cmdbutton"
id=
"zz"
name=
"back"
value=
"[Z]
返回"
onclick=
"postCmd('gamecmd','command.php');"
><br><br>
<!--{if $itms1}-->
转让:
<input
type=
"button"
name=
"itm1"
value=
"{$itm1}/{$itme1}/{$itms1}"
onclick=
"$('command').value='itm1';postCmd('gamecmd','command.php');"
><br>
<!--{/if}-->
...
...
templates/default/game.htm
View file @
e591301d
...
...
@@ -4,7 +4,14 @@
<!--{eval $bgm = init_bgm(1)}-->
$bgm
</div>
<!--{loop $plsinfo $places $info}-->
<!--{if (CURSCRIPT == 'game' && $pls==$places)}-->
<!--{eval $bgurl = "img/location/".$places.".jpg"}-->
<style>
body
{
background-image
:
url("$bgurl")
;
background-position
:
center
;}
</style>
<!--{/if}-->
<!--{/loop}-->
<table
border=
"0"
cellspacing=
"10"
cellpadding=
"0"
align=
"center"
>
<tr
valign=
top
>
<td>
...
...
@@ -13,6 +20,8 @@
{template battle}
<!--{elseif $main=='battle_rev'}-->
{template battle_rev}
<!--{elseif $main=='itemmix_tips'}-->
{template itemmix_tips}
<!--{else}-->
{template profile}
<!--{/if}-->
...
...
templates/default/header.htm
View file @
e591301d
...
...
@@ -182,7 +182,7 @@
</style>
<!--{/if}-->
</head>
<BODY
<!
--
{
if
CURSCRIPT =
=
'
game
'
&&
$
hotkeyon
}
--
>
onkey
down
="hotkey(event);"
<!--{/if}-->
>
<BODY
<!
--
{
if
CURSCRIPT =
=
'
game
'
&&
$
hotkeyon
}
--
>
onkey
up
="hotkey(event);"
<!--{/if}-->
>
<div
class=
"title"
>
{lang title}
</div>
<div
class=
"headerlink"
>
<a
href=
"index.php"
>
>>{lang index}
</a>
...
...
templates/default/itemdrop.htm
View file @
e591301d
...
...
@@ -20,4 +20,4 @@
<input
type=
"radio"
name=
"command"
id=
"itm6"
value=
"dropitm6"
><a
onclick=
sl('itm6');
href=
"javascript:void(0);"
>
$itm6/$itme6/$itms6
</a><br>
<!--{/if}-->
<br><br>
<input
type=
"button"
class=
"cmdbutton"
name=
"submit"
value=
"确定并丢弃"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
<input
type=
"button"
class=
"cmdbutton"
id=
"zz"
name=
"submit"
value=
"[Z]确定并丢弃"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
templates/default/itemdrop0.htm
View file @
e591301d
...
...
@@ -8,4 +8,4 @@
<input
type=
"radio"
name=
"command"
id=
"itm5"
value=
"swapitm5"
><a
onclick=
sl('itm5');
href=
"javascript:void(0);"
>
$itm5/$itme5/$itms5
</a><br>
<input
type=
"radio"
name=
"command"
id=
"itm6"
value=
"swapitm6"
><a
onclick=
sl('itm6');
href=
"javascript:void(0);"
>
$itm6/$itme6/$itms6
</a><br>
<br><br>
<input
type=
"button"
class=
"cmdbutton"
name=
"submit"
value=
"确定"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
<input
type=
"button"
class=
"cmdbutton"
id=
"zz"
name=
"submit"
value=
"[Z]确定"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
templates/default/itemencase.htm
View file @
e591301d
...
...
@@ -10,5 +10,5 @@
<!--{if $itms5}-->
<input
type=
"checkbox"
id=
"mitm5"
name=
"mitm5"
value=
"0"
><a
onclick=
"$('mitm5').click();"
href=
"javascript:void(0);"
>
$itm5/$itme5/$itms5
</a><br>
<!--{/if}-->
<!--{if $itms6}-->
<input
type=
"checkbox"
id=
"mitm6"
name=
"mitm6"
value=
"0"
><a
onclick=
"$('mitm6').click();"
href=
"javascript:void(0);"
>
$itm6/$itme6/$itms6
</a><br>
<!--{/if}-->
<br>
<input
type=
"button"
class=
"cmdbutton"
name=
"submit"
value=
"提交"
onclick=
"$('command').value='itemencase';itemmixchooser();postCmd('gamecmd','command.php');this.disabled=true;"
>
<input
type=
"button"
class=
"cmdbutton"
name=
"submit"
value=
"放弃"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
<input
type=
"button"
class=
"cmdbutton"
id=
"zz"
name=
"submit"
value=
"[Z]提交"
onclick=
"$('command').value='itemencase';itemmixchooser();postCmd('gamecmd','command.php');this.disabled=true;"
>
<input
type=
"button"
class=
"cmdbutton"
id=
"x"
name=
"submit"
value=
"[X]放弃"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
templates/default/itemfind.htm
View file @
e591301d
...
...
@@ -5,9 +5,9 @@
<br>
<input
type=
"hidden"
id=
"mode"
name=
"mode"
value=
"itemmain"
>
<input
type=
"hidden"
id=
"command"
name=
"command"
value=
"itemget"
>
<input
type=
"button"
class=
"cmdbutton"
name=
"itemget"
value=
"
拾取"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
<input
type=
"button"
class=
"cmdbutton"
id=
"zz"
name=
"itemget"
value=
"[Z]
拾取"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
<!--{if $club==20}-->
<input
type=
"button"
class=
"cmdbutton"
name=
"split_itm"
value=
"
提炼"
onclick=
"$('command').value='split_itm0';postCmd('gamecmd','command.php');this.disabled=true;"
>
<input
type=
"button"
id=
"cc"
class=
"cmdbutton"
name=
"split_itm"
value=
"[A]
提炼"
onclick=
"$('command').value='split_itm0';postCmd('gamecmd','command.php');this.disabled=true;"
>
<!--{/if}-->
<br><br>
<input
type=
"button"
class=
"cmdbutton"
name=
"dropitm0"
value=
"丢弃"
onclick=
"$('command').value='dropitm0';postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
<input
type=
"button"
class=
"cmdbutton"
id=
"xx"
name=
"dropitm0"
value=
"[X]丢弃"
onclick=
"$('command').value='dropitm0';postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
templates/default/itemmerge.htm
View file @
e591301d
...
...
@@ -35,7 +35,7 @@
<div
style=
"padding: 5px;"
>
<span
class=
"grey"
>
先选择要移位的道具,再选择要移动到的位置。
</span><br>
将:
<select
name=
"from"
>
<select
name=
"from"
onclick=
sl('itemmove');
href=
"javascript:void(0);"
>
<option
value=
"0"
>
■ 道 具 ■
<!--{if $itms1}-->
<option
value=
"1"
>
$itm1/$itme1/$itms1
<!--{/if}-->
<!--{if $itms2}-->
<option
value=
"2"
>
$itm2/$itme2/$itms2
<!--{/if}-->
...
...
@@ -46,7 +46,7 @@
</select>
<br>
移动至/与之交换:
<select
name=
"to"
>
<select
name=
"to"
onclick=
sl('itemmove');
href=
"javascript:void(0);"
>
<option
value=
"0"
>
■ 位 置 ■
<!--{if $itms1}-->
<option
value=
"1"
>
包裹1:$itm1/$itme1/$itms1
<!--{else}-->
<option
value=
"1"
>
包裹1
<!--{/if}-->
<!--{if $itms2}-->
<option
value=
"2"
>
包裹2:$itm2/$itme2/$itms2
<!--{else}-->
<option
value=
"2"
>
包裹2
<!--{/if}-->
...
...
@@ -59,4 +59,4 @@
<br>
<input
type=
"button"
class=
"cmdbutton"
name=
"submit"
value=
"提交"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
<input
type=
"button"
class=
"cmdbutton"
id=
"zz"
name=
"submit"
value=
"[Z]提交"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
templates/default/itemmix.htm
View file @
e591301d
...
...
@@ -10,5 +10,5 @@
<!--{if $itms5}-->
<input
type=
"checkbox"
id=
"mitm5"
name=
"mitm5"
value=
"0"
><a
onclick=
"$('mitm5').click();"
href=
"javascript:void(0);"
>
$itm5/$itme5/$itms5
</a><br>
<!--{/if}-->
<!--{if $itms6}-->
<input
type=
"checkbox"
id=
"mitm6"
name=
"mitm6"
value=
"0"
><a
onclick=
"$('mitm6').click();"
href=
"javascript:void(0);"
>
$itm6/$itme6/$itms6
</a><br>
<!--{/if}-->
<br>
<input
type=
"button"
class=
"cmdbutton"
name=
"submit"
value=
"提交"
onclick=
"$('command').value='itemmix';itemmixchooser();postCmd('gamecmd','command.php');this.disabled=true;"
>
<input
type=
"button"
class=
"cmdbutton"
name=
"submit"
value=
"放弃"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
<input
type=
"button"
class=
"cmdbutton"
id=
"zz"
name=
"submit"
value=
"[Z]提交"
onclick=
"$('command').value='itemmix';itemmixchooser();postCmd('gamecmd','command.php');this.disabled=true;"
>
<input
type=
"button"
class=
"cmdbutton"
id=
"x"
name=
"submit"
value=
"[X]放弃"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
templates/default/itemmix_result.htm
0 → 100644
View file @
e591301d
<input
type=
"hidden"
id=
"mode"
name=
"mode"
value=
"itemmain"
>
<input
type=
"hidden"
id=
"command"
name=
"command"
value=
"itemmix"
>
<input
type=
"hidden"
id=
"mixmask"
name=
"mixmask"
value=
"{$mixmask}"
>
<input
type=
"hidden"
id=
"itemselect"
name=
"itemselect"
value=
"999"
>
<!--{eval $mt0='';}-->
<!--{loop $mix_res $mi $mv}-->
<!--{if $mv['type']!=$mt0}-->
<!--{eval $mtype = $mix_type[$mv['type']];}-->
可{$mtype}合成:
<br>
<!--{eval $mt0=$mv['type'];}-->
<!--{/if}-->
<!--{eval $mname=$mv['result'][0];}-->
<input
type=
"button"
class=
"cmdbutton"
style=
"width:200"
value=
"{$mname}"
onclick=
"$('itemselect').value='$mi';postCmd('gamecmd','command.php');this.disabled=true;"
><br>
<!--{/loop}-->
\ No newline at end of file
templates/default/itemmix_tips.htm
0 → 100644
View file @
e591301d
<div
style=
"width:720px"
>
<div
class=
"b1"
style=
"height:20px"
><span>
合成笔记
</span></div>
<div
class=
"b3"
style=
"min-height:380px;display: flex;position:relative;justify-content: center;"
>
<div
style=
"min-width: 500px;max-width:700px;max-height:400px;text-align:left;word-break:break-all;overflow:auto;"
>
<!--{eval include_once GAME_ROOT.'./include/game/itemplace.func.php';$mixhint = init_itemmix_tips();}-->
<form
method=
"post"
id=
"maincmd"
name=
"maincmd"
>
<input
type=
"hidden"
name=
"itemindex"
id=
"itemindex"
value=
""
>
{$mixhint}
</form>
</div>
</div>
</div>
<!--{if !empty($itemindex)}-->
<!--{eval include_once GAME_ROOT.'./include/game/itemplace.func.php';$mixhint2 = init_itemmix_tips($itemindex);}-->
<dialog
id=
"itemmix_tips"
style=
"min-width: fit-content; min-height: fit-content;max-width: 400px;max-height: 600px;"
>
<div
id=
"tipsinfo"
>
<div
class=
"b3"
style=
"mdisplay: flex;position:relative;justify-content: center;"
>
<div
style=
"text-align:left;word-break:break-all;overflow:auto;"
>
{$mixhint2}
</div>
</div>
</div>
<img
class=
"dialog-background"
src=
"img/profile.gif"
onclick=
"closeDialog($('itemmix_tips'));this.disabled=true;"
>
</dialog>
<!--{/if}-->
\ No newline at end of file
templates/default/nametag.htm
View file @
e591301d
...
...
@@ -42,4 +42,4 @@
<!--{/if}-->
<br><br>
<input
type=
"text"
name=
"rename"
value=
""
><br>
<input
type=
"button"
class=
"cmdbutton"
name=
"submit"
value=
"改名"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
<input
type=
"button"
class=
"cmdbutton"
id=
"zz"
name=
"submit"
value=
"[Z]改名"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
templates/default/radarcmd.htm
View file @
e591301d
<input
type=
"hidden"
name=
"mode"
value=
"command"
>
<input
type=
"hidden"
name=
"command"
value=
"menu"
>
<input
type=
"button"
class=
"cmdbutton"
name=
"submit"
value=
"返回"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
<input
type=
"button"
class=
"cmdbutton"
id=
"zz"
name=
"submit"
value=
"[Z]返回"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
templates/default/rest.htm
View file @
e591301d
$restinfo[$state] 中。。。
<br>
<input
type=
"hidden"
id=
"mode"
name=
"mode"
value=
"rest"
>
<input
type=
"hidden"
id=
"command"
name=
"command"
value=
"rest"
>
<input
type=
"button"
class=
"cmdbutton"
name=
"rest"
value=
"$restinfo[$state]"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
<input
type=
"button"
class=
"cmdbutton"
name=
"back"
value=
"返回"
onclick=
"$('command').value='back';postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
<input
type=
"button"
class=
"cmdbutton"
id=
"zz"
name=
"rest"
value=
"[Z]{$restinfo[$state]}"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
<input
type=
"button"
class=
"cmdbutton"
id=
"x"
name=
"back"
value=
"[X]返回"
onclick=
"$('command').value='back';postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
templates/default/shop.htm
View file @
e591301d
...
...
@@ -14,4 +14,4 @@
<input
type=
"hidden"
name=
"buynum"
value=
"1"
>
<!--{/if}-->
<br><br>
<input
type=
"button"
class=
"cmdbutton"
name=
"submit"
value=
"提交"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
<input
type=
"button"
class=
"cmdbutton"
id=
"zz"
name=
"submit"
value=
"[Z]提交"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
templates/default/sp_shop.htm
View file @
e591301d
...
...
@@ -20,4 +20,4 @@
<input
type=
"radio"
name=
"command"
id=
"shop16"
value=
"shop16"
><a
onclick=
sl('shop16');
href=
"javascript:void(0);"
onmouseover=
"status=' ';return true;"
><font
style=
"background:url(img/backround3.gif) repeat-x"
>
【NPC解锁钥匙】
</font></a><br>
<input
type=
"radio"
name=
"command"
id=
"shop18"
value=
"shop18"
><a
onclick=
sl('shop18');
href=
"javascript:void(0);"
onmouseover=
"status=' ';return true;"
><font
style=
"background:url(img/backround9.gif) repeat-x"
>
【上级者向物品】
</font></a><br>
<br><br>
<input
type=
"button"
class=
"cmdbutton"
name=
"submit"
value=
"提交"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
<input
type=
"button"
class=
"cmdbutton"
id=
"zz"
name=
"submit"
value=
"[Z]提交"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
templates/default/team.htm
View file @
e591301d
...
...
@@ -4,4 +4,4 @@
<div>
15个字以内。
<div>
<div>
队伍密码 :
<input
size=
"15"
type=
"text"
name=
"nteamPass"
maxlength=
"30"
></div>
<div>
15个字以内。
<div>
<input
type=
"button"
class=
"cmdbutton"
name=
"submit"
value=
"提交"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
<input
type=
"button"
class=
"cmdbutton"
id=
"zz"
name=
"submit"
value=
"[Z]提交"
onclick=
"postCmd('gamecmd','command.php');this.disabled=true;"
>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment