walk.extra.tin 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #alias {ui.walk.go} {
  2. #local dir {%1};
  3. #if { @char.IsBusy{} || @char.InCombat{} } {
  4. halt;
  5. };
  6. $ui.walk.cmd $dir;
  7. };
  8. option.Define {GancheMode} {Bool} {是否开启运镖模式} {false};
  9. #alias {ui.walk.Ganche.Setup} {
  10. #if { @option.IsDisable{GancheMode} } {
  11. #class ui.walk.ganche.mode kill;
  12. errLog 运镖模式已关闭。;
  13. #if { @option.IsEnable{KeypadWalk} || @option.IsEnable{ScreenKeypad} } {
  14. prompt.Set {{ganche}{@mslp.Exec{option.Toggle GancheMode;<119>已关闭<299>}(点击开启)}};
  15. };
  16. #else {
  17. prompt.Set {{ganche}{}};
  18. };
  19. #var ui.walk.cmd {go};
  20. };
  21. #else {
  22. #class ui.walk.ganche.mode open;
  23. #local short {};
  24. #foreach {n;w;e;s;u;d;ne;nw;se;sw;enter;out} {short} {
  25. #local long {@dir.Long{$short}};
  26. #line sub var #alias {$short} {ui.walk.go $long};
  27. #line sub var #alias {$long} {ui.walk.go $long};
  28. };
  29. #class ui.walk.ganche.mode close;
  30. okLog 运镖模式已开启。;
  31. prompt.Set {{ganche}{@mslp.Exec{option.Toggle GancheMode;<129>已开启<299>}(点击关闭)}};
  32. #var ui.walk.cmd {gan che to};
  33. };
  34. };
  35. event.HandleOnce {user-online} {ui/walk/ganche} {pkuxkx/online} {
  36. event.Handle {option/changed} {opt/GancheMode/pkuxkx} {lib/ui/walk/pkuxkx} {ui.walk.Ganche.Setup};
  37. event.Handle {option/changed} {opt/KeypadWalk/pkuxkx} {lib/ui/walk/pkuxkx} {ui.walk.Ganche.Setup};
  38. event.Handle {option/changed} {opt/ScreenKeypad/pkuxkx} {lib/ui/walk/pkuxkx} {ui.walk.Ganche.Setup};
  39. ui.walk.Ganche.Setup;
  40. };