项目

一般

简介

GetGuildMaster » 历史记录 » 版本 4

tejie, 2025-09-18 09:50

1 2 tejie
h4. _*%{color:green}getGuildMaster%*_
2
3 4 tejie
获得指定行会会长名称,会长charId
4 1 yangdefeng
5 3 tejie
|注:
6
角色跨服时,无法从主服获取从服玩家的行会信息。
7
<notextile></notextile>
8
请在相应跨服表中记录相关信息,比如行会名称,行会会长。
9
<notextile></notextile>
10
比如
11
用 行会名_服务器id 作为关键字,构建跨服用的行会信息表。
12
<notextile></notextile>
13
*相关变量*
14
<$crsSverId> 可获得跨服玩家 原服务器id|
15
16
17 2 tejie
标签:命令定义^getGuildMaster
18 1 yangdefeng
19
*格式*
20 4 tejie
|命令名		|参数1		|参数2		 |参数3			|
21
|getGuildMaster	|待查询行会名	|返回会长昵称变量|返回会长charId变量	|
22 1 yangdefeng
23
*说明*
24
|参数1|待查询行会名字符串|
25
|参数2|返回存储会长名称的变量|
26 4 tejie
|^参数3|返回存储会长charId的变量
27
可缺省|
28 1 yangdefeng
29
-
30
-
31
32 4 tejie
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
33 1 yangdefeng
34
bq. [<notextile>@</notextile>main]
35
#say
36
<创建行会/<notextile>@@</notextile>inputString0>\\ \\
37
<解散行会/<notextile>@</notextile>解散行会>\\ \\
38
<查询指定行会会长/<notextile>@@</notextile>inputString1>\\ \\
39
&nbsp;
40
[<notextile>@</notextile>inputString0]
41
#if
42
[[checkGuildName]] s0
43
#act
44
[[sendMsg]] 6 该行会名称已被占用
45
break
46
&nbsp;
47
#if
48
not [[haveGuild]]
49
#act
50
[[addGuild]] <$str(s0)> self
51 3 tejie
[[sendMsg]] 6 创建行会【<$guildName>】
52 1 yangdefeng
#elseAct
53 3 tejie
[[sendMsg]] 6 角色已在行会【<$guildName>】中
54 1 yangdefeng
&nbsp;
55
[<notextile>@</notextile>解散行会]
56
#if
57
not [[isGuildMaster]]
58
#act
59 3 tejie
[[sendMsg]] 6 角色不是行会会长
60 1 yangdefeng
break
61
&nbsp;
62
#if
63
#act
64 3 tejie
[[mov]] s$行会名称 <$guildName>
65
[[disband]]
66
[[sendMsg]] 6 解散了行会【<$str(s$行会名称)>】
67 1 yangdefeng
&nbsp;
68
[<notextile>@</notextile>inputString1]
69
#if
70
not [[checkOfGuild]] <$str(s1)>
71
#act
72 3 tejie
[[sendMsg]] 6 没有这个行会
73 1 yangdefeng
break
74
&nbsp;
75
#if
76
#act
77
*%{color:green}getGuildMaster%* <$str(s1)> s$行会会长
78 3 tejie
[[sendMsg]] 6 【<$str(s1)>】行会会长是:<$str(s$行会会长)>