changeset 660:954e98383729

Added macro '/np' to use 'npray' for each party member.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 30 Aug 2007 01:35:14 +0000
parents 661374cd973f
children 7f512cf36a1a
files ggrtf-nun.tf
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ggrtf-nun.tf	Thu Aug 09 09:09:41 2007 +0000
+++ b/ggrtf-nun.tf	Thu Aug 30 01:35:14 2007 +0000
@@ -211,3 +211,20 @@
 /def -i -p9999 -mregexp -t"^\* You have FAILED task '([A-Za-z' ]+)' \*" gnun_task_failed =\
 	/msq @{BCgreen}Failed nun task@{n} '@{Ccyan}%{nun_task_n}@{n}'. Time spent: @{Cyellow}$[prgetstime(nun_task_t)]@{n}%;\
 	/set nun_task_n=%;/set nun_task_t=0%;/set nun_task_c=0
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;; /np command to @@npray each partymember
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+/def -i gnun_npray =\
+	/eval /set _npname=$$[gparty_%{1}_%{2}_s]%;\
+	/if (_npname!~"" & _npname!~set_plrname)\
+		/send @@npray %{_npname}%;\
+	/endif
+
+/def -i -P1BCgreen;2Cgreen -mregexp -t"^You make a quick prayer for ([A-Z][a-z]+), (who is a good example to others)\.$" gnun_pray_good
+/def -i -P1BCred;2Cred -mregexp -t"^You make a quick prayer for ([A-Z][a-z]+)'s soul, (but it's a lost cause)\.$" gnun_pray_evil
+
+/def -i np =\
+	/for _ccol 1 3 \
+		/for _crow 1 3 \
+			/test gnun_npray(_crow,_ccol)