Permalink
Browse files

strange mansion

  • Loading branch information...
1 parent 6428a13 commit 0c04eaa60313118821fc22fc1b4ab282719bd892 @xcaliburinhand committed Nov 8, 2012
View
@@ -348,7 +348,7 @@ end</script>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
- <string>\sroc</string>
+ <string>\sroc\s</string>
<string>huntsman</string>
</regexCodeList>
<regexCodePropertyList>
@@ -512,6 +512,30 @@ end</script>
<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>Strange Mansion</name>
+ <script>Hunt(matches[1])</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>\smage</string>
+ <string>spectre</string>
+ <string>vision</string>
+ </regexCodeList>
+ <regexCodePropertyList>
+ <integer>1</integer>
+ <integer>0</integer>
+ <integer>0</integer>
+ </regexCodePropertyList>
+ </Trigger>
</TriggerGroup>
<Trigger isActive="no" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>huntHold</name>
@@ -893,9 +917,9 @@ enableTrigger(&quot;Exit_Line&quot;)</script>
<name>ExitFound</name>
<script>local littleExit = matches[2]:sub(1,1)
if littleExit == &quot;n&quot; or littleExit == &quot;s&quot; then
- if littleExit:find(&quot;e&quot;) then
+ if matches[2]:find(&quot;e&quot;) then
littleExit = littleExit..&quot;e&quot;
- elseif littleExit:find(&quot;w&quot;) then
+ elseif matches[2]:find(&quot;w&quot;) then
littleExit = littleExit..&quot;w&quot;
end
end
@@ -1361,7 +1385,7 @@ else
end</script>
<command></command>
<packageName></packageName>
- <regex>^(n|s|e|w|ne|nw|se|sw|u|d|go|push|climb)(\s(.*))*$</regex>
+ <regex>^(n|s|e|w|ne|nw|se|sw|u|d|go|push|climb|move)(\s(.*))*$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Map Utilities</name>
@@ -1379,17 +1403,6 @@ send(matches[1])</script>
<packageName></packageName>
<regex>^(l)$</regex>
</Alias>
- <Alias isActive="no" isFolder="no">
- <name>Special Exits</name>
- <script>changeRoom(matches[1])
-
-if not manual_map then
- send(matches[1])
-end</script>
- <command></command>
- <packageName></packageName>
- <regex>^(go|push|climb)\s(.*)$</regex>
- </Alias>
<Alias isActive="yes" isFolder="no">
<name>Stop Walk</name>
<script>sWalk = false</script>
@@ -2152,7 +2165,7 @@ function changeRoom(direction)
end
function findExit(direction)
- if direction:find(&quot;go&quot;) or direction:find(&quot;push&quot;) or direction:find(&quot;climb&quot;) then
+ if direction:find(&quot;go&quot;) or direction:find(&quot;push&quot;) or direction:find(&quot;climb&quot;) or direction:find(&quot;more&quot;) then
local exits = getSpecialExits(current_room)
for rid,command_table in pairs(exits) do
for command,locked in pairs(command_table) do
Binary file not shown.
Binary file not shown.
View
BIN map/mm
Binary file not shown.
View
@@ -1,5 +1,5 @@
# find most recent profile
-profile=$(find ./current/ -name *#* | sort -n | tail -1)
+profile=$(find ./current/ -name *#* -printf '%T@ %p\n' | sort -k 1nr | sed 's/^[^ ]* //' | head -n 1)
# make usable copy of profile
./copyProfiles.sh
@@ -14,7 +14,7 @@ sed -i '/<Host/,/<\/HostPackage>/d' ./current/MM.xml
sed -i 's/7\.5,\[\[send(\&quot;.*\&quot/7\.5,\[\[send(\&quot;\&quot/' ./current/MM.xml
# find most recent map
-profile=$(find ./map/ -name *dat | sort -n | tail -1)
+profile=$(find ./map/ -name *dat -printf '%T@ %p\n' | sort -k 1nr | sed 's/^[^ ]* //' | head -n 1)
# backup map
cp $profile ./map/mm
View
@@ -1,5 +1,5 @@
# find most recent profile
-profile=$(find ./current/ -name *#* | sort -n | tail -1)
+profile=$(find ./current/ -name *#* -printf '%T@ %p\n' | sort -k 1nr | sed 's/^[^ ]* //' | head -n 1)
# Get HostPackage xml block
sed -n '/<\?xml/,/\/HostPackage>/p' $profile > holder
@@ -15,7 +15,7 @@ sed -i "s/7\.5,\[\[send(\&quot;\&quot/7\.5,\[\[send(\&quot;$pass\&quot/" holder
mv holder $profile
# find most recent map
-profile=$(find ./map/ -name *dat | sort -n | tail -1)
+profile=$(find ./map/ -name *dat -printf '%T@ %p\n' | sort -k 1nr | sed 's/^[^ ]* //' | head -n 1)
touch $profile
# make usable copy of profile

0 comments on commit 0c04eaa

Please sign in to comment.