星宿派 昌隆镖局运镖机器人原理 1.0
本帖最后由 wolfsun 于 2015-3-8 11:47 PM 编辑本程序不是完整版,非全自动。只讲原理和基本机器人。
#TRIGGER {护镖任务*现在即可接到下*镖局的任务。} {set brief 0;n;n;l} {} 519
#TRIGGER {护镖任务*仍需(*)秒才能接到下个普通镖局的任务。} {tt=%1;tt=%replace(@tt,二分,120+);tt=%replace(@tt,一分,60+);tt=%replace(@tt,五十,5);tt=%replace(@tt,四十,4);tt=%replace(@tt,三十,3);tt=%replace(@tt,二十,2);tt=%replace(@tt,十,1);tt=%replace(@tt,九,9);tt=%replace(@tt,八,8);tt=%replace(@tt,七,7);tt=%replace(@tt,六,6);tt=%replace(@tt,五,5);tt=%replace(@tt,四,4);tt=%replace(@tt,三,3);tt=%replace(@tt,二,2);tt=%replace(@tt,一,1);#wa 1000;#math tt (@tt);#say 现在等待@tt秒;#math tt (@tt)*1000;#wa @tt;jobquery -z} {} 519
接镖觸发:
#TRIGGER {(%d)%s南昌飞虎镖局%s%d秒%s待认领} {jobid=%1;routefeihu;} {a} 519
#TRIGGER {(%d)%s(请修改各个觸发地点)%s%d秒%s待认领} {jobid=%1;routesuzhou;} {a} 519
....
....
#TRIGGER {使用命令(*)来认领押镖任务。} {#if @jobid>0 {#if @mixin=0 {#t- foll;#say getesc @jobid;getesc @jobid}} {#wa 2000;s;n};maxn=%numwords(@route,|)} {a} 519
#ALIAS zhuaname {maxn=%numwords(@route,|);#say 此次护镖共有 @maxn 步;tuin=1;#wa 2000;#say 2秒钟后开始运镖....;tuinoche}
下面为简化路径:
#ALIAS jianhua {
cut=0;fword=%word(@routeback,1,|);
sword=%word(@routeback,2,|);
#if (@fword=east and @sword=west) {cut=1};
#if (@fword=west and @sword=east) {cut=1};
#if (@fword=north and @sword=south) {cut=1};
#if (@fword=south and @sword=north) {cut=1};
#if (@fword=eastup and @sword=westdown) {cut=1};
#if (@fword=westup and @sword=eastdown) {cut=1};
#if (@fword=northup and @sword=southdown) {cut=1};
#if (@fword=southup and @sword=northdown) {cut=1};
#if (@fword=eastdown and @sword=westup) {cut=1};
#if (@fword=westdown and @sword=eastup) {cut=1};
#if (@fword=northdown and @sword=southup) {cut=1};
#if (@fword=southdown and @sword=northup) {cut=1};
#if (@fword=northeast and @sword=southwest) {cut=1};
#if (@fword=northwest and @sword=southeast) {cut=1};
#if (@fword=southwest and @sword=northeast) {cut=1};
#if (@fword=southeast and @sword=northwest) {cut=1};
#if (@fword=enter and @sword=out) {cut=1};
#if (@fword=out and @sword=enter) {cut=1};
#if (@fword=up and @sword=down) {cut=1};
#if (@fword=down and @sword=up) {cut=1};
#if @cut=1 {#say 简化掉两个对称方向 @fword @sword;
routeback=%delitem(@fword,@routeback);
routeback=%delitem(@sword,@routeback)}}
定位伙计后回镖局:
#ALIAS goback1 {
nowgo=%word(@routeback,@tmpi,|);
#if @nowgo=east {w};
#if @nowgo=west {e};
#if @nowgo=south {n};
#if @nowgo=north {s};
#if @nowgo=southeast {nw};
#if @nowgo=southwest {ne};
#if @nowgo=northwest {se};
#if @nowgo=northeast {sw};
#if @nowgo=enter {out};
#if @nowgo=out {enter};
#if @nowgo=southdown {nu};
#if @nowgo=northdown {su};
#if @nowgo=eastdown {wu};
#if @nowgo=westdown {eu};
#if @nowgo=northup {sd};
#if @nowgo=southup {nd};
#if @nowgo=westup {ed};
#if @nowgo=eastup {wd};
#if @nowgo=up {d};
#if @nowgo=down {u};
#wa 100;#add tmpi 1;
#add backn -1;
#if @backn>0 {goback1} {#t+ tuiche;tuiche}}
送到镖后回镖局:
#ALIAS goback {nowgo=%word(@routeback,@tmpn,|);#if @nowgo=east {w};#if @nowgo=west {e};#if @nowgo=south {n};#if @nowgo=north {s};#if @nowgo=southeast {nw};#if @nowgo=southwest {ne};#if @nowgo=northwest {se};#if @nowgo=northeast {sw};#if @nowgo=enter {out};#if @nowgo=out {enter};#if @nowgo=southdown {nu};#if @nowgo=northdown {su};#if @nowgo=eastdown {wu};#if @nowgo=westdown {eu};#if @nowgo=northup {sd};#if @nowgo=southup {nd};#if @nowgo=westup {ed};#if @nowgo=eastup {wd};#if @nowgo=up {d};#if @nowgo=down {u};#wa 100;#add tmpn 1;#add maxn -1;#if @maxn<3 {set brief 0};#if @maxn>=0 {goback}}
不带镖定位伙计:
#ALIAS tuinoche {#wa 400;#if (@tmpi<=@maxn and @tagid=0) {@nowgo;routeback=%additem(@routeback,@nowgo);jianhua;#add tmpi 1;nowgo=%word(@route,@tmpi,|);tuinoche} {tmpi=1;backn=%numwords(@routeback,|);goback1}}
运镖走:
#ALIAS tuiche {tell (你的定位人物ID) follow none;maxn=%numwords(@routeback,|);tmpn=%numwords(@routeback,|);#say 此次护镖共有 @maxn 步;tmpi=1;nowgo=south;#wa 300;robber=0;tuitui}
推车动作:
#ALIAS tuitui {#if @qudu=1 {yun qudu};#wa 200;#if @luanpao=0 {#if (@robber<1 and @tmpn>0) {robber=1;#wa 100;gan che to @nowgo;robber=0}} {#if @robber<1 {#t+ zhao;l;#wa 1000;tmn=0;zhaolu;#t- zhao}}}
(路径请补充)
南昌飞虎镖局路径:
#ALIAS routefeihu {route=south|south|southwest|south|south|south|south|south|south|south|south|northwest|north|northwest|north|north|north|west|east|east|west|north|north|west|east|north|north|northwest|northdown|southup|northeast|southwest|southeast|south|south|east|west|south|west|west|west|westup|westup|northup|enter|west|east|north|south|east|west|out|southdown|westup|eastdown|eastdown|eastdown|east|east|north|south|south|north|east|east|east|east|eastup|eastup|westdown|westdown|west|west|north|south|south|enter|west|east|east|west|out|north|west}
.....
.....
.....
福州镖局路径:
#ALIAS routefuzhou {route=south|south|southwest|south|south|south|south|south|south|south|southeast|southeast|southdown|south|south|east|west|west|east|south|east|south|north|north|north|south|south|east|west|west|south|south|north|west|east|north|west|north|enter|out|south|west|west|southwest|southwest|south|west|east|south|}
#FUNC biaojob {0} {0}
#FUNC jobid {0} {0}
#FUNC tuin {1} {1}
#FUNC luanpao {0} {0}
#FUNC robber {0} {0}
#FUNC maxn {0} {0}
#FUNC route {0} {0}
#FUNC nowgo {south} {south}
#FUNC mixin {0} {0}
#FUNC exitem {0} {0}
#FUNC tmn {0} {0}
#FUNC (你的定位人物ID) {0} {0}
#FUNC efx {0} {0}
#FUNC maxtmn {0} {0}
#FUNC zhuan {18}
#FUNC tagn {1}
#FUNC tagname {0} {0}
#FUNC routeback {north|east|north|north|north|north|northwest|north|northwest|south|south|south|south|south|south|south|south|southwest|south|south|}
#FUNC fword {north}
#FUNC sword {east}
#FUNC cut {0} {0}
#FUNC tmpi {1}
#FUNC backn {0} {0}
#FUNC tmpn {22}
#FUNC foll {0}
#FUNC idname {南宫群云}
#FUNC biaoche {0}
#FUNC tagid {1}
#FUNC tt {131000}
#FUNC zhaolumang {0}
#FUNC robn {1}
#FUNC qudu {0}
#FUNC huose {0}
#TRIGGER {^http://pkuxkx.com/antirobot/robot.php?filename=(%*)(*)} {#url %copy(%trigger,8,%len(%trigger)-7)} {} 519
#TRIGGER {你累了个半死,终于把镖运到了地头。} {#t+ foll;#add tmpn 1;jobid=0;biaoche=9;biaojob=9} {} 519
#TRIGGER {你上次运镖太辛苦了,下去休息休息吧。} {#wa 10000;l} {} 519
#TRIGGER {此行描述为乱入后,定位原位置用的描述,改为你的定位人物} {#if @luanpao=1 {(你的定位人物ID)=1}} {} 519
#TRIGGER {这里*的出口是 (*)。} {exitem=%1;exitem=%replace(@exitem,、,|);exitem=%replace(@exitem,和,|);exitem=%replace(@exitem, ,);maxtmn=%numwords(@exitem,|)} {zhao} 519
#TRIGGER {(你的名字)把这批红货送到*那里,他已经派了个伙计名叫(*)到*附近接你,把镖车送到他那里就行了。} {tagname=%1;#t- foll;#t- zhao;#t- a;set brief 1;tmpi=1;luanpao=0;tagid=0;robber=0;routeback=;nowgo=south;#say 正在准备路径及参数,5秒后开始寻找目标...;#wa 5000;#if @jobid>0 {tuinoche}} {} 519
#TRIGGER {劫匪*起纵遁入暗里不见了。} {#add robber -1;#wa 2000;#if @robber>0 {hit robber;yun hua robber} {tuitui}} {tuiche} 519
#TRIGGER {劫匪突然从暗处跳了出来,阴笑道:“红货和人命都留下来吧!。”} {#if @Jobid>0 {robber=1;robn=1;l robber;l robber 2}} {tuiche} 519
#TRIGGER {斜刺里冲出来*猛地对你痛下杀手!} {#if @jobid>0 {hitall;ph}} {tuiche} 519
#TRIGGER {(你的定位人物名字)决定开始跟随你一起行动。} {#t- foll;#t- tuiche;#wa 1000;tmpi=1;#2 halt;goback} {foll} 519
#TRIGGER {劫匪伸手一拦道:“想跑?没那么容易!”} {robber=1;#if @Jobid>0 {hit robber;ph}} {tuiche} 519
#TRIGGER {你赶着镖车驶了过来。} {huose=0;luanpao=0;#wa 4000;#t- tuitui2;#t+ tuitui1;nowgo=%word(@routeback,@tmpn,|);tuitui} {tuitui2} 519
#TRIGGER {你赶着镖车驶了过来。} {huose=0;#if @tmpn>0 {#add tmpn -1;#say 还有@tmpn步;tell (你的定位人物ID) @nowgo};nowgo=%word(@routeback,@tmpn,|);#wa 4000;#if @robber=0 {tuitui}} {tuitui1} 519
#TRIGGER {*(你的人物ID)'s robber} {hit robber;#wa 1000;l (你的ID)'s robber} {} 519
#TRIGGER {「店铺伙计」@tagname} {tagid=1;#3 #say 发现目标;} {} 519
#TRIGGER {(你的定位人物名字)*走了过来。} {#wa 500;tell (定位人物ID) follow (你的ID)} {foll} 519
#TRIGGER {你要看什么?} {#if @robber=1 {robber=0;tuitui}} {tuiche} 519
#TRIGGER {这是一家镖局,上面一个牌匾草书*年代比较久远了。} {give zuo cai wu;#wa 1000;#if @biaoche=9 {ask zuo about finish;biaoche=0} {#if @mixin=0 {listesc} {#5 #say 要去找失踪趟子手了。。。}}} {} 519
#TRIGGER {左二把拍了拍(你的名字)的头,说道:「好孩子,乖。」} {#wa 2000;#t+ a;biaoche=0;route=0;foll=0;set brief 1;#2 s;#if @mixin=0 {#wa 4000;jobquery -z} {#say 要查看密信}} {} 519
#TRIGGER {左二把递给你一封密信。} {mixin=1;#5 #say 要去找失踪趟子手了。。。} {} 519
#TRIGGER {你给左二把一些失踪的财物。} {mixin=0} {} 519
#TRIGGER {卷走*财物的伙计*~((*)~)} {#2 ask %lower(%1) about yao;} {} 519
乱入:
#TRIGGER {劫匪趁你不注意,推着镖车就跑,你赶紧追了上去。} {zhaolumang=0;#t- tuitui1;#t+ tuitui2;#t+ zhao;(你的定位人物ID)=0;luanpao=1} {tuiche} 519
找到定位人物:
#ALIAS zhaolu {#if @zhaolumang=0 {zhaolumang=1;#wa 1500;zhaolumang=0;#if @luanpao=1 {#say 找路中..zhaolu..;#add tmn 1;efx=%word(@exitem,@tmn,|);l @efx;#wa 1000;zhaolumang=0;#if @(你的定位人物ID)=1 {(你的定位人物ID)=0;tmn=0;#t- zhao;gan che to @efx} {#if @tmn=@maxtmn {tmn=0};#wa 4000;zhaolu}}}}
#TRIGGER {劫匪惊出一身冷汗,却险险避过了这一招。} {#wa 3000;ph} {tuiche} 519
#TRIGGER {{你战胜了|李莫愁死了}} {#wa 1000;#if @robber=0 {tuitui}} {tuiche} 519
#TRIGGER {李莫愁脚下一个不稳,跌在地上一动也不动了。} {tuitui} {tuiche} 519
#TRIGGER {你突然打了个寒战,明显感到一股寒流已经侵入体内!} {qudu=1} {} 519
北大侠客行MUD,中国最好的MUD 思路:
1,接镖。
2、定位伙计
3、定位伙计过程中,简化路径。
4、找到伙计回镖局
5、运镖
6、乱入,定位,回正确房间。
7、送到镖,回镖局。 我瞄了一眼就发现你很有bt的潜质啊 bow!admire 不错啊 学习了
页:
[1]