1:自动小树林
在本例中
1:实现了配置界面语句的使用
2:实现了自动疗伤
3:实现了存仓及售卖
4:实现了副本及条件语句的使用
// raid.flow
[if] (_DungeonHpThreshold) == null
($_DungeonHpThreshold) = 50
[if] (_DungeonWaitSkillCD) == null
($_DungeonWaitSkillCD) = 打开
[if] (_DungeonBagCleanWay) == null
($_DungeonBagCleanWay) = 存仓及售卖
#select ($_DungeonHpThreshold) = 副本内疗伤,当气血低于百分比,100|90|80|70|60|50|40|30|20|10,(_DungeonHpThreshold)
#select ($_DungeonWaitSkillCD) = Boss战前等待技能冷却,打开|关闭,(_DungeonWaitSkillCD)
#select ($_DungeonBagCleanWay) = 背包清理方案,不清理|售卖|存仓及售卖,(_DungeonBagCleanWay)
#input ($_repeat) = 重复次数,1
#config
[if] (arg0) != null
($_DungeonHpThreshold) = (arg0)
[if] (arg1) != null
($_DungeonWaitSkillCD) = (arg1)
[if] (arg2) != null
($_DungeonBagCleanWay) = (arg2)
[if] (arg3) != null
($_repeat) = (arg3)
<-stopSSAuto
stopstate
<---
($hpPer) = (_DungeonHpThreshold)/100
[if] (:hpPer) < (hpPer)
@liaoshang
--->
<-recordGains
($_i) = 0
[while] (_i) < (_repeat)
@renew
[if] (_DungeonBagCleanWay) == 售卖
@cleanBag
[else if] (_DungeonBagCleanWay) == 存仓及售卖
@tidyBag
// 副本
jh fb 0 start1
cr yz/lw/shangu
go west
@kill 毒蛇,毒蛇
go west
@kill 狼,狼
[if] (_DungeonWaitSkillCD) == 打开
@cd
go west
@kill 狼王
search
@await 1000
// 副本结束
cr;cr over
($_i) = (_i) + 1
[if] (_DungeonBagCleanWay) == 售卖
@cleanBag
[else if] (_DungeonBagCleanWay) == 存仓及售卖
@tidyBag
$to 住房-练功房;dazuo
recordGains->
stopSSAuto->