2012-05-07 18:54:48 +02:00
|
|
|
/def _sub = \
|
2013-10-22 14:12:43 +02:00
|
|
|
/return substitute(strcat(decode_attr(strcat({PL}, {P0}, {PR}, " [", {1}, "] "))))
|
2012-05-07 18:54:48 +02:00
|
|
|
|
|
|
|
/def _sub_inside = \
|
2013-10-22 14:12:43 +02:00
|
|
|
/return substitute(strcat({PL}, {P0}, " ", {*}, {PR})) %;\
|
|
|
|
|
|
|
|
/def typo =\
|
|
|
|
/let n=$[strchr({*}, '|')]%;\
|
|
|
|
/test param1 := substr({*}, 0, n) %;\
|
|
|
|
/test param2 := substr({*}, n+1) %;\
|
|
|
|
/echo -p #@{C%c_info}#@{n}# Zdefiniowana podmiana: @{C%c_info}%{param1}@{n} => @{C%c_info}%{param2}@{n} %;\
|
|
|
|
/def -mregexp -h'SEND %{param1}'\
|
|
|
|
typo_%{1} = /send $$[strcat ({PL}, '%{param2}', replace('%{param1}', '%{param2}', {PR}))]
|
2012-05-07 18:54:48 +02:00
|
|
|
|
|
|
|
/def -mregexp -Fp2 -t'(przybywaja|podazaja) (z(e|)|na) [wzpgd]' _liczenie_teamow = \
|
2013-10-24 18:16:36 +02:00
|
|
|
/unset _il_wr%;\
|
|
|
|
/let _ile=%{PL} %;\
|
|
|
|
/let _ile=$[replace("##", " ", replace(" ", "_",replace(", ", "##", replace(" i ", "##", {_ile}))))]%;\
|
|
|
|
/podlicz_team %{_ile}%;\
|
2013-10-23 00:15:37 +02:00
|
|
|
/return substitute(strcat("[", decode_attr({_il_wr}, {zc_bold}), "] ", {PL}, {P0}, {PR}))%;\
|
2013-10-22 14:12:43 +02:00
|
|
|
/unset _il_wr
|
2012-05-07 18:54:48 +02:00
|
|
|
|
|
|
|
/def podlicz_team = \
|
2013-10-22 14:12:43 +02:00
|
|
|
/while ({#}) \
|
|
|
|
/test ++_il_wr%; \
|
|
|
|
/shift%; \
|
|
|
|
/done
|
2013-11-05 14:17:09 +01:00
|
|
|
|
|
|
|
/def -mregexp -Fp2 -t' (polegl(a|o|)|umarl(a|o|))\\.' _zgon = \
|
|
|
|
/echo -p @{C%c_alarm}>>>>>>****** ZGON ******<<<<<<@{n}
|