-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
206 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE MudletPackage> | ||
<MudletPackage version="1.001"> | ||
<ScriptPackage> | ||
<ScriptGroup isActive="yes" isFolder="yes"> | ||
<name>magicDurationTimesScripts</name> | ||
<packageName></packageName> | ||
<script>------------------------------------------------- | ||
-- Put your Lua functions here. -- | ||
-- -- | ||
-- Note that you can also use external Scripts -- | ||
------------------------------------------------- | ||
</script> | ||
<eventHandlerList /> | ||
<Script isActive="yes" isFolder="no"> | ||
<name>magicDurationTimesScript</name> | ||
<packageName></packageName> | ||
<script>------------------------------------------------- | ||
-- Put your Lua functions here. -- | ||
-- -- | ||
-- Note that you can also use external Scripts -- | ||
------------------------------------------------- | ||
magicSpellsDescriptionsStarted = | ||
{ | ||
["bycza sila"] = | ||
"Karmazynowa aura ogarnia twoje cialo na krotka chwile, po czym blyska i rozplywa sie w nicosc, pozostawiajac nabrzmiale miesnie i uczucie nieludzkiej sily.", | ||
["zimny plomien"] = "zachodzi zimnym ogniem.", | ||
["cienie"] = "Za pomoca swej woli siegasz poza materialny swiat.", | ||
["kosciany wir"] = | ||
"Spod twoich stop wylaniaja sie trupy, ktorych kosci stopniowo wzlatuja, tworzac wokol ciebie kosciany wir.", | ||
} | ||
magicSpellsDescriptionsStopped = | ||
{ | ||
["bycza sila"] = "Twoje miesnie miekna. Czujesz sie slabszy.", | ||
["zimny plomien"] = "Zimne ognie pokrywajace twoj plomienisty poreczny miecz gasna.", | ||
["cienie"] = | ||
"Okolice nawiedzaja jeki i szepty umarlych, na chwile temperatura otoczenia spada na tyle, aby sformowalo sie kilka strzepkow sinej mgly.", | ||
["kosciany wir"] = | ||
"Czaszki przeplatajace sie w otaczajacym cie wirze wydaja z siebie okropny wrzask i gina bez sladu, rozplywajac sie w powietrzu.", | ||
} | ||
|
||
function magicEffectDurationTime(input_line) | ||
local input_line = tostring(input_line) | ||
vars = vars or {} | ||
local durationTime = "" | ||
for k, v in pairs(magicSpellsDescriptionsStarted) do | ||
vars["magicAbilityDurationTime" .. k] = | ||
vars["magicAbilityDurationTime" .. k] or createStopWatch() | ||
end | ||
--for | ||
for k, v in pairs(magicSpellsDescriptionsStarted) do | ||
if string.match(input_line, v) then | ||
startStopWatch(vars["magicAbilityDurationTime" .. k]) | ||
echo("\nStoper start\n") | ||
--echo(vars["magicAbilityDurationTime" .. k]) | ||
end | ||
--if | ||
end | ||
--for | ||
for k, v in pairs(magicSpellsDescriptionsStopped) do | ||
if string.match(input_line, v) then | ||
--echo(stopStopWatch(stoperName)) | ||
durationTime = stopStopWatch(vars["magicAbilityDurationTime" .. k]) | ||
echo("\nCzas trwania efektu czaru " .. k .. " wyniosl " .. durationTime .. " sekund\n") | ||
echo("Jest to " .. durationTime / 60 .. " minut\n") | ||
stopStopWatch(vars["magicAbilityDurationTime" .. k]) | ||
resetStopWatch(vars["magicAbilityDurationTime" .. k]) | ||
end | ||
-- if | ||
end | ||
--for | ||
end | ||
|
||
--func</script> | ||
<eventHandlerList /> | ||
</Script> | ||
</ScriptGroup> | ||
</ScriptPackage> | ||
</MudletPackage> |
127 changes: 127 additions & 0 deletions
127
Mudlet/Timers/SpellDuration/magicDurationTimesTriggers.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE MudletPackage> | ||
<MudletPackage version="1.001"> | ||
<TriggerPackage> | ||
<TriggerGroup isActive="yes" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no"> | ||
<name>magicDurationTimesTriggers</name> | ||
<script></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 /> | ||
<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>spellDurationTimeStopWatch_bycza_sila</name> | ||
<script>local match = tostring(matches[1]) | ||
local match = match:gsub("> ", "") | ||
magicEffectDurationTime(match)</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>Twoje miesnie miekna. Czujesz sie slabszy.</string> | ||
<string>Karmazynowa aura ogarnia twoje cialo na krotka chwile, po czym blyska i rozplywa sie w nicosc, pozostawiajac nabrzmiale miesnie i uczucie nieludzkiej sily.</string> | ||
<string>> Twoje miesnie miekna. Czujesz sie slabszy.</string> | ||
<string>> Karmazynowa aura ogarnia twoje cialo na krotka chwile, po czym blyska i rozplywa sie w nicosc, pozostawiajac nabrzmiale miesnie i uczucie nieludzkiej sily.</string> | ||
<string>Karmazynowa aura ogarnia twoje cialo, lecz nic wiecej sie nie dzieje.</string> | ||
<string>> Karmazynowa aura ogarnia twoje cialo, lecz nic wiecej sie nie dzieje.</string> | ||
</regexCodeList> | ||
<regexCodePropertyList> | ||
<integer>2</integer> | ||
<integer>2</integer> | ||
<integer>2</integer> | ||
<integer>2</integer> | ||
<integer>2</integer> | ||
<integer>2</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>spellDurationTimeStopWatch_zimne_ognie</name> | ||
<script>local match = tostring(matches[1]) | ||
local match = match:gsub("> ", "") | ||
magicEffectDurationTime(match)</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>^Two(j|ja|je) (.+) zachodz(i|a) zimnym ogniem\.$</string> | ||
<string>^Zimne ognie pokrywajace two(j|je|ja) (.+) gasna\.$</string> | ||
</regexCodeList> | ||
<regexCodePropertyList> | ||
<integer>1</integer> | ||
<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>spellDurationTimeStopWatch_cienie</name> | ||
<script>local match = tostring(matches[1]) | ||
local match = match:gsub("> ", "") | ||
magicEffectDurationTime(match)</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>Za pomoca swej woli siegasz poza materialny swiat.</string> | ||
<string>Okolice nawiedzaja jeki i szepty umarlych, na chwile temperatura otoczenia spada na tyle, aby sformowalo sie kilka strzepkow sinej mgly.</string> | ||
</regexCodeList> | ||
<regexCodePropertyList> | ||
<integer>0</integer> | ||
<integer>0</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>spellDurationTimeStopWatch_kosciany_wir</name> | ||
<script>local match = tostring(matches[1]) | ||
local match = match:gsub("> ", "") | ||
magicEffectDurationTime(match) | ||
</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>Spod twoich stop wylaniaja sie trupy, ktorych kosci stopniowo wzlatuja, tworzac wokol ciebie kosciany wir.</string> | ||
<string>Czaszki przeplatajace sie w otaczajacym cie wirze wydaja z siebie okropny wrzask i gina bez sladu, rozplywajac sie w powietrzu.</string> | ||
</regexCodeList> | ||
<regexCodePropertyList> | ||
<integer>0</integer> | ||
<integer>0</integer> | ||
</regexCodePropertyList> | ||
</Trigger> | ||
</TriggerGroup> | ||
</TriggerPackage> | ||
</MudletPackage> |