;; CASH IN BOOTH-trig-thingie ;; ;; Usage: ;; go check your booth ;; after that, type 'bgp' /set booth_ogp 0 /set booth_ngp 0 /set booth_gpdiff 0 /set booth_totaldiff 0 /def -mregexp -ag -t"^\| Balance : (.*) \|" booth_test = \ /set booth_ngp %P1%;\ /if (booth_ngp!=booth_ogp) \ /set booth_gpdiff $[booth_ngp-booth_ogp]%;\ /set booth_totaldiff $[booth_totaldiff+booth_gpdiff]%;\ /echo -p %* @{BCyellow} diff: %{booth_gpdiff}@{n}%;\ /set booth_ogp %{booth_ngp}%;\ /else /echo %*%;\ /endif /def -mregexp -ag -t"^You deposit (.*) gold to your booth." booth_add = \ /set booth_gpdiff %P1%;\ /set booth_totaldiff $[booth_totaldiff+booth_gpdiff]%;\ /set booth_ogp $[booth_ogp+booth_gpdiff]%;\ /bgp /def -mregexp -ag -t"^You withdraw (.*) gold from your booth." booth_rem = \ /set booth_gpdiff $[-%P1]%;\ /set booth_totaldiff $[booth_totaldiff+booth_gpdiff]%;\ /set booth_ogp $[booth_ogp+booth_gpdiff]%;\ /bgp /def -F -i -h'send bgp' send_bgp = /bgp /def bgp = /echo Gold in booth: %{booth_ogp}, Last diff: %{booth_gpdiff}, Total gained: %{booth_totaldiff} /def -F -t'Game driver shouts: ZombieMUD shutting down immediately.' zombiemut_reboot1 = /set booth_totaldiff 0