# HG changeset patch # User Matti Hamalainen # Date 1300815510 -7200 # Node ID 79fc9fd2626ae30e5b3d63b129eb86d440d3ec2d # Parent 82d30c2f10d04d6ecf18cf06c6a3753c480b3472 Add trigger for already submitted potion hits + cosmetics. diff -r 82d30c2f10d0 -r 79fc9fd2626a gm-alchemist.tf --- a/gm-alchemist.tf Mon Mar 21 17:05:52 2011 +0200 +++ b/gm-alchemist.tf Tue Mar 22 19:38:30 2011 +0200 @@ -202,33 +202,36 @@ /def -i galch_add_nomatch =\ /if (alch_close)\ - /msq Foo%;\ + /msq Ready for next mix.%;\ /else \ /if (galch_update("-"))\ /msq Added no match for %{alch_mineral}, %{alch_organ}, %{alch_herb} to database.%;\ /endif%;\ /endif -/def -i -F -aCgreen -mregexp -t"^You submit the contents of a flask containing " galch_submit_done =\ +/gdef -i -F -aCgreen -mregexp -t"^You submit the contents of a flask containing " galch_submit_done =\ @@drop empty flask%;\ /repeat -2 1 /galch_add_nomatch /gdef -i -F -aCgreen -msimple -t"You feel close..." galch_submit_close1 =\ /set alch_close=1 -/def -i -F -aCgreen -mregexp -Ealch_close -t"^\.\.\.could be ([a-z_ -]+)\." galch_submit_close2 =\ +/gdef -i -F -aCgreen -mregexp -Ealch_close -t"^\.\.\.could be ([a-z_ -]+)\." galch_submit_close2 =\ /let _match=$[replace(" ","_",{P1})]%;\ /if (galch_update(strcat("?", _match)))\ /msq Added near-match '%{_match}' (%{alch_mineral}, %{alch_organ}, %{alch_herb}) to database.%;\ /endif -/def -i -F -aCgreen -mregexp -t"^Flask '([a-z_ ]+)' accepted\." galch_submit_match =\ +/gdef -i -F -aCgreen -mregexp -t"^Flask '([a-z_ ]+)' accepted\." galch_submit_match =\ /set alch_close=1%;\ /let _match=$[replace(" ","_",{P1})]%;\ /if (galch_update(strcat("!", _match)))\ /msq Added MATCH '%{_match}' (%{alch_mineral}, %{alch_organ}, %{alch_herb}) to database.%;\ /endif +/gdef -i -F -aBCred -msimple -t"You've already researched that flask." galch_submit_already =\ + /set alch_close=1 + ;; Store organ into proper can /def -i galch_store_organ =\