tf-scripts/common/start.tf

90 lines
2.0 KiB
HCL

/def -ag -h'Redef' hide_redef
/def -ag -h'Load' hide_load
/def -ag -h'Log' hide_log
/def key_tab = /complete
/def -Fp2 -mregexp -t"^(> )+" _unprompty = /substitute %{PR}
/def log_on = \
/eval /log -w%{mudworld} %{logpath}/%{mudworld}/%{player}_$[ftime("%Y-%m-%d", time())].log
/def -mglob -Fp2 -t'* z hosta:*' _logged = \
/repeat -5 1 /start %;\
/repeat -6 1 /set ingame=1
/sub on
/def c = /for i 1 100 /_echo
/def fk = /test $[fake_recv({*})]
/require tick.tf
/require textutil.tf
/require alias.tf
/set alias new
/load util.tf
/load binds.tf
/load colorscheme.tf
/load combat.tf
/load equipment.tf
/load hunt.tf
/load lists.tf
/load mail.tf
/load map.tf
/load movement.tf
/load odmiana.tf
/load people.tf
/load stats.tf
/load substitute.tf
/load team.tf
/load testuj.tf
/load warn.tf
/def reload = \
/purge %;\
/purge -i alias_body_* %;\
/purge -i alias_call_* %;\
/def -ag -h'Load' hide_load %;\
/eval /cd %{main_dir}/common %;\
/load start.tf %;\
/eval /cd %{main_dir}/%{mudworld} %;\
/load start.tf %;\
/load %{priv_dir}/%{mudworld}/aliases.tf %;\
/load %{priv_dir}/%{mudworld}/exceptions.tf %;\
/load %{priv_dir}/%{mudworld}/herbs.tf %;\
/load %{priv_dir}/%{mudworld}/names.tf %;\
/load %{priv_dir}/%{mudworld}/players/%{player}/%{player}.tf %;\
/if ({poczta_show} !~ "none" )\
/status_edit -r1 poczta_show:4:C%{c_alarm} %;\
/endif %;\
/if ({bindings} !~ NULL ) \
/def -b'`' tempbind = /dobind %{bindings} %;\
/if ({ktype} =~ "mac" ) \
/def key_nkp- = /dobind %{*} %;\
/endif %;\
/endif %;\
/sneak %sneak %;\
/if ({hide} =~ "on" )\
/status_edit -r1 hideshow:3:C%c_alarm%;\
/else \
/status_edit -r1 hideshow:3:C%c_main%;\
/endif%;\
/if ({weaponstat} =~ "ON" )\
/weapon_on%;\
/elseif ( {weaponstat} =~ "ERR" )\
/weapon_break%;\
/endif%;\
/f1 %f1 %;\
/f2 %f2 %;\
/f3 %f3 %;\
/f4 %f4 %;\
/f5 %f5 %;\
/f6 %f6 %;\
/f7 %f7 %;\
/f8 %f8 %;\
/am %attackmode %;\
/if ( {ingame} =~ "1" )\
/druzyna -q %;\
/endif%;\
/echo Reloaded.