【流程】收随从药材并存放在随从身上的流程。



  • 萌新第一次发帖,基于大佬的一键收割流程,改了个自用的版本。

    收取豪宅花园三个随从的草药,然后再分类保存在三个随从身上。
    (不填就不收取或者不存放,但是因为没写判定,所以还是会一条龙执行过去。。。等我下次再优化优化)

    适用于背包较小或者不愿意随身携带草药的玩家。

    Ver2改进:
    1.去掉了令狐迷惑的cmd参数,似乎依旧可以正常运行。
    2.if的作用范围不知道该如何控制,试了{}和缩进以及if else,都无效,if语句只作用于下一行的内容,诚心请教大佬解答。

    分享码:
    轻悠狐舞@狐狸收药Ver2·流程@1585207904075

    // 到小花园
    stopstate;jh fam 0 start;go west;go west;go north;go enter;go northeast
    // 设定随从姓名,以及药材保管人名
    #input ($servant1) = 收药材-随从1姓名,夏雪宜
    #input ($servant2) = 收药材-随从2姓名,丫鬟
    #input ($servant3) = 收药材-随从3姓名,韦春芳
    #input ($servant4) = 白药材交给谁保管,丫鬟
    #input ($servant5) = 绿药材交给谁保管,韦春芳
    #input ($servant6) = 蓝药材交给谁保管,韦春芳
    #input ($servant7) = 黄药材交给谁保管,韦春芳
    #input ($servant8) = 紫药材交给谁保管,丫鬟
    #config
    // 一号位收药材
    dc {r(servant1)} stopstate;select {r(servant1)};pack {r(servant1)}
    @dialog
    [if] {d芦荟}? != null
        dc {r(servant1)} give (:id) {d芦荟#} {d芦荟}
    [if] {d山楂叶}? != null
        dc {r(servant1)} give (:id) {d山楂叶#} {d山楂叶}
    [if] {d当归}? != null
        dc {r(servant1)} give (:id) {d当归#} {d当归}
    [if] {d柴胡}? != null
        dc {r(servant1)} give (:id) {d柴胡#} {d柴胡}
    [if] {d金银花}? != null
        dc {r(servant1)} give (:id) {d金银花#} {d金银花}
    [if] {d石楠叶}? != null
        dc {r(servant1)} give (:id) {d石楠叶#} {d石楠叶}
    [if] {d茯苓}? != null
        dc {r(servant1)} give (:id) {d茯苓#} {d茯苓}
    [if] {d沉香}? != null
        dc {r(servant1)} give (:id) {d沉香#} {d沉香}
    [if] {d熟地黄}? != null
        dc {r(servant1)} give (:id) {d熟地黄#} {d熟地黄}
    [if] {d冬虫夏草}? != null
        dc {r(servant1)} give (:id) {d冬虫夏草#} {d冬虫夏草}
    [if] {d络石藤}? != null
        dc {r(servant1)} give (:id) {d络石藤#} {d络石藤}
    [if] {d九香虫}? != null
        dc {r(servant1)} give (:id) {d九香虫#} {d九香虫}
    [if] {d凌霄花}? != null
        dc {r(servant1)} give (:id) {d凌霄花#} {d凌霄花}
    [if] {d何首乌}? != null
        dc {r(servant1)} give (:id) {d何首乌#} {d何首乌}
    [if] {d人参}? != null
        dc {r(servant1)} give (:id) {d人参#} {d人参}
    // 二号位收药材
    dc {r(servant2)} stopstate;select {r(servant2)};pack {r(servant2)}
    @dialog
    [if] {d芦荟}? != null
        dc {r(servant2)} give (:id) {d芦荟#} {d芦荟}
    [if] {d山楂叶}? != null
        dc {r(servant2)} give (:id) {d山楂叶#} {d山楂叶}
    [if] {d当归}? != null
        dc {r(servant2)} give (:id) {d当归#} {d当归}
    [if] {d柴胡}? != null
        dc {r(servant2)} give (:id) {d柴胡#} {d柴胡}
    [if] {d金银花}? != null
        dc {r(servant2)} give (:id) {d金银花#} {d金银花}
    [if] {d石楠叶}? != null
        dc {r(servant2)} give (:id) {d石楠叶#} {d石楠叶}
    [if] {d茯苓}? != null
        dc {r(servant2)} give (:id) {d茯苓#} {d茯苓}
    [if] {d沉香}? != null
        dc {r(servant2)} give (:id) {d沉香#} {d沉香}
    [if] {d熟地黄}? != null
        dc {r(servant2)} give (:id) {d熟地黄#} {d熟地黄}
    [if] {d冬虫夏草}? != null
        dc {r(servant2)} give (:id) {d冬虫夏草#} {d冬虫夏草}
    [if] {d络石藤}? != null
        dc {r(servant2)} give (:id) {d络石藤#} {d络石藤}
    [if] {d九香虫}? != null
        dc {r(servant2)} give (:id) {d九香虫#} {d九香虫}
    [if] {d凌霄花}? != null
        dc {r(servant2)} give (:id) {d凌霄花#} {d凌霄花}
    [if] {d何首乌}? != null
        dc {r(servant2)} give (:id) {d何首乌#} {d何首乌}
    [if] {d人参}? != null
        dc {r(servant2)} give (:id) {d人参#} {d人参}
    // 三号位收药材
    dc {r(servant3)} stopstate;select {r(servant3)};pack {r(servant3)}
    @dialog
    [if] {d芦荟}? != null
        dc {r(servant3)} give (:id) {d芦荟#} {d芦荟}
    [if] {d山楂叶}? != null
        dc {r(servant3)} give (:id) {d山楂叶#} {d山楂叶}
    [if] {d当归}? != null
        dc {r(servant3)} give (:id) {d当归#} {d当归}
    [if] {d柴胡}? != null
        dc {r(servant3)} give (:id) {d柴胡#} {d柴胡}
    [if] {d金银花}? != null
        dc {r(servant3)} give (:id) {d金银花#} {d金银花}
    [if] {d石楠叶}? != null
        dc {r(servant3)} give (:id) {d石楠叶#} {d石楠叶}
    [if] {d茯苓}? != null
        dc {r(servant3)} give (:id) {d茯苓#} {d茯苓}
    [if] {d沉香}? != null
        dc {r(servant3)} give (:id) {d沉香#} {d沉香}
    [if] {d熟地黄}? != null
        dc {r(servant3)} give (:id) {d熟地黄#} {d熟地黄}
    [if] {d冬虫夏草}? != null
        dc {r(servant3)} give (:id) {d冬虫夏草#} {d冬虫夏草}
    [if] {d络石藤}? != null
        dc {r(servant3)} give (:id) {d络石藤#} {d络石藤}
    [if] {d九香虫}? != null
        dc {r(servant3)} give (:id) {d九香虫#} {d九香虫}
    [if] {d凌霄花}? != null
        dc {r(servant3)} give (:id) {d凌霄花#} {d凌霄花}
    [if] {d何首乌}? != null
        dc {r(servant3)} give (:id) {d何首乌#} {d何首乌}
    [if] {d人参}? != null
        dc {r(servant3)} give (:id) {d人参#} {d人参}
    
    // 把药材交给随从保管
    dc {r(servant4)} stopstate;select {r(servant4)};trade {r(servant4)}
    [if] {b芦荟}? != null
        give {r(servant4)} {b芦荟#} {b芦荟}
    [if] {b山楂叶}? != null
        give {r(servant4)} {b山楂叶#} {b山楂叶}
    [if] {b当归}? != null
        give {r(servant4)} {b当归#} {b当归}
    dc {r(servant5)} stopstate;select {r(servant5)};trade {r(servant5)}
    [if] {b柴胡}? != null
        give {r(servant5)} {b柴胡#} {b柴胡}
    [if] {b金银花}? != null
        give {r(servant5)} {b金银花#} {b金银花}
    [if] {b石楠叶}? != null
        give {r(servant5)} {b石楠叶#} {b石楠叶}
    dc {r(servant6)} stopstate;select {r(servant6)};trade {r(servant6)}
    [if] {b茯苓}? != null
        give {r(servant6)} {b茯苓#} {b茯苓}
    [if] {b沉香}? != null
        give {r(servant6)} {b沉香#} {b沉香}
    [if] {b熟地黄}? != null
        give {r(servant6)} {b熟地黄#} {b熟地黄}
    dc {r(servant7)} stopstate;select {r(servant7)};trade {r(servant7)}
    [if] {b冬虫夏草}? != null
        give {r(servant7)} {b冬虫夏草#} {b冬虫夏草}
    [if] {b络石藤}? != null
        give {r(servant7)} {b络石藤#} {b络石藤}
    [if] {b九香虫}? != null
        give {r(servant7)} {b九香虫#} {b九香虫}
    dc {r(servant8)} stopstate;select {r(servant8)};trade {r(servant8)}
    [if] {b凌霄花}? != null
        give {r(servant8)} {b凌霄花#} {b凌霄花}
    [if] {b何首乌}? != null
        give {r(servant8)} {b何首乌#} {b何首乌}
    [if] {b人参}? != null
        give {r(servant8)} {b人参#} {b人参}
    
    // 随从开始采药
    dc {r(servant1)} cai
    dc {r(servant2)} cai
    dc {r(servant3)} cai
    
    stopstate;jh fam 0 start;go west;go west;go north;go enter;go northeast
    
    复制上方代码

    分享码:
    轻悠狐舞@狐狸收药·流程@1585202360129

    // 到小花园
    stopstate;jh fam 0 start;go west;go west;go north;go enter;go northeast
    // 设定随从姓名,以及药材保管人名
    #input ($servant1) = 收药材-随从1姓名,夏雪宜
    #input ($servant2) = 收药材-随从2姓名,丫鬟
    #input ($servant3) = 收药材-随从3姓名,韦春芳
    #input ($servant4) = 白药材交给谁保管,丫鬟
    #input ($servant5) = 绿药材交给谁保管,韦春芳
    #input ($servant6) = 蓝药材交给谁保管,韦春芳
    #input ($servant7) = 黄药材交给谁保管,韦春芳
    #input ($servant8) = 紫药材交给谁保管,丫鬟
    #config
    // 一号位收药材
    dc {r(servant1)} stopstate;select {r(servant1)};pack {r(servant1)}
    @dialog
    ($cmd) = null
    [if] {d芦荟}? != null
        ($cmd) = (cmd);dc {r(servant1)} give (:id) {d芦荟#} {d芦荟}
    [if] {d山楂叶}? != null
        ($cmd) = (cmd);dc {r(servant1)} give (:id) {d山楂叶#} {d山楂叶}
    [if] {d当归}? != null
        ($cmd) = (cmd);dc {r(servant1)} give (:id) {d当归#} {d当归}
    [if] (cmd) != null
        (cmd)
    ($cmd) = null
    [if] {d柴胡}? != null
        ($cmd) = (cmd);dc {r(servant1)} give (:id) {d柴胡#} {d柴胡}
    [if] {d金银花}? != null
        ($cmd) = (cmd);dc {r(servant1)} give (:id) {d金银花#} {d金银花}
    [if] {d石楠叶}? != null
        ($cmd) = (cmd);dc {r(servant1)} give (:id) {d石楠叶#} {d石楠叶}
    [if] (cmd) != null
        (cmd)
    ($cmd) = null
    [if] {d茯苓}? != null
        ($cmd) = (cmd);dc {r(servant1)} give (:id) {d茯苓#} {d茯苓}
    [if] {d沉香}? != null
        ($cmd) = (cmd);dc {r(servant1)} give (:id) {d沉香#} {d沉香}
    [if] {d熟地黄}? != null
        ($cmd) = (cmd);dc {r(servant1)} give (:id) {d熟地黄#} {d熟地黄}
    [if] (cmd) != null
        (cmd)
    ($cmd) = null
    [if] {d冬虫夏草}? != null
        ($cmd) = (cmd);dc {r(servant1)} give (:id) {d冬虫夏草#} {d冬虫夏草}
    [if] {d络石藤}? != null
        ($cmd) = (cmd);dc {r(servant1)} give (:id) {d络石藤#} {d络石藤}
    [if] {d九香虫}? != null
        ($cmd) = (cmd);dc {r(servant1)} give (:id) {d九香虫#} {d九香虫}
    [if] (cmd) != null
        (cmd)
    ($cmd) = null
    [if] {d凌霄花}? != null
        ($cmd) = (cmd);dc {r(servant1)} give (:id) {d凌霄花#} {d凌霄花}
    [if] {d何首乌}? != null
        ($cmd) = (cmd);dc {r(servant1)} give (:id) {d何首乌#} {d何首乌}
    [if] {d人参}? != null
        ($cmd) = (cmd);dc {r(servant1)} give (:id) {d人参#} {d人参}
    [if] (cmd) != null
        (cmd)
    // 二号位收药材
    dc {r(servant2)} stopstate;select {r(servant2)};pack {r(servant2)}
    @dialog
    ($cmd) = null
    [if] {d芦荟}? != null
        ($cmd) = (cmd);dc {r(servant2)} give (:id) {d芦荟#} {d芦荟}
    [if] {d山楂叶}? != null
        ($cmd) = (cmd);dc {r(servant2)} give (:id) {d山楂叶#} {d山楂叶}
    [if] {d当归}? != null
        ($cmd) = (cmd);dc {r(servant2)} give (:id) {d当归#} {d当归}
    [if] (cmd) != null
        (cmd)
    ($cmd) = null
    [if] {d柴胡}? != null
        ($cmd) = (cmd);dc {r(servant2)} give (:id) {d柴胡#} {d柴胡}
    [if] {d金银花}? != null
        ($cmd) = (cmd);dc {r(servant2)} give (:id) {d金银花#} {d金银花}
    [if] {d石楠叶}? != null
        ($cmd) = (cmd);dc {r(servant2)} give (:id) {d石楠叶#} {d石楠叶}
    [if] (cmd) != null
        (cmd)
    ($cmd) = null
    [if] {d茯苓}? != null
        ($cmd) = (cmd);dc {r(servant2)} give (:id) {d茯苓#} {d茯苓}
    [if] {d沉香}? != null
        ($cmd) = (cmd);dc {r(servant2)} give (:id) {d沉香#} {d沉香}
    [if] {d熟地黄}? != null
        ($cmd) = (cmd);dc {r(servant2)} give (:id) {d熟地黄#} {d熟地黄}
    [if] (cmd) != null
        (cmd)
    ($cmd) = null
    [if] {d冬虫夏草}? != null
        ($cmd) = (cmd);dc {r(servant2)} give (:id) {d冬虫夏草#} {d冬虫夏草}
    [if] {d络石藤}? != null
        ($cmd) = (cmd);dc {r(servant2)} give (:id) {d络石藤#} {d络石藤}
    [if] {d九香虫}? != null
        ($cmd) = (cmd);dc {r(servant2)} give (:id) {d九香虫#} {d九香虫}
    [if] (cmd) != null
        (cmd)
    ($cmd) = null
    [if] {d凌霄花}? != null
        ($cmd) = (cmd);dc {r(servant2)} give (:id) {d凌霄花#} {d凌霄花}
    [if] {d何首乌}? != null
        ($cmd) = (cmd);dc {r(servant2)} give (:id) {d何首乌#} {d何首乌}
    [if] {d人参}? != null
        ($cmd) = (cmd);dc {r(servant2)} give (:id) {d人参#} {d人参}
    [if] (cmd) != null
        (cmd)
    // 三号位收药材
    dc {r(servant3)} stopstate;select {r(servant3)};pack {r(servant3)}
    @dialog
    ($cmd) = null
    [if] {d芦荟}? != null
        ($cmd) = (cmd);dc {r(servant3)} give (:id) {d芦荟#} {d芦荟}
    [if] {d山楂叶}? != null
        ($cmd) = (cmd);dc {r(servant3)} give (:id) {d山楂叶#} {d山楂叶}
    [if] {d当归}? != null
        ($cmd) = (cmd);dc {r(servant3)} give (:id) {d当归#} {d当归}
    [if] (cmd) != null
        (cmd)
    ($cmd) = null
    [if] {d柴胡}? != null
        ($cmd) = (cmd);dc {r(servant3)} give (:id) {d柴胡#} {d柴胡}
    [if] {d金银花}? != null
        ($cmd) = (cmd);dc {r(servant3)} give (:id) {d金银花#} {d金银花}
    [if] {d石楠叶}? != null
        ($cmd) = (cmd);dc {r(servant3)} give (:id) {d石楠叶#} {d石楠叶}
    [if] (cmd) != null
        (cmd)
    ($cmd) = null
    [if] {d茯苓}? != null
        ($cmd) = (cmd);dc {r(servant3)} give (:id) {d茯苓#} {d茯苓}
    [if] {d沉香}? != null
        ($cmd) = (cmd);dc {r(servant3)} give (:id) {d沉香#} {d沉香}
    [if] {d熟地黄}? != null
        ($cmd) = (cmd);dc {r(servant3)} give (:id) {d熟地黄#} {d熟地黄}
    [if] (cmd) != null
        (cmd)
    ($cmd) = null
    [if] {d冬虫夏草}? != null
        ($cmd) = (cmd);dc {r(servant3)} give (:id) {d冬虫夏草#} {d冬虫夏草}
    [if] {d络石藤}? != null
        ($cmd) = (cmd);dc {r(servant3)} give (:id) {d络石藤#} {d络石藤}
    [if] {d九香虫}? != null
        ($cmd) = (cmd);dc {r(servant3)} give (:id) {d九香虫#} {d九香虫}
    [if] (cmd) != null
        (cmd)
    ($cmd) = null
    [if] {d凌霄花}? != null
        ($cmd) = (cmd);dc {r(servant3)} give (:id) {d凌霄花#} {d凌霄花}
    [if] {d何首乌}? != null
        ($cmd) = (cmd);dc {r(servant3)} give (:id) {d何首乌#} {d何首乌}
    [if] {d人参}? != null
        ($cmd) = (cmd);dc {r(servant3)} give (:id) {d人参#} {d人参}
    [if] (cmd) != null
        (cmd)
    
    // 把药材交给随从保管
    dc {r(servant4)} stopstate;select {r(servant4)};trade {r(servant4)}
    [if] {b芦荟}? != null
        give {r(servant4)} {b芦荟#} {b芦荟}
    [if] {b山楂叶}? != null
        give {r(servant4)} {b山楂叶#} {b山楂叶}
    [if] {b当归}? != null
        give {r(servant4)} {b当归#} {b当归}
    dc {r(servant5)} stopstate;select {r(servant5)};trade {r(servant5)}
    [if] {b柴胡}? != null
        give {r(servant5)} {b柴胡#} {b柴胡}
    [if] {b金银花}? != null
        give {r(servant5)} {b金银花#} {b金银花}
    [if] {b石楠叶}? != null
        give {r(servant5)} {b石楠叶#} {b石楠叶}
    dc {r(servant6)} stopstate;select {r(servant6)};trade {r(servant6)}
    [if] {b茯苓}? != null
        give {r(servant6)} {b茯苓#} {b茯苓}
    [if] {b沉香}? != null
        give {r(servant6)} {b沉香#} {b沉香}
    [if] {b熟地黄}? != null
        give {r(servant6)} {b熟地黄#} {b熟地黄}
    dc {r(servant7)} stopstate;select {r(servant7)};trade {r(servant7)}
    [if] {b冬虫夏草}? != null
        give {r(servant7)} {b冬虫夏草#} {b冬虫夏草}
    [if] {b络石藤}? != null
        give {r(servant7)} {b络石藤#} {b络石藤}
    [if] {b九香虫}? != null
        give {r(servant7)} {b九香虫#} {b九香虫}
    dc {r(servant8)} stopstate;select {r(servant8)};trade {r(servant8)}
    [if] {b凌霄花}? != null
        give {r(servant8)} {b凌霄花#} {b凌霄花}
    [if] {b何首乌}? != null
        give {r(servant8)} {b何首乌#} {b何首乌}
    [if] {b人参}? != null
        give {r(servant8)} {b人参#} {b人参}
    
    // 随从开始采药
    dc {r(servant1)} cai
    dc {r(servant2)} cai
    dc {r(servant3)} cai
    stopstate;jh fam 0 start;go west;go west;go north;go enter;go northeast
    
    复制上方代码

登录后回复