项目

一般

简介

跨服排行榜 » 历史记录 » 版本 1

yangdefeng, 2022-06-14 17:37

1 1 yangdefeng
h4. %{color:firebrick}跨服排行榜%
2
3
*模块说明*
4
使用 [[通区数据表]] 与 [[Dlg_itemGrid_|itemGrid]] 实现跨服排行榜的效果
5
6
-
7
-
8
9
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
10
11
-
12
-
13
14
bq. [<notextile>@</notextile>main]
15
#act
16
[[mov]] n$打开标记 0
17
#say
18
<保存排行数据/<notextile>@</notextile>存数据>\ \ \
19
<显示排行/<notextile>@</notextile>显示排行>\ \ \
20
<删除排行数据/<notextile>@</notextile>删数据>\ \ \
21
<查看排行数据/<notextile>@</notextile>查数据>\ \ \
22
&nbsp;
23
[<notextile>@</notextile>存数据]
24
#if
25
[[not]] [[tbl_exist]] tb_cross跨服排行
26
#act
27
[[tbl_create_cross]] tb_cross跨服排行 关键字 角色名 服务器id 战斗力 等级
28
&nbsp;
29
#if
30
#act
31
[[tbl_add]] tb_cross跨服排行 <notextile><$userName>_<$server> <$userName> <$server> <$powerValue> <$level></notextile>
32
%{color:lightGrey};--此处可根据指定字段排序,相关命令:tbl_sort--%
33
[[tbl_save]] tb_cross跨服排行
34
[[messageBox]] 数据保存完毕!
35
&nbsp;
36
[<notextile>@</notextile>查数据]
37
#if
38
[[tbl_exist]] tb_cross跨服排行
39
#act
40
[[tbl_toStr]] tb_cross跨服排行 s0
41
[[messageBox]] <$str(s0)>
42
#elseAct
43
[[messageBox]] 跨服排行数据尚不存在
44
&nbsp;
45
[<notextile>@</notextile>删数据]
46
#if
47
[[tbl_exist]] tb_cross跨服排行
48
#act
49
[[tbl_destroy]] tb_cross跨服排行
50
[[messageBox]] 跨服排行数据删除完毕
51
#elseAct
52
[[messageBox]] 跨服排行数据尚不存在
53
&nbsp;
54
[<notextile>@</notextile>显示排行]
55
%{color:lightGrey};--排行显示列表赋值--%
56
#act
57
[[mov]] s$itemList
58
[[mov]] n$idx 1
59
&nbsp;
60
#if tbl tb_cross跨服排行 s$关键字
61
#act
62
[[mov]] s$key <$str(s$关键字)>
63
[[mov]] s$角色名 <$tbl(tb_cross跨服排行,s$关键字,角色名)>
64
[[mov]] s$战斗力 <$tbl(tb_cross跨服排行,s$关键字,战斗力)>
65
[[mov]] s$等级 <$tbl(tb_cross跨服排行,s$关键字,等级)>
66
goto <notextile>@</notextile>条目模板
67
[[inc]] n$idx 1
68
&nbsp;
69
#if
70
#act
71
goto <notextile>@</notextile>点击条目
72
&nbsp;
73
[<notextile>@</notextile>条目模板]
74
#act
75
[[mov]] s$item
76
[[inc]] s$item (<itemIndex:<$str(n$idx)>>
77
[[inc]] s$item <itemToggle:huishouwupin_xuanzhongkuang:denglu_liebiao_weixuanzhong/<notextile>@</notextile>点击条目(<$str(s$key)>)>
78
[[inc]] s$item <text:<$str(s$角色名)>{scolor=150}:80:60>
79
[[inc]] s$item <text:<$str(s$战斗力)>:280:60>
80
[[inc]] s$item <text:<$str(s$等级)>:450:60>
81
[[inc]] s$item )
82
[[inc]] s$itemList s$item
83
&nbsp;
84
[<notextile>@</notextile>点击条目]
85
%{color:lightGrey};--取出关键字--%
86
#if
87
[[equal]] n$打开标记 1
88
#act
89
[[mov]] s$关键字 <$scriptParam1>
90
#elseAct
91
%{color:lightGrey};--初始打开界面,默认点击处理--%
92
[[tbl_index_key]] tb_cross跨服排行 1 s$关键字
93
[[mov]] n$打开标记 1
94
&nbsp;
95
#if
96
#act
97
%{color:lightGrey};--根据关键字获取点击“角色名”与“所在服”--%
98
[[pgExtractString]] _ s$关键字 s$关键字拆分 n0
99
[[mov]] s$展示角色 <$str(s$关键字拆分_1)>
100
[[mov]] s$所在服 <$str(s$关键字拆分_2)>
101
%{color:lightGrey};--展示模型数据赋值--%
102
[[playUser]] s$展示角色 s$所在服 s$模型id s$性别 s$武器id s$斗笠id s$翅膀id <notextile>@</notextile>getUserInfo
103
&nbsp;
104
[<notextile>@</notextile>getUserInfo]
105
#act
106
[[openMerchantBigDlg]] ok_di 4 0 0 1 0 0
107
#say
108
<[[dlg_dontClearList_|dontClearList]]:跨服排行列表>\
109
<[[dlg_panelSize_|panelSize]]:1800:1000>\
110
<[[dlg_itemGrid_|itemGrid]]:<$str(s$itemList)>:跨服排行列表,1,0,1:0:0:1000,100:1,1,650,1:0>\
111
&nbsp;
112
<[[dlg_playModel_|playModel]]:<$str(s$模型id)>:1000:0:8:1.3,5:<$str(s$性别)>:<$str(s$武器id)>:<$str(s$斗笠id)>:<$str(s$翅膀id)>:0>
113
<[[dlg_playModelEx_|playModelEx]]:<$str(s$模型id)>:1000:400:8:1.3,5:<$str(s$性别)>:<$str(s$武器id)>:<$str(s$斗笠id)>:<$str(s$翅膀id)>:0>
114
&nbsp;
115
<[[dlg_text_|text]]:查看角色信息:100:700/<notextile>@</notextile>角色信息>
116
&nbsp;
117
[<notextile>@</notextile>角色信息]
118
#act
119
[[viewPlayerEx]] <$str(s$展示角色)> <$str(s$所在服)>