GetGuildMaster » 历史记录 » 修订 4
修订 3 (tejie, 2025-09-16 17:11) → 修订 4/5 (tejie, 2025-09-18 09:50)
h4. _*%{color:green}getGuildMaster%*_ 获得指定行会会长名称,会长charId 获得指定行会会长名称 |注: 角色跨服时,无法从主服获取从服玩家的行会信息。 <notextile></notextile> 请在相应跨服表中记录相关信息,比如行会名称,行会会长。 <notextile></notextile> 比如 用 行会名_服务器id 作为关键字,构建跨服用的行会信息表。 <notextile></notextile> *相关变量* <$crsSverId> 可获得跨服玩家 原服务器id| 标签:命令定义^getGuildMaster *格式* |命令名 |参数1 |参数2 |参数3 | |getGuildMaster |待查询行会名 |返回会长昵称变量|返回会长charId变量 |返回变量 | *说明* |参数1|待查询行会名字符串| |参数2|返回存储会长名称的变量| |^参数3|返回存储会长charId的变量 可缺省| - - h4. *%{color:deepskyblue}特戒引擎脚本示例:%* bq. [<notextile>@</notextile>main] #say <创建行会/<notextile>@@</notextile>inputString0>\\ \\ <解散行会/<notextile>@</notextile>解散行会>\\ \\ <查询指定行会会长/<notextile>@@</notextile>inputString1>\\ \\ [<notextile>@</notextile>inputString0] #if [[checkGuildName]] s0 #act [[sendMsg]] 6 该行会名称已被占用 break #if not [[haveGuild]] #act [[addGuild]] <$str(s0)> self [[sendMsg]] 6 创建行会【<$guildName>】 #elseAct [[sendMsg]] 6 角色已在行会【<$guildName>】中 [<notextile>@</notextile>解散行会] #if not [[isGuildMaster]] #act [[sendMsg]] 6 角色不是行会会长 break #if #act [[mov]] s$行会名称 <$guildName> [[disband]] [[sendMsg]] 6 解散了行会【<$str(s$行会名称)>】 [<notextile>@</notextile>inputString1] #if not [[checkOfGuild]] <$str(s1)> #act [[sendMsg]] 6 没有这个行会 break #if #act *%{color:green}getGuildMaster%* <$str(s1)> s$行会会长 [[sendMsg]] 6 【<$str(s1)>】行会会长是:<$str(s$行会会长)>