changeset 1367:79fc9fd2626a

Add trigger for already submitted potion hits + cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 22 Mar 2011 19:38:30 +0200
parents 82d30c2f10d0
children 981685fe8dcc
files gm-alchemist.tf
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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 =\