关于mush的朱熹robot,(插3根鸡毛,加急)
下载了个mush用了下功能很强大但是不懂里面的.js后缀的语言,用edit也看不懂。我小白。。。
把"朱熹"的robot载入了,能正常触发,但是还是有问题。可能是不熟悉mush软件和不懂写网页Java Script客户端脚本文件的语言,想改脚本改也改不了。
无理头的搞了大半夜,很是抓狂。。。感觉没有ZMUD的触发器那么智能。。
我相信还是有很多玩家都碰到过和我一样的难题吧。。
有达人或者高手帮助或者解答下么。。
或者写个ZMUD下的朱熹。。(朱熹这任务的“计算题”还是很伤脑筋的)
HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP
哭。。 没看懂你想改什么?。。。 就是改不对的地方啊,因为mush的脚本写的看不懂,不入mud的智能。mush写的脚本是某种“语言” 分享下我的经验
js是javascript代码
mush的机器人主要有两个文件组成,mct是触发器,符合触发条件调用js文件中的函数
朱熹机器人我当时修改是为了猜数成功后的40秒内自动回发呆室学习读书写字(当时有人把朱熹搬到发呆室了,否则这个不能正常使用)
question.mct 修改了这里,自己找一下,覆盖。注意enabled="y",我当时改完发现不触发,找了半天才发现这个问题 (把所有花括号换成尖括号,发尖括号不能正常显示,我懒得转换>什么的了){trigger
enabled="y"
group="question"
match="^朱熹对你竖起了大拇指.*$"
regexp="y"
send_to="12"
sequence="100"
}
{send}do_after2();{/send}
{/trigger}question.js增加do_after2()这个函数。注意带有空格的命令要用括号括起来,否则mush会当作多条指令执行。这个地方其实用循环更好,不过拷贝粘贴更简单,达到目的就行了,嘿嘿
每次读5是我当时以为升级时,多出的次数会浪费,后来发现不是的,所以无视吧function do_after2()
{
world.DoAfterSpeedWalk (0.1,"s w s s w (drink) e n n d (out)");
world.DoAfterSpeedWalk (2.5,"(xue zhu for literate 5) (xue zhu for literate 5) (xue zhu for literate 5) (fadai)");
world.DoAfterSpeedWalk (5,"(xue zhu for literate 5) (xue zhu for literate 5) (xue zhu for literate 5) (fadai)");
world.DoAfterSpeedWalk (7.5,"(xue zhu for literate 5) (xue zhu for literate 5) (xue zhu for literate 5) (fadai)");
world.DoAfterSpeedWalk (10,"(xue zhu for literate 5) (xue zhu for literate 5) (xue zhu for literate 5) (fadai)");
world.DoAfterSpeedWalk (12.5,"(xue zhu for literate 5) (xue zhu for literate 5) (xue zhu for literate 5) (fadai)");
world.DoAfterSpeedWalk (15,"(xue zhu for literate 5) (xue zhu for literate 5) (xue zhu for literate 5) (fadai)");
world.DoAfterSpeedWalk (17.5,"(xue zhu for literate 5) (xue zhu for literate 5) (xue zhu for literate 5) (fadai)");
world.DoAfterSpeedWalk (20,"(xue zhu for literate 5) (xue zhu for literate 5) (xue zhu for literate 5) (fadai)");
world.DoAfterSpeedWalk (22.5,"(xue zhu for literate 5) (xue zhu for literate 5) (xue zhu for literate 5) (fadai)");
world.DoAfterSpeedWalk (25,"(xue zhu for literate 5) (xue zhu for literate 5) (xue zhu for literate 5) (fadai)");
world.DoAfterSpeedWalk (27.5,"(xue zhu for literate 5) (xue zhu for literate 5) (xue zhu for literate 5) (fadai)");
world.DoAfterSpeedWalk (30,"(xue zhu for literate 5) (xue zhu for literate 5) (xue zhu for literate 5) (fadai)");
world.DoAfterSpeedWalk (32.5,"(xue zhu for literate 5) (xue zhu for literate 5) (xue zhu for literate 5) (fadai)");
world.DoAfterSpeedWalk (35,"(xue zhu for literate 5) (xue zhu for literate 5) (xue zhu for literate 5) (fadai)");
world.DoAfterSpeedWalk (37,"(enter) u e n (chi liang)");
}
[ 本帖最后由 zleo 于 2009-8-1 01:34 PM 编辑 ] 开始有人学习使用MUSH了
addoil
hz6
页:
[1]