Odliczanie ukrywania.

This commit is contained in:
Bartek Stalewski 2014-08-19 21:19:05 +02:00
parent 02885c4a7e
commit 5b8018e121
5 changed files with 65 additions and 26 deletions

View File

@ -248,7 +248,7 @@
/eval /status_add -r1 "K: ":: kondycja:23 /eval /status_add -r1 "K: ":: kondycja:23
/eval /status_add -r1 "Z: ":: zmeczenie:20 /eval /status_add -r1 "Z: ":: zmeczenie:20
/eval /status_add -r1 "M: ":: mana:20 /eval /status_add -r1 "M: ":: mana:20
/eval /status_add -r1 "Hidden: ":: hide:4:C%c_main /eval /status_add -r1 "Hidden: ":: hideshow:4:C%c_main
/eval /status_add -r1 "Cover: ":: nxt_zaslona:3 /eval /status_add -r1 "Cover: ":: nxt_zaslona:3
/eval /status_add -r1 "Mail: ":: poczta_show:5:C%c_main /eval /status_add -r1 "Mail: ":: poczta_show:5:C%c_main
/eval /status_add -r1 spacebreak:: /eval /status_add -r1 spacebreak::

View File

@ -8,3 +8,17 @@
ocen madrosc %;\ ocen madrosc %;\
ocen odwage %;\ ocen odwage %;\
powstan powstan
/def -i pid_of = \
/quote -S \
/eval /let pid_czego=`"/@ps -r" %%;\
/if (strstr({pid_czego},{*}) != -1) \
/first %%{pid_czego} %%;\
/endif
/def rstart = \
/if ($(/pid_of %{-2})=~NULL) \
/repeat %{1} %{2} %{-2} %;\
/endif
/def rstop = \
/kill $(/pid_of %{*})

View File

@ -62,10 +62,10 @@
/hide off %;\ /hide off %;\
/elseif ( {sneak} =~ "ON" )\ /elseif ( {sneak} =~ "ON" )\
/send -h przemknij %{1} %;\ /send -h przemknij %{1} %;\
/hide ON %;\ /hide on %;\
/elseif ( {sneak} =~ "TEAM" )\ /elseif ( {sneak} =~ "TEAM" )\
/send -h przemknij z druzyna %{1} %;\ /send -h przemknij z druzyna %{1} %;\
/hide ON %;\ /hide on %;\
/endif %;\ /endif %;\
/def key_nkp5 /def key_nkp5
@ -77,10 +77,10 @@
/hide off %;\ /hide off %;\
/elseif ( {sneak} =~ "ON" )\ /elseif ( {sneak} =~ "ON" )\
/send przemknij %{1} %;\ /send przemknij %{1} %;\
/hide ON %;\ /hide on %;\
/elseif ( {sneak} =~ "TEAM" )\ /elseif ( {sneak} =~ "TEAM" )\
/send przemknij z druzyna %{1} %;\ /send przemknij z druzyna %{1} %;\
/hide ON %;\ /hide on %;\
/endif %;\ /endif %;\
/_map_go navigate:%{1}%;\ /_map_go navigate:%{1}%;\
/def key_nkp5 /def key_nkp5
@ -89,7 +89,7 @@
/set lwgo=1 %;\ /set lwgo=1 %;\
/set lwlast=%{1} %;\ /set lwlast=%{1} %;\
/send przemknij %{1} %;\ /send przemknij %{1} %;\
/hide ON %;\ /hide on %;\
/_map_go navigate:%{1}%;\ /_map_go navigate:%{1}%;\
/def key_nkp5 /def key_nkp5
@ -97,7 +97,7 @@
/set lwgo=1 %;\ /set lwgo=1 %;\
/set lwlast=%{1} %;\ /set lwlast=%{1} %;\
/send przemknij sie z druzyna %{1} %;\ /send przemknij sie z druzyna %{1} %;\
/hide ON %;\ /hide on %;\
/_map_go navigate:%{1}%;\ /_map_go navigate:%{1}%;\
/def key_nkp5 /def key_nkp5
@ -209,9 +209,7 @@
/def -mregexp -Fp2 -h'SEND ^przemknij sie z druzyna u$' = /idzkpt u /def -mregexp -Fp2 -h'SEND ^przemknij sie z druzyna u$' = /idzkpt u
/def sneak = \ /def sneak = \
/if ( {1} =~ NULL )\ /if ( {1} =~ "off" ) \
/echo -p #@{C%c_info}#@{n}# Przemykanie: @{C%c_info}%sneak@{n}%;\
/elseif ( {1} =~ "off" ) \
/set sneak %{1} %;\ /set sneak %{1} %;\
/status_edit -r2 sneak:4:C%{c_main} %;\ /status_edit -r2 sneak:4:C%{c_main} %;\
/elseif ( {1} =~ "ON" ) \ /elseif ( {1} =~ "ON" ) \
@ -222,20 +220,43 @@
/status_edit -r2 sneak:4:C%{c_alarm} %;\ /status_edit -r2 sneak:4:C%{c_alarm} %;\
/endif /endif
/def hidenum = \
/set hideshow %{1}%;\
/status_edit -r1 hideshow:4:C%c_alarm
/def hidecountstart = \
/rstart -1 1 /hidenum >>1%;\
/rstart -2 1 /hidenum >>2%;\
/rstart -3 1 /hidenum >>3%;\
/rstart -4 1 /hidenum >>4%;\
/rstart -5 1 /hidenum >>5%;\
/rstart -6 1 /hidenum >>6%;\
/rstart -7 1 /hidenum >>7%;\
/rstart -8 1 /hidenum >>8%;\
/rstart -9 1 /hidenum >>9%;\
/rstart -10 1 /hidenum >10%;\
/rstart -11 1 /hidenum >11%;\
/rstart -12 1 /hidenum >12%;\
/rstart -13 1 /hidenum >13%;\
/rstart -14 1 /hidenum >14%;\
/rstart -15 1 /hidenum >15%;\
/def hide = \ /def hide = \
/if ( {1} =~ NULL )\ /if ( {1} =~ "off" ) \
/echo -p #@{C%c_info}#@{n}# Ukrycie: @{C%c_info}%hide@{n}%;\
/elseif ( {1} =~ "off" ) \
/set hide %{1} %;\ /set hide %{1} %;\
/status_edit -r1 hide:4:C%{c_main} %;\ /set hideshow %{1} %;\
/elseif ( {1} =~ "ON" ) \ /status_edit -r1 hideshow:4:C%{c_main} %;\
/rstop hidenum %;\
/elseif ( {1} =~ "on" ) \
/set hide %{1} %;\ /set hide %{1} %;\
/status_edit -r1 hide:4:C%{c_alarm} %;\ /set hideshow 0%;\
/status_edit -r1 hideshow:4:C%{c_alarm} %;\
/rstop hidenum %;\
/hidecountstart %;\
/endif /endif
/def -mregexp -Fp2 -t'Chowasz sie .* potrafisz' hideon0 = /hide ON /def -mregexp -Fp2 -t'Chowasz sie .* potrafisz' hideon0 = /hide on
/def -mregexp -Fp2 -t'Nie potrafisz ukryc sie jeszcze bardziej' hideon1 = /hide ON /def -mregexp -Fp2 -t'Nie potrafisz ukryc sie jeszcze bardziej' hideon1 = /hide on
/def -E(hide=~"off") -mregexp -Fp2 -t'Podazasz skradajac sie za ' hideon2 = /hide ON /def -E(hide=~"off") -mregexp -Fp2 -t'Podazasz skradajac sie za ' hideon2 = /hide on
/def -mregexp -Fp2 -t'.* ujawnia cie.*' hideoff0 = /hide off /def -mregexp -Fp2 -t'.* ujawnia cie.*' hideoff0 = /hide off
/def -mregexp -Fp2 -t'Nie jestes juz schowan.' hideoff1 = /hide off /def -mregexp -Fp2 -t'Nie jestes juz schowan.' hideoff1 = /hide off
/def -mregexp -Fp2 -t'Nie jestes w stanie sie tu dobrze schowac' hideoff2 = /hide off /def -mregexp -Fp2 -t'Nie jestes w stanie sie tu dobrze schowac' hideoff2 = /hide off

View File

@ -9,7 +9,7 @@
/set attackmode=1 /set attackmode=1
/set sneak=off /set sneak=off
/set hide=off /set hideshow=off
/set auto=off /set auto=off
/set unnormal=none /set unnormal=none

View File

@ -54,20 +54,24 @@
/load %{priv_dir}/%{mudworld}/herbs.tf %;\ /load %{priv_dir}/%{mudworld}/herbs.tf %;\
/load %{priv_dir}/%{mudworld}/names.tf %;\ /load %{priv_dir}/%{mudworld}/names.tf %;\
/load %{priv_dir}/%{mudworld}/players/%{player}/%{player}.tf %;\ /load %{priv_dir}/%{mudworld}/players/%{player}/%{player}.tf %;\
/if ( {poczta_show} !~ "none" )\ /if ({poczta_show} !~ "none" )\
/status_edit -r1 poczta_show:5:C%{c_alarm} %;\ /status_edit -r1 poczta_show:5:C%{c_alarm} %;\
/endif %;\ /endif %;\
/if ( {bindings} !~ NULL ) \ /if ({bindings} !~ NULL ) \
/def -b'`' tempbind = /dobind %{bindings} %;\ /def -b'`' tempbind = /dobind %{bindings} %;\
/if ( {ktype} =~ "mac" ) \ /if ({ktype} =~ "mac" ) \
/def key_nkp- = /dobind %{*} %;\ /def key_nkp- = /dobind %{*} %;\
/endif %;\ /endif %;\
/endif %;\ /endif %;\
/sneak %sneak %;\ /sneak %sneak %;\
/hide %hide %;\ /if ({hide} =~ "on" )\
/if ( {weaponstat} =~ "ON" )\ /status_edit -r1 hideshow:4:C%c_alarm%;\
/else \
/status_edit -r1 hideshow:4:C%c_main%;\
/endif%;\
/if ({weaponstat} =~ "ON" )\
/weapon_on%;\ /weapon_on%;\
/elseif ( {weaponstat} =~ "!!!" )\ /elseif ( {weaponstat} =~ "ERR" )\
/weapon_break%;\ /weapon_break%;\
/endif%;\ /endif%;\
/f1 %f1 %;\ /f1 %f1 %;\