isMainServer¶
判定当前脚本运行服务器是否主服
使用场景
保证需要跨服统一处理的业务,只在主服执行一次。
标签:命令定义^isMainServer
特戒引擎脚本示例¶
文件路径
..\Mir200\Envir\Robot_def\AutoRunRobot.txt
RUNONDAY 22:00 @主服执行
文件路径
..\Mir200\Envir\Robot_def\RobotManage.txt
[@主服执行]
#if
isMainServer
#act
sendMsg 0 当前是主服,执行统一的通区数据表处理
#elseAct
sendMsg 0 当前不是主服,不处理统一的通区数据表