1:自动小树林
    在本例中
    1:实现了配置界面语句的使用
    2:实现了自动疗伤
    3:实现了存仓及售卖
    4:实现了副本及条件语句的使用

    1. // raid.flow
    2. [if] (_DungeonHpThreshold) == null
    3. ($_DungeonHpThreshold) = 50
    4. [if] (_DungeonWaitSkillCD) == null
    5. ($_DungeonWaitSkillCD) = 打开
    6. [if] (_DungeonBagCleanWay) == null
    7. ($_DungeonBagCleanWay) = 存仓及售卖
    8. #select ($_DungeonHpThreshold) = 副本内疗伤,当气血低于百分比,100|90|80|70|60|50|40|30|20|10,(_DungeonHpThreshold)
    9. #select ($_DungeonWaitSkillCD) = Boss战前等待技能冷却,打开|关闭,(_DungeonWaitSkillCD)
    10. #select ($_DungeonBagCleanWay) = 背包清理方案,不清理|售卖|存仓及售卖,(_DungeonBagCleanWay)
    11. #input ($_repeat) = 重复次数,1
    12. #config
    13. [if] (arg0) != null
    14. ($_DungeonHpThreshold) = (arg0)
    15. [if] (arg1) != null
    16. ($_DungeonWaitSkillCD) = (arg1)
    17. [if] (arg2) != null
    18. ($_DungeonBagCleanWay) = (arg2)
    19. [if] (arg3) != null
    20. ($_repeat) = (arg3)
    21. <-stopSSAuto
    22. stopstate
    23. <---
    24. ($hpPer) = (_DungeonHpThreshold)/100
    25. [if] (:hpPer) < (hpPer)
    26. @liaoshang
    27. --->
    28. <-recordGains
    29. ($_i) = 0
    30. [while] (_i) < (_repeat)
    31. @renew
    32. [if] (_DungeonBagCleanWay) == 售卖
    33. @cleanBag
    34. [else if] (_DungeonBagCleanWay) == 存仓及售卖
    35. @tidyBag
    36. // 副本
    37. jh fb 0 start1
    38. cr yz/lw/shangu
    39. go west
    40. @kill 毒蛇,毒蛇
    41. go west
    42. @kill 狼,狼
    43. [if] (_DungeonWaitSkillCD) == 打开
    44. @cd
    45. go west
    46. @kill 狼王
    47. search
    48. @await 1000
    49. // 副本结束
    50. cr;cr over
    51. ($_i) = (_i) + 1
    52. [if] (_DungeonBagCleanWay) == 售卖
    53. @cleanBag
    54. [else if] (_DungeonBagCleanWay) == 存仓及售卖
    55. @tidyBag
    56. $to 住房-练功房;dazuo
    57. recordGains->
    58. stopSSAuto->