From 062933c8315e1788d7ad05f3a0fed6284d1a7731 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Tue, 31 Jan 2017 03:07:13 +0100 Subject: [PATCH] Unification of stun/block messages. --- scripts.xml | 1 + triggers.xml | 45 +++++++++++++++++++++++++++++++++------------ 2 files changed, 34 insertions(+), 12 deletions(-) diff --git a/scripts.xml b/scripts.xml index eaf2a06..67410db 100644 --- a/scripts.xml +++ b/scripts.xml @@ -24,6 +24,7 @@ tempTimer(1, function () disableAlias("wez_monety_z") end) tempTimer(1, function () disableAlias("wloz_monety_do") end) tempTimer(1, function () disableTrigger("przelamanie") end) tempTimer(1, function () disableTrigger("blokowanie_proba_kogos") end) +tempTimer(1, function () disableTrigger("blokowanie_proba_ciebie") end) tempTimer(1, function () disableTrigger("blokuje_cie") end) tempTimer(1, function () disableTrigger("walczysz_bez_broni") end) tempTimer(1, function () disableTrigger("wytracenie_tobie") end) diff --git a/triggers.xml b/triggers.xml index 9a66523..7e9a8ab 100644 --- a/triggers.xml +++ b/triggers.xml @@ -1082,14 +1082,38 @@ resetFormat() #000000 + + ftpd-blokowanie_proba_ciebie + + 0 + 0 + 0 + + + #ff0000 + #ffff00 + + #000000 + #000000 + + (^[ >]*([a-zA-Z (),!]+) przymierza sie do odciecia ci drogi ucieczki\.$) + + + 1 + + ftpd-blokowanie_proba_kogos tempTimer(0.6, [[ raiseEvent("playBeep") ]]) tempTimer(0.9, [[ raiseEvent("playBeep") ]]) tempTimer(1.2, [[ raiseEvent("playBeep") ]]) - selectCurrentLine() - local str_replace = "[ BLOK ] " - fg("red") - prefix(str_replace) - selectString(matches[2], 1) + deleteLine() + cecho("<red>\n[ BLOK ]\n[ BLOK ] ") bg("red") fg("white") + echo(matches[2]) + cecho("<red>\n[ BLOK ]\n") resetFormat() else - raiseEvent("playBeep") - tempTimer(0.3, [[ raiseEvent("playBeep") ]]) selectCurrentLine() local str_replace = "[ BLOK ] " fg("coral") @@ -1192,7 +1213,7 @@ resetFormat() 0 @@ -1221,7 +1242,7 @@ tempTimer(0.3, [[ raiseEvent("playBeep") ]]) tempTimer(0.6, [[ raiseEvent("playBeep") ]]) selectCurrentLine() deleteLine() -cecho("<red>\n\n[ STUN ] " .. matches[1] .. "\n\n") +cecho("<red>\n[ STUN ]\n[ STUN ] " .. matches[1] .. "\n[ STUN ]\n") scripts.ui:info_action_update("OGLUSZENIE") resetFormat() @@ -1257,7 +1278,7 @@ resetFormat() 0