触发-新提示信息-关键字
你感觉四周的元气似乎有放缓的趋势,是否献祭你的内力?
命令
wqcy next
首先被跟随方要把设置里的
不显示玩家进出房间描述
关闭。
代码主要靠@tip玩家离开房间的信息来跟随
#input ($player) = 输入名字,null
#config
[while] true
@tip (player)往($site)离开。
[if] (site) == 西方
go west
[if] (site) == 北方
go north
[if] (site) == 南方
go south
[if] (site) == 东方
go east
[if] (site) == 西南
go southwest
[if] (site) ==东南
go southeast
[if] (site) ==东北
go northeast
[if] (site) ==西北
go northwest
[if] (site) == 北边
go northup
[if] (site) == 南边
go southdown
跟随会有延迟,这里也可以用触发来获取,触发反应会快点。
获取被跟随方的叫杀目标,建议组队,不组队的话可以更换发言频道
[while] true
@tip 看起来($name_npc)想杀死你!
[if] ($name_npc) != (name_npc2)
tm (name_npc)
($name_npc2)=(name_npc)
@await 1000
跟随方的新聊天信息触发
kill {r(content)}?
代码可以应付大部分场景,犄角格拉就不行,门派战和襄阳测试没问题
@老实人 在 请问代码太长了换行怎么操作 中说:
自动师门任务
[if] ($Boss) == null
($Boss) = 默认值
[if] ($Gather) == null
($Gather) = 默认值
[if] ($Fish) == null
($Fish) = 默认值
[if] ($Give_up) == null
($Give_up) = 默认值
#select ($Boss) = 门派任务,宋远桥|清乐比丘|高根明|苏梦清|苏星河|左全,(Boss)
#select ($Gather) = 采集随从,丫鬟|小流氓|程灵素|黄蓉|小昭|韦春芳|无,(Gather)
#select ($Fish) = 钓鱼随从,丫鬟|小流氓|程灵素|黄蓉|小昭|韦春芳|无,(Fish)
#select ($Give_up) = 自动放弃,是|不,(Give_up)
#config
stopstate
[while] true
($iden) = false
($hard) = null
[if] (Boss) == 宋远桥
jh fam 1 start;go north
[if] (Boss) == 苏梦清
jh fam 4 start;go west
[if] (Boss) == 左全
jh fam 6 start;go down
[if] (Boss) == 清乐比丘
jh fam 2 start
[if] (Boss) == 高根明
jh fam 3 start
[if] (Boss) == 苏星河
jh fam 5 start
task sm {r(Boss)}
task sm {r(Boss)}
@tip (Boss)对你说道:我要的是($prop),你要是找不到就换别的吧。|(Boss)对你点头道:($hard), 你先去休息一下吧。
pack none
($num)=false
[if] (hard) == 辛苦了
$zdwk
@exit
[if] {b(prop)}? == null
[if] (prop)==<wht>布衣</wht>||(prop)==<wht>钢刀</wht>||(prop)==<wht>木棍</wht>||(prop)==<wht>英雄巾</wht>||(prop)==<wht>布鞋</wht>||(prop)==<wht>铁戒指</wht>|| (prop)==<wht>簪子</wht>||(prop)==<wht>长鞭</wht>||(prop)==<wht>钓鱼竿</wht>||(prop)==<wht>鱼饵</wht>
jh fam 0 start;go east;go south
list {r杨永福}
@dialog
buy 1 {d(prop)} from {r杨永福}
($num)=true
[if] (prop)==<hig>金创药</hig>||(prop)==<hig>引气丹</hig>||(prop)==<hig>养精丹</hig>
jh fam 0 start;go east[2];go north
list {r药铺老板 平一指%}
@dialog
buy 1 {d(prop)} from {r药铺老板 平一指%}
($num)=true
[if] (prop)==<wht>铁剑</wht>||(prop)==<wht>钢刀</wht>||(prop)==<wht>铁棍</wht>||(prop)==<wht>铁杖</wht>||(prop)==<wht>飞镖</wht>
jh fam 0 start;go east[2];go south
list {r铁匠铺老板 铁匠%}
@dialog
buy 1 {d(prop)} from {r铁匠铺老板 铁匠%}
($num)=true
[if] (prop)==<wht>米饭</wht>||(prop)==<wht>包子</wht>||(prop)==<wht>鸡腿</wht>||(prop)==<wht>面条</wht>||(prop)==<wht>扬州炒饭</wht>||(prop)==<wht>米酒</wht>||(prop)==<wht>花雕酒</wht>||(prop)==<wht>女儿红</wht>||(prop)==<hig>醉仙酿</hig>||(prop)==<hiy>神仙醉</hiy>
jh fam 0 start;go north[2];go east
list {r店小二}
@dialog
buy 1 {d(prop)} from {r店小二}
($num)=true
[if] (num)==false
jh fam 0 start;go west[2];go north;go enter;go north
store
@dialog
($got) = false
[if] {d(prop)}? != null
qu 1 {d(prop)}
($got) = true
[if] (got) == false
go south;go northeast
[if] (Gather) != 无
dc {r(Gather)} stopstate
pack {r(Gather)}
@dialog
[if] {d(prop)}? != null
dc {r(Gather)} give (:id) 1 {d(prop)}
($got) = true
dc {r(Gather)} cai
[if] (got) == false
[if] (Fish) != 无
dc {r(Fish)} stopstate
pack {r(Fish)}
@dialog
[if] {d(prop)}? != null
dc {r(Fish)} give (:id) 1 {d(prop)}
($got) = true
dc {r(Fish)} diao
[if] (Boss) == 宋远桥
jh fam 1 start;go north
[if] (Boss) == 苏梦清
jh fam 4 start;go west
[if] (Boss) == 左全
jh fam 6 start;go down
[if] (Boss) == 清乐比丘
jh fam 2 start
[if] (Boss) == 高根明
jh fam 3 start
[if] (Boss) == 苏星河
jh fam 5 start
[if] {b(prop)}? != null
task sm {r(Boss)}
task sm {r(Boss)} give {b(prop)}
($iden)=true
[if] {b(prop)}? == null && (Give_up) == 是 && (iden) == false
task sm {r(Boss)}
task sm {r(Boss)} giveup
$zdwk