Mud 版 (精华区)
发信人: saluo (dindin), 信区: Mud
标 题: 解谜机器人
发信站: 紫 丁 香 (Wed Dec 15 12:56:07 1999), 转信
这么多人stop了,我想我也得停一停.至少两个月,希望巫师莫要
清理不常上线的id才好.走时留点东西,自己做的一个解谜机器人.用
了一些时候,该改的错误基本都改正了。
这个解谜机器人的优点是接到谜后能在小窗口显示该谜的相关信
息.并且求贤和送物加上了triggers,只须找到该npc即可.
在zmud界面下电击window->status就可打开小窗口,在命令行上方
的白条上单击鼠标右键,在弹出的Status Windows中粘贴上以下几行,
机器人的效果就可在该窗口里显示出来.
@num1 食物:@food @food_difang
@num2 难民:@people @what @sw_difang
@num3 求贤:@baixian @shenme @baixian_difang
@num4 灭妖:@mieyao @kill_difang
@num5 武器:@weapon @weapon_difang
@num6 盔甲:@armor @armor_difang
@num7 募捐:@mujuan @mujuan_difang
该机器人另一个关键是其配置的解谜帮助文件.它必须与zmud.exe
在同一个子目录下.在zmud界面下输入#file 1 jm.txt打开文件,该机器
人才能正常工作.帮助文件,由于其巨大,我分成五篇贴上.拷贝下来后务
必按从小到大的顺序组合为一个文件,顺序的错误,可能造成机器人的抓
取信息错误.
以下是该机器人,拷贝成*.txt文件,再调整一下顺序,务必使每一行
以#号开头,然后可以用zmud的导入功能:settings->import->script加
到你原来的机器人上,也可以几段几段的拷贝到zmud的命令行按回车.
jm--得到谜题并自动查询相关信息.
jjm--自动清宁静打坐并执行jm
qs--再次更新谜题以及相关信息.
po,gong,zhu,lan,在婆,公,猪,兰处给相应物品.
----------------
#ALIAS az {ask zhu about food}
#ALIAS ay {ask yin about 灾民}
#ALIAS ac {ask chen about 求贤}
#ALIAS ag {ask gong about weapon}
#ALIAS ap {ask po about armor}
#ALIAS al {ask lan about cloth}
#ALIAS ah {ask hu about 妖魔}
#ALIAS jm {fly kaifeng;ne;n;e;e;al;w;w;n;n;n;e;e;az;w;w;n;nw;sw;s;w;w;s;ap;n;n;ag;s;e;e;s;s;s;se;se;s;eu;s;s;ac;w;ay;e;e;ah;w;n;n;wd;n;nw;#t+ bai;quests;#wa 5000;#t- bai;#80 {#beep}}
#ALIAS jjm {i=0;fly kaifeng;ne;n;n;n;n;nw;n;n;nu;n;donate}
#ALIAS qs {#t+ bai;quests;#wa 5000;#t- bai}
#ALIAS zhu {give zhu @food_id}
#ALIAS gong {give gong @weapon_id}
#ALIAS po {give po @armor_id}
#ALIAS lan {give lan @mujuan_id}
#FUNC food {}
#FUNC line2 {}
#FUNC baixian {}
#FUNC line {}
#FUNC i {0}
#FUNC mieyao {}
#FUNC line4 {}
#FUNC weapon {}
#FUNC line5 {}
#FUNC armor {}
#FUNC line3 {}
#FUNC people {}
#FUNC what {}
#FUNC line1 {}
#FUNC mujuan {}
#FUNC line6 {}
#FUNC num {1}
#FUNC difang {}
#FUNC yaomo {}
#FUNC people_id {}
#FUNC what_id {}
#FUNC sw_difang {}
#TRIGGER {盔甲:(%x)} {#cw 13;#t+ jiemi-armor;armor=%1;line3=%grep(1,@armor);#sh @line3} {bai} 548
#TRIGGER {你深深地吐出一口气,徐徐站了起来} {#math i @i+1;#if (@i==1) {e;ning};#if (@i==2) {e;jing};#if (@i==3) {w;s;s;}} {qing} 548
#TRIGGER {你从身上取出*放到雕玉箱里。} {#t+ qing;n;n;w;qing} {common} 519
#TRIGGER {你走(%x)三心宫,呼出一口气,顿时心境明朗如镜。} #t+ bai;#math i @i-3;s;sd;jm} {bai1} 519
#TRIGGER {募捐:(%x)} {#cw 15;#t+ jiemi-cloth;mujuan=%1;line6=%grep(1,@mujuan);#sh @line6} {bai} 548
#TRIGGER {拜贤:(%x)} {#t+ jiemi-bx1;#cw 10;baixian=%1;line=%grep(1,@baixian);#sh @line;i=0} {bai} 548
#TRIGGER {灭妖:(%x)} {#cw 14;mieyao=%1;#t+ jiemi-kill;line4=%grep(1,@mieyao);#sh @line4} {bai} 548
#TRIGGER {送物:(%x) (%x)} {#cw 11;i=0;#t+ jiemi-sw1;people=%1;what=%2;line1=%grep(1,@people--*--@what);#sh @line1} {bai} 548
#TRIGGER {武器:(%x)} {#cw 9;#t+ jiemi-weapon;weapon=%1;line5=%grep(1,@weapon);#sh @line5} {bai} 548
#TRIGGER {食物:(%x)} {#cw 12;#t+ jiemi-food;food=%1;line2=%grep(1,@food);#sh @line2} {bai} 548
#TRIGGER {这里没有这个人。} {l;i=0} {common} 519
#TRIGGER {@weapon} {#cw 9;} {jiemi-co} 519
#TRIGGER {@people} {#cw 11} {jiemi-co} 519
#TRIGGER {@armor} {#cw 13;} {jiemi-co} 519
#TRIGGER {@food} {#cw 12} {jiemi-co} 519
#TRIGGER {@baixian说道} {baixian=搞定;id=搞定;shenme=搞定;baixian_difang=搞定;i=0} {jiemi-bx0} 519
#TRIGGER {@mujuan} {#cw 15} {jiemi-co} 519
#TRIGGER {@mieyao} {#cw 14} {jiemi-co} 519
#TRIGGER {@baixian} {#cw 10;} {jiemi-co} 519
#TRIGGER {@what} {#cw 11} {jiemi-co} 519
#TRIGGER {@baixian--*--(*)--(*)} {#t+ jiemi-bx2;#t- jiemi-bx1;shenme=%1;baixian_difang=%2;#wa 2000;#sh @line} {jiemi-bx1} 548
#TRIGGER {@baixian--(*)--@shenme--@baixian_difang} {#t- jiemi-bx2;id=%1} {jiemi-bx2} 548
#TRIGGER {@baixian?@id?} {#cw 10;#if (@id="chen") {ask chen @i about @shenme;#math i @i+1} {ask @id about @shenme}} {jiemi} 519
#TRIGGER {@people--*--@what--(*)--(*)} {#t+ jiemi-sw2;#t- jiemi-sw1;what_id=%1;sw_difang=%2;#wa 2000;#sh @line1} {jiemi-sw1} 548
#TRIGGER {@people--(*)--@what--@what_id--@sw_difang} {#t- jiemi-sw2;people_id=%1} {jiemi-sw2} 548
#TRIGGER {@people?@people_id?} {#cw 11;#math i @i+1;give 1 @what_id to @people_id @i} {jiemi} 519
#TRIGGER {@people由衷地向你道谢} {people=搞定;people_id=搞定;what=搞定;what_id=搞定;sw_difang=搞定;i=0} {jiemi-sw} 519
#TRIGGER {@what不能被分开给人。} {give @what_id to @people_id @i} {jiemi-sw3} 519
#TRIGGER {@food--(*)--(*)} {#t- jiemi-food;food_id=%1;food_difang=%2} {jiemi-food} 548
#TRIGGER {@armor--(*)--(*)} {#t- jiemi-armor;armor_id=%1;armor_difang=%2} {jiemi-armor} 548
#TRIGGER {@mieyao?@id?} {#cw 14} {jiemi} 519
#TRIGGER {@mieyao--(*)--(*)} {#t- jiemi-kill;kill_id=%1;kill_difang=%2} {jiemi-kill} 548
#TRIGGER {@weapon--(*)--(*)} {#t- jiemi-weapon;weapon_id=%1;weapon_difang=%2} {jiemi-weapon} 548
#TRIGGER {@mujuan--(*)--(*)} {#cw 15;#t- jiemi-cloth;mujuan_id=%1;mujuan_difang=%2} {jiemi-cloth} 548
#TRIGGER {你身上没有这样东西。} {i=0} {jiemi-sw} 519
#TRIGGER {陈光蕊对你说道:多谢} {#t+ get;#math num @num+1;baixian="ok";id="ok";shenme="ok";baixian_difang="ok";num3=@num;n;n;wd;n;nw;#13 w;n;n;n;n;nu;n} {bai1} 519
#TRIGGER {猪八戒对你说道:多谢} {#t+ get;#math num @num+1;food="ok";food_id="ok";food_difang="ok";num1=@num;w;w;s;s;s;s;sw;#13 w;n;n;n;n;nu;n} {bai1} 519
#TRIGGER {胡敬德对你说道:多谢} {#t+ get;#math num @num+1;mieyao="ok";kill_id="ok";kill_difang="ok";num4=@num;w;n;n;wd;n;nw;#13 w;n;n;n;n;nu;n} {bai1} 519
#TRIGGER {相婆对你说道:多谢} {#t+ get;#math num @num+1;armor="ok";armor_id="ok";armor_difang="ok";num6=@num;n;e;e;s;s;s;se;#13 w;n;n;n;n;nu;n} {bai1} 519
#TRIGGER {相公对你说道:多谢} {#t+ get;#math num @num+1;weapon="ok";weapon_id="ok";weapon_difang="ok";num5=@num;s;e;e;s;s;s;se;#13 w;n;n;n;n;nu;n} {bai1} 519
#TRIGGER {香兰对你说道:多谢} {#t+ get;#math num @num+1;mujuan="ok";mujuan_id="ok";mujuan_difang="ok";num7=@num;w;w;s;sw;#13 w;n;n;n;n;nu;n} {bai1} 519
#TRIGGER {殷温娇对你说道:多谢} {#t+ get;#math num @num+1;people="ok";what="ok";sw_difang=ok;num2=@num;e;n;n;wd;n;nw;#13 w;n;n;n;n;nu;n} {bai1} 519
--
※ 来源:.紫 丁 香 bbs.hit.edu.cn.[FROM: 202.118.226.69]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:5.255毫秒