Skip to content

Commit

Permalink
feat(pkuxkx): path.BotStep 现在支持参数了
Browse files Browse the repository at this point in the history
  • Loading branch information
dzpao committed May 10, 2024
1 parent fdc2879 commit 25ea31e
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion mud/pkuxkx/plugins/basic/map/path.tin
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,16 @@ event.HandleOnce {map/init} {map/path} {map} {map.path.Init};
#local bot {%0};
#local name {%1};

#info arguments save;
#local args {$info[ARGUMENTS]};
#unvar info[ARGUMENTS];
#unlocal args[0];

#if { "$name" == "" } {
xtt.Usage %90;
#return;
};

#if { ! @path.isTracing{} } {
errLog 路径录制尚未开始。;
#return;
Expand Down Expand Up @@ -192,7 +202,23 @@ event.HandleOnce {map/init} {map/path} {map} {map.path.Init};
event.UnHandle {GMCP.Move} {path.Trace} {pathdir};

#path stop;
#path insert {$bot} {$bot};

#local step {$name};
#local count {&args[]};
#if { $count > 1 } {
#local idx {};
#loop 2 {$count} {idx} {
#local arg {$args[$idx]};
#if { "$arg" == "%*;%*" } {
#cat {step} {/{$arg}};
};
#else {
#cat {step} {/$arg};
};
};
};

#path insert {$step} {$step};
path.message 已经暂停路径录制,将会在机器人运行结束后自动继续。;
map.$bot;
};
Expand Down

0 comments on commit 25ea31e

Please sign in to comment.