Unification of stun/block messages.

This commit is contained in:
Bartek Stalewski 2017-01-31 03:07:13 +01:00
parent b083cd80f7
commit 062933c831
2 changed files with 34 additions and 12 deletions

View File

@ -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)

View File

@ -1082,14 +1082,38 @@ resetFormat()</script>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList/>
<regexCodePropertyList/>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>ftpd-blokowanie_proba_ciebie</name>
<script>raiseEvent(&quot;playBeep&quot;)
tempTimer(0.3, [[ raiseEvent(&quot;playBeep&quot;) ]])
tempTimer(0.6, [[ raiseEvent(&quot;playBeep&quot;) ]])
selectCurrentLine()
deleteLine()
cecho(&quot;&lt;red&gt;\n[ BLOK ]\n[ BLOK ] &quot; .. matches[3] .. &quot; przymierza sie do odciecia ci drogi ucieczki.\n[ BLOK ]\n&quot;)
resetFormat()</script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>(^[ &gt;]*([a-zA-Z (),!]+) przymierza sie do odciecia ci drogi ucieczki\.$)</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
</regexCodePropertyList>
</Trigger>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>ftpd-blokowanie_proba_kogos</name>
<script>if matches[4] == &quot;ci&quot; then
return
end
raiseEvent(&quot;playBeep&quot;)
tempTimer(0.3, [[ raiseEvent(&quot;playBeep&quot;) ]])
selectCurrentLine()
deleteLine()
cecho(&quot;&lt;coral&gt;\n\n[ BLOK ] &quot; .. matches[2])
@ -1119,17 +1143,14 @@ resetFormat()</script>
tempTimer(0.6, [[ raiseEvent(&quot;playBeep&quot;) ]])
tempTimer(0.9, [[ raiseEvent(&quot;playBeep&quot;) ]])
tempTimer(1.2, [[ raiseEvent(&quot;playBeep&quot;) ]])
selectCurrentLine()
local str_replace = &quot;[ BLOK ] &quot;
fg(&quot;red&quot;)
prefix(str_replace)
selectString(matches[2], 1)
deleteLine()
cecho(&quot;&lt;red&gt;\n[ BLOK ]\n[ BLOK ] &quot;)
bg(&quot;red&quot;)
fg(&quot;white&quot;)
echo(matches[2])
cecho(&quot;&lt;red&gt;\n[ BLOK ]\n&quot;)
resetFormat()
else
raiseEvent(&quot;playBeep&quot;)
tempTimer(0.3, [[ raiseEvent(&quot;playBeep&quot;) ]])
selectCurrentLine()
local str_replace = &quot;[ BLOK ] &quot;
fg(&quot;coral&quot;)
@ -1192,7 +1213,7 @@ resetFormat()</script>
<script>raiseEvent(&quot;playBeep&quot;)
selectCurrentLine()
deleteLine()
cecho(&quot;\n\n&lt;red&gt;[ BRON ] &quot; .. matches[2] .. &quot;\n\n&quot;)
cecho(&quot;&lt;red&gt;\n[ BRON ]\n[ BRON ] &quot; .. matches[2] .. &quot;\n[ BRON ]\n&quot;)
resetFormat()
scripts.ui:info_action_update(&quot;WYTRACENIE&quot;)</script>
<triggerType>0</triggerType>
@ -1221,7 +1242,7 @@ tempTimer(0.3, [[ raiseEvent(&quot;playBeep&quot;) ]])
tempTimer(0.6, [[ raiseEvent(&quot;playBeep&quot;) ]])
selectCurrentLine()
deleteLine()
cecho(&quot;&lt;red&gt;\n\n[ STUN ] &quot; .. matches[1] .. &quot;\n\n&quot;)
cecho(&quot;&lt;red&gt;\n[ STUN ]\n[ STUN ] &quot; .. matches[1] .. &quot;\n[ STUN ]\n&quot;)
scripts.ui:info_action_update(&quot;OGLUSZENIE&quot;)
resetFormat()
</script>
@ -1257,7 +1278,7 @@ resetFormat()
<script>raiseEvent(&quot;playBeep&quot;)
selectCurrentLine()
deleteLine()
cecho(&quot;&lt;LawnGreen&gt;\n\n[ STUN ] &quot; .. matches[1] .. &quot;\n\n&quot;)
cecho(&quot;&lt;green&gt;\n[ STUN ]\n[ STUN ] &lt;cornsilk&gt;&quot; .. matches[1] .. &quot;&lt;green&gt;\n[ STUN ]\n&quot;)
resetFormat()
scripts.ui:info_action_update(&quot;&quot;)</script>
<triggerType>0</triggerType>