;;;; This file is not required, but contains examples of commands you
;;;; might want to use in your personal configuration file (~/.tfrc).
;;;; Feel free to customize these commands to your own tastes, or ignore them.

;;; Turn on windowing mode.
;/visual on

;;; Turn on paging
;/more on

;;; Turn on introductory MUD text suppression.
;/quiet on

;;; Disable old-style slash interpretation
;;; I recommend this unless you have old macros containing multiple slashes.
; /set oldslash=0

;;; Load files.
;;; Only useful if you have these files, of course.
;/loadworld .mudworlds
; /loadhilite
; /loadgag
; /loaddef
; /loadbind
; /loadtrig
;;Hejsan.. l{gg detta i din .tfrc fil.. sedan kan du testa lite.

/def -p99999 -F -mglob -t"*<http*>*" http_filter = \
    /let line=%*%;\
    /test regmatch("^(.*)<http(.*)>(.*)$$", line)%;\
    /substitute %{P1}%{P3}%;\
    /quote -0 /echo !http %{P2}

/addlp mid galadriel summer1969 midnight-sun.ludd.luth.se 3000
/addlp inf lloriel galadriel infinity.ccs.neu.edu 3000
/set maildelay=1
/load worldqueue.tf

/def -ah -t"* died." = get all from corpse
/def -ah -t"you killed. *" = get all from corpse%;l
/def -t"*If you remain idle, you will be forced to quit in 5 minutes." = g Picasso is away from the keyboard (and will come back soon)%;jump%;rest%;l
/def -p2 -ah -t"* tells you: *" 
/def -p2 -ah -t"* whispers to you: *"
/def -p2 -ah -t"* says \[to you]: *"
/def -p2 -ah -t'Your legs ran away *'
/def -ag -t"* orders *"
/def -ag -t"* drinks *"
/def -ag -t"* empty bottle *"
/def -ah -t"* coins *"
/def -ah -t"* gives * to you*"
/def -p15 -ah -t"*{Mephisto|Emrald|Bucky}*"
/def -p14 -ah -t"*{Alexandria|Mhyrra}*"

;;-------------- KEYBINDS -----------------------------------------------------
/bind ^s = score
/bind ^x = hp
/def mon = /unbind ^q%;/bind ^q = exa %1

;;-------------- ROUTEMACROS --------------------------------------------------

;;Nu'hante
/def thate = w%;s%;/w 3%;nw%;/w 4%;/s 3%;/w 3%;s%;/w 5%;sw%;s%;s%;w%;s%;s
/def fhate = n%;n%;e%;n%;n%;ne%;/e 5%;n%;/e 3%;/n 3%;/e 4%;se%;/e 3%;n%;e

;;High rock castle
/def thrc = w%;s%;/w 3%;nw%;w%;w%;/n 3%;/e 8%;/n 3%;ne%;nw%;sw%;se%;n%;n
/def fhrc = s%;s%;nw%;ne%;se%;sw%;/s 3%;/w 8%;/s 3%;e%;e%;se%;/e 3%;n%;e

;;Yakuza
/def fyak = w%;w%;n%;n%;w%;w%;n%;n%;/w 3%;/s 4%;w
/def tyak = e%;/n 4%;/e 3%;s%;s%;e%;e%;s%;s%;e%;e

;;Bodyguard
/def tbod = w%;s%;e%;e%;/n 3%;w%;n%;n
/def fbod = s%;s%;e%;/s 3%;w%;w%;n%;e

;;Junper castle
/def tdiam = w%;w%;w%;w%;nw%;w%;w%;w%;w%;s%;s%;w%;w%;s%;w%;s%;se%;e%;/s 5%;u%;/s 2
/def fdiam = /n 2%;d%;/n 5%;w%;nw%;n%;e%;n%;e%;e%;n%;n%;e%;e%;e%;e%;se%;e%;e%;e%;e

;;Blood-sea
/def tbsea = /w 4%;nw%;w%;/s 4%;e%;e%;/s 4%;w%;w%;/s 26	
/def fbsea = /n 26%;e%;e%;/n 4%;w%;w%;/n 4%;e%;se%;/e 4

;;Barad-Zhur
/def fbarad = /s 3%;/w 4%;/s 4%;e%;e%;se%;/e 4
/def tbarad = /w 4%;nw%;w%;w%;/n 4%;/e 4%;/n 3

;;Blue Lightning
/def flight = dive%;s%;s%;s%;sw%;s%;w%;w%;w
/def tlight = e%;e%;e%;n%;ne%;n%;n%;n%;dive

;;Omere
/def fomere = s%;e%;e%;/s 4%;e%;e%;se%;e%;e%;e%;e
/def tomere = w%;w%;w%;w%;nw%;w%;w%;/n 4%;w%;w%;n

;;Enhanced forest
/def tforest = w%;s%;w%;w%;w%;nw%;w%;w%;n%;n%;n%;e%;e%;e%;e%;e%;e%;e%;s
/def fforest = n%;w%;w%;w%;w%;w%;w%;s%;w%;s%;s%;e%;e%;se%;e%;e%;e%;n%;e

;;slayers
/def tslay = w%;s%;w%;w%;w%;nw%;w%;w%;n%;n%;n%;n%;n%;n%;n%;n%;n%;n%;n%;n%;n%;n%;n%;d%;n%;n%;n%;e%;e%;n%;n%;n%;n%;e%;e
/def fslay = w%;w%;s%;s%;s%;s%;w%;w%;w%;w%;w%;n%;n%;n%;say picasso%;n%;n%;w%;w%;s%;enter portal

;;demontower
/def ttower = w%;s%;w%;w%;w%;nw%;w%;w%;n%;n%;n%;n%;n%;w%;w%;w%;nw%;ne%;nw%;nw%;n%;n%;n%;n
/def ftower = s%;s%;s%;s%;se%;se%;sw%;se%;e%;e%;e%;s%;s%;s%;s%;s%;e%;e%;se%;e%;e%;e%;n%;e

;;Syndril
/def tsyndril = w%;s%;w%;w%;w%;nw%;w%;w%;/n 15%;d%;n%;n%;n%;w%;w%;w%;n%;n%;n%;say picasso%;n%;n

;; solistice
/def tsolis = w%;s%;/w 3%;nw%;w%;w%;n%;n%;n%;n%;n%;w%;w%;w%;ne%;/n 8
/def fsolis = /s 8%;sw%;e%;e%;e%;s%;s%;s%;s%;s%;e%;e%;se%;/e 3%;n%;e

;;------------------ SMALL USEFUL MACROS --------------------------------------
/def f = exa %1%;search %1
/def wq = who quick
/def wf = who full
/def su = w%;s%;e%;n%;sell all bottles%;s%;w%;n%;e
/def off = /bg amulet%;/bg ring
/def on = /fg amulet%;/tg ring%;wear ring%;wear amulet

/def ti = buy special%;drink special%;buy coffee%;drink coffee%;/su
/def of = order firebreather%;drink firebreather%;hp%;/su
/def oc = order coffee%;drink coffee%;/su
/def os = order special%;drink special%;hp%;/su

/def s = /for i 1 %{1} s
/def n = /for i 1 %{1} n
/def e = /for i 1 %{1} e
/def w = /for i 1 %{1} w
/def u = /for i 1 %{1} u
/def d = /for i 1 %{1} d

/def lady = bow %1%;handkiss %1

/def bg = put %1 in bag
/def tg = take %1 from bag
/def br = put %1 in robes
/def fr = take %1 from robes

/def sg = take %1 from bag%;sell %1
/def cu = /for i 1 5 cu
/def ks = kiss sheiva%;smile sheiva
/def fs =french sheiva%;smile sheiva
/def pk = say Munk kill %1
/def sp = say %1 protect me
/def gp = give %1 to Munk
/def sa = say %1 sell all
/def pk1 = say Renoir kill %1
/def ec = say %1 eat corpse




