常用命令收集

更新时间2023/5/302301 浏览攻略
【物品】
获取物品tid
thing 物品名|thing -prop tid
自动使用移动、采集、打造优化的道具
when 'thing 3501 3502 3505 -use' -time 29
在基地界面添加命令按钮,执行上面命令
cmd "when 'thing 3501 3502 3505 -use' -time 29" -add 优化物品
物品满时,自动出售载具
when 'thing -full|if -c ==1|thing -sell' -time 7
队员满时,自动解雇队员
when 'role -full|if -c ==1|role -sell' -time 7
【队伍】
队伍1 血量<10则撤退
when "team 1 -prop hp|if -c <10|team 1 -return" -time 1
队伍1 血量百分比<10则撤退
when "team 1 -prop hpp|if -c <10|team 1 -return" -time 1
队伍1 血量满时探索 地图2
when "team 1 -prop hpp|if -c ==100|team 1 -map 2" -time 1
【地图】
获取地图所有物体id
map 0 -obj
获取所有物体名字
map 0 -obj|map -prop name
锁定目标
map 目标id -prop pos|map -lock
瞬移目标到基地附近
space 目标id -pos 4,4
【队员】
将一眉转职为职业1,并升满级
role 一眉|role -pro 1|when "role 一眉|role -up" -loop 5
职业升满js函数(需结合cmd使用)
function(c,p,s,v){
for (let i = 0; i < 10; ++i) {
c.execute(`role ${s} -pro ${i+1}|when 'role ${s} -up' -loop 5`);
}
v.Add(r(s).getProLevel()+'');
return '';
}
训练满js函数(需结合cmd使用)
function(c,p,s,v){
for (let i = 0; i < 15; ++i) {
if (i == 11) ++i;
c.execute(`echo 1 -v 1&when 'role ${s} -train ${i+1}|echo -v 1' -loop 'v(1)>0'`);
}
v.Add(r(s).name);
return '';
}
【事件】
获得彩票时存档
when "time -save" -thing 3051
加载之后立刻保存
time -load|time -save
7
18
30