| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #alias {ui.walk.go} {
- #local dir {%1};
- #if { @char.IsBusy{} || @char.InCombat{} } {
- halt;
- };
- $ui.walk.cmd $dir;
- };
- #alias {ui.walk.keypad.do} {
- #local key {%1};
- #local type {%2};
- #local args {%3};
- #if { "$type" == "cmd" } {
- $args;
- #return;
- };
- #local dir {};
- #foreach {$args} {dir} {
- #local exits {$gMapRoom[exits]};
- #if { "$exits" == "" } {
- #local exits {@sset.Add{{};$gMapRoom[gmcp][出口信息][]}};
- };
- #if { @sset.Contains{{$exits};$dir} } {
- ui.walk.go $dir;
- #return;
- };
- };
- };
- option.Define {GancheMode} {Bool} {是否开启运镖模式} {false};
- #alias {ui.walk.Ganche.Setup} {
- #if { @option.IsDisable{GancheMode} } {
- #class ui.walk.ganche.mode kill;
- errLog 运镖模式已关闭。;
- #if { @option.IsEnable{KeypadWalk} || @option.IsEnable{ScreenKeypad} } {
- prompt.Set {{ganche}{@mslp.Exec{option.Toggle GancheMode;<119>已关闭<299>}}};
- };
- #else {
- prompt.Set {{ganche}{}};
- };
- #var ui.walk.cmd {go};
- };
- #else {
- #class ui.walk.ganche.mode open;
- #local short {};
- #foreach {n;w;e;s;u;d;ne;nw;se;sw;enter;out} {short} {
- #local long {@dir.Long{$short}};
- #line sub var #alias {$short} {ui.walk.go $long};
- #line sub var #alias {$long} {ui.walk.go $long};
- };
- #class ui.walk.ganche.mode close;
- okLog 运镖模式已开启。;
- prompt.Set {{ganche}{@mslp.Exec{option.Toggle GancheMode;<129>已开启<299>}}};
- #var ui.walk.cmd {gan che to};
- };
- };
- event.HandleOnce {user-online} {ui/walk/ganche} {pkuxkx/online} {
- event.Handle {option/changed} {opt/GancheMode/pkuxkx} {lib/ui/walk/pkuxkx} {ui.walk.Ganche.Setup};
- event.Handle {option/changed} {opt/KeypadWalk/pkuxkx} {lib/ui/walk/pkuxkx} {ui.walk.Ganche.Setup};
- event.Handle {option/changed} {opt/ScreenKeypad/pkuxkx} {lib/ui/walk/pkuxkx} {ui.walk.Ganche.Setup};
- ui.walk.Ganche.Setup;
- };
|