获取组队成员数量

GETGROUPCOUNT 变量名 范围(当范围为空或0时,获取所有队员数量,当范围>0时,获取队长指定范围内队员的数量)

[@GETGROUPCOUNT]
 #if
 CheckGroupLeader
 #act
 GETGROUPCOUNT P1
 sendmsg 6 你当前组队的队友有<$STR(P1)>人
 #elseact
 sendmsg 6 你不是队长

[@GETGROUPCOUNT]
 #if
 CheckGroupLeader
 #act
 GETGROUPCOUNT P1 5
 sendmsg 6 你5格范围内当前组队的队友有<$STR(P1)>人
 #elseact
 sendmsg 6 你不是队长



 

自动退出组队命令(个人通过脚本执行)

#act
 exitGroup
 SENDMSG 6 你已经主动离开了队伍



 

删除队友功能: (只有队长才能用此命令,才会生效 )

#if
 CheckGroupLeader
 #act
 DELETEGROUPMENBER 成员名
 SENDMSG 6 你被队长踢出了队伍!
 #elseact
 sendmsg 6 你不是队长