tf-scripts/nightal/stats.tf

74 lines
1.9 KiB
Terraform
Raw Normal View History

2014-11-18 13:56:47 +01:00
; postepy
2018-06-18 02:31:13 +02:00
/set _postepy_max=19
2014-11-18 13:56:47 +01:00
/set _postepy_list=\
2018-07-06 01:00:02 +02:00
start/restart|\
2014-11-18 13:56:47 +01:00
znikome|\
minimalne|\
mizerne|\
nieznaczne|\
niewielkie|\
bardzo male|\
male|\
nieduze|\
znaczne|\
istotne|\
owocne|\
duze|\
pokazne|\
bardzo duze|\
trwale|\
wspaniale|\
wielkie|\
ogromne|\
kolosalne|\
nieopisane
2018-06-06 17:53:29 +02:00
2018-07-05 16:50:47 +02:00
/def postepy = \
/if ({1} =~ "reset") \
2018-07-06 01:00:02 +02:00
/set _postepy_czas_0=$[ftime("%H:%M", time())]%;\
/set _postepy_own_0=%ownkills%;\
/set _postepy_all_0=%allkills%;\
2018-07-05 16:50:47 +02:00
/test ++_postepy_reset_counter%;\
/set _postepy_current=0%;\
/send postepy reset%;\
/else \
/let __index=0%; \
/echo +---------------+-------------------+%;\
/echo $[strcat("| ", pad("cykl", -14), "|", pad({_postepy_reset_counter}, 18), " |")]%;\
/echo +---------------+-------+-----+-----+%; \
/while ({__index}<={_postepy_current}) \
/let __postep=$[_get_element({__index}, {_postepy_list})]%;\
/let __czas=$(/listvar -v _postepy_czas_$[strcat({__index})])%;\
/let __own=$(/listvar -v _postepy_own_$[strcat({__index})])%;\
/let __all=$(/listvar -v _postepy_all_$[strcat({__index})])%;\
/if ({__czas} =~ "" )\
/let __czas=?:?%;\
/endif%;\
/if ({__own} =~ "" )\
/let __own=?%;\
/endif%;\
/if ({__all} =~ "" )\
/let __all=?%;\
/endif%;\
/echo $[strcat("| ", pad({__postep},-14), "| ", pad({__czas},5), " |", pad({__own},4), " |", pad({__all},4), " |")]%;\
/let __index=$[{__index}+1]%; \
/done%; \
/if ({_postepy_current}==-1) \
/echo -p @{n}| | |%; \
/endif%; \
/echo +---------------+-------+-----+-----+%;\
/endif
2018-07-23 21:35:15 +02:00
/def -Fp2 -mregexp -t'[Zz]abil.* ' poka_exp = /send postepy
2018-06-08 01:16:24 +02:00
2018-06-06 17:53:29 +02:00
/def exp = \
/send usiadz %;\
/send medytuj %;\
/send ocen sile %;\
/send ocen zrecznosc %;\
/send ocen wytrzymalosc %;\
/send ocen inteligencje %;\
/send ocen madrosc %;\
/send ocen odwage %;\
/send powstan