Nowy uklad paska statusu.

This commit is contained in:
Bartek Stalewski 2014-12-23 14:35:54 +01:00
parent 1ae36a762c
commit 748fd9cac3
11 changed files with 64 additions and 60 deletions

View file

@ -13,14 +13,14 @@
/elseif ({*} =~ 'clear') \
/unset ogolne_poczta %;\
/set poczta_show=none%;\
/status_edit -r1 poczta_show:5:C%c_main %;\
/status_edit -r1 poczta_show:4:C%c_main %;\
/endif
/def -mregexp -Fp2 -t'^Czeka na ciebie (.*) poczta' _poczta_0 = \
/set ogolne_poczta=$[strcat(ftime("%H:%M",time()),"Kogos lub Czegos (", {P1}, ")|")] %;\
/beep 1 %;\
/set poczta_show=NEW%;\
/status_edit -r1 poczta_show:5:C%c_alarm
/status_edit -r1 poczta_show:4:C%c_alarm
/def -mregexp -Fp2 -t'^Masz nowa poczte od (.*).' _poczta_1 = \
/set ogolne_poczta=$[strcat({ogolne_poczta},ftime("%H:%M",time()),{P1},"|")] %;\
@ -38,7 +38,7 @@
/else \
/set poczta_show=NEW%;\
/endif %;\
/status_edit -r1 poczta_show:5:C%c_alarm
/status_edit -r1 poczta_show:4:C%c_alarm
/def -mregexp -Fp2 -t'^Masz nowy list.*od ([^ ]*), zatytulowany \'(.*)(\'|[^.]$)' _poczta_2 = \
/set ogolne_poczta=$[strcat({ogolne_poczta},ftime("%H:%M",time()),{P1}," zatytulowany '",{P2},"'|")] %;\
@ -56,4 +56,4 @@
/else \
/set poczta_show=NEW%;\
/endif %;\
/status_edit -r1 poczta_show:5:C%c_alarm
/status_edit -r1 poczta_show:4:C%c_alarm

View file

@ -1,11 +1,11 @@
/def _walk_binds = \
/def key_nkp/ = /sneak off %;\
/def key_nkp* = /sneak ON %;\
/def key_nkp- = /sneak TEAM %;\
/def key_nkp* = /sneak ON! %;\
/def key_nkp- = /sneak GRP %;\
/if ( {ktype} =~ "mac" ) \
/def key_f13 = /sneak off %;\
/def key_f14 = /sneak ON %;\
/def key_f15 = /sneak TEAM %;\
/def key_f14 = /sneak ON! %;\
/def key_f15 = /sneak GRP %;\
/endif
/_walk_binds
@ -60,10 +60,10 @@
/if ( {sneak} =~ "off" )\
/send -h %{1} %;\
/hide off %;\
/elseif ( {sneak} =~ "ON" )\
/elseif ( {sneak} =~ "ON!" )\
/send -h przemknij %{1} %;\
/hide on %;\
/elseif ( {sneak} =~ "TEAM" )\
/elseif ( {sneak} =~ "GRP" )\
/send -h przemknij z druzyna %{1} %;\
/hide on %;\
/endif %;\
@ -127,9 +127,9 @@
/echo -p #@{C%c_info}#@{n}# Dziwne wyjscie - @{C%c_info}%{*}@{n}.
/def dounnormal = \
/if ( {sneak} =~ "ON" ) \
/if ( {sneak} =~ "ON!" ) \
/send -h przemknij %{*} %;\
/elseif ( {sneak} =~ "TEAM" ) \
/elseif ( {sneak} =~ "GRP" ) \
/send -h przemknij z druzyna %{*} %;\
/else \
/send -h %{*} %;\
@ -209,19 +209,19 @@
/def sneak = \
/if ( {1} =~ "off" ) \
/set sneak %{1} %;\
/status_edit -r2 sneak:4:C%{c_main} %;\
/elseif ( {1} =~ "ON" ) \
/status_edit -r2 sneak:3:C%{c_main} %;\
/elseif ( {1} =~ "ON!" ) \
/set sneak %{1} %;\
/status_edit -r2 sneak:4:C%{c_alarm} %;\
/elseif ( {1} =~ "TEAM" ) \
/status_edit -r2 sneak:3:C%{c_alarm} %;\
/elseif ( {1} =~ "GRP" ) \
/set sneak %{1} %;\
/status_edit -r2 sneak:4:C%{c_alarm} %;\
/status_edit -r2 sneak:3:C%{c_alarm} %;\
/endif
/def hideup = \
/if ({hideshow} < "15" )\
/test ++hideshow%;\
/status_edit -r1 hideshow:4:C%c_alarm%;\
/status_edit -r1 hideshow:3:C%c_alarm%;\
/repeat -1 1 /hideup %;\
/endif
@ -229,12 +229,12 @@
/if ( {1} =~ "off" ) \
/set hide %{1} %;\
/set hideshow %{1} %;\
/status_edit -r1 hideshow:4:C%{c_main} %;\
/status_edit -r1 hideshow:3:C%{c_main} %;\
/rstop hideup %;\
/elseif ( {1} =~ "on" ) \
/set hide %{1} %;\
/set hideshow 0%;\
/status_edit -r1 hideshow:4:C%{c_alarm} %;\
/status_edit -r1 hideshow:3:C%{c_alarm} %;\
/rstop hideup %;\
/repeat -1 1 /hideup %;\
/endif
@ -250,4 +250,4 @@
/def -mregexp -Fp2 -t'Jest tu zbyt ciezko sie schowac' hideoff5 = /hide off
/def -mregexp -Fp2 -t'podazasz za ' hideoff6 = /hide off
/def -mregexp -Fp2 -t'Nie jestes w stanie wymknac' sneakoff0 = /sneak off
/def -mregexp -Fp2 -t'Nie jestes dowodca zadnej druzyny.' sneakoff1 = /sneak ON
/def -mregexp -Fp2 -t'Nie jestes dowodca zadnej druzyny.' sneakoff1 = /sneak off

View file

@ -17,8 +17,8 @@
/set allkills=0
/set poczta_show=none
/set weaponstat=off
/eval /set alarm=$[decode_attr("none", {zc_main})]
/eval /set alarm=$[decode_attr("---", {zc_main})]
/eval /set nxt_zaslona=$[decode_attr("rdy", {zc_main})]
/eval /set nxt_order=$[decode_attr("rdy", {zc_main})]
/eval /set kondycja=$[strcat("[ ] ")]

View file

@ -55,7 +55,7 @@
/load %{priv_dir}/%{mudworld}/names.tf %;\
/load %{priv_dir}/%{mudworld}/players/%{player}/%{player}.tf %;\
/if ({poczta_show} !~ "none" )\
/status_edit -r1 poczta_show:5:C%{c_alarm} %;\
/status_edit -r1 poczta_show:4:C%{c_alarm} %;\
/endif %;\
/if ({bindings} !~ NULL ) \
/def -b'`' tempbind = /dobind %{bindings} %;\
@ -65,11 +65,11 @@
/endif %;\
/sneak %sneak %;\
/if ({hide} =~ "on" )\
/status_edit -r1 hideshow:4:C%c_alarm%;\
/status_edit -r1 hideshow:3:C%c_alarm%;\
/else \
/status_edit -r1 hideshow:4:C%c_main%;\
/status_edit -r1 hideshow:3:C%c_main%;\
/endif%;\
/if ({weaponstat} =~ "ON" )\
/if ({weaponstat} =~ "ON!" )\
/weapon_on%;\
/elseif ( {weaponstat} =~ "ERR" )\
/weapon_break%;\