valkryja_luminari_triggers.xml 25.2 KB
Newer Older
1 2 3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MudletPackage>
<MudletPackage version="1.001">
Maiyannah Bishop's avatar
Maiyannah Bishop committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
	<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>Luminari</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>
				<string>return Valkryja.isLuminari()</string>
			</regexCodeList>
			<regexCodePropertyList>
				<integer>4</integer>
			</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>Login Hook</name>
				<script>UI.Initialize()
27 28
send("score")
send("map")</script>
Maiyannah Bishop's avatar
Maiyannah Bishop committed
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
				<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>Welcome to Luminari, please enjoy your visit to our MUD.</string>
				</regexCodeList>
				<regexCodePropertyList>
					<integer>3</integer>
				</regexCodePropertyList>
			</Trigger>
			<TriggerGroup isActive="yes" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
				<name>Capture</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>prompt</name>
					<script>Character.Vitals.HP          = matches[2]
64 65 66
Character.Vitals.HP_max      = matches[3]
Character.Vitals.Stamina     = matches[4]
Character.Vitals.Stamina_max = matches[5]
67
if not pcall(Kauna.Nameplate.UpdateGauge1) then Valkryja.Exception("Failed to update Player Nameplate gauge #1 on prompt capture") end
68
Kauna.Nameplate.UpdateGauge2(tonumber(Character.Vitals.Stamina), tonumber(Character.Vitals.Stamina_max))
69 70 71
if (Config.GaggingPrompt==true) then
   deleteLine()
end</script>
Maiyannah Bishop's avatar
Maiyannah Bishop committed
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
					<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>^([0-9]+)\/([0-9]+)\H ([0-9]+)\/([0-9]+)\V ((\[smw\])[ *]?)((\(news\))[ *]?)((\(motd\))[ *]?)</string>
					</regexCodeList>
					<regexCodePropertyList>
						<integer>1</integer>
					</regexCodePropertyList>
				</Trigger>
				<TriggerGroup isActive="yes" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
					<name>Score</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>score_name_notitle</name>
						<script>Character.Vitals.Name = matches[2]
107
if not pcall(Kauna.Nameplate.UpdateName) then Valkryja.Exception("Failed to update Player Nameplate Title on SCCORE harvest.") end</script>
Maiyannah Bishop's avatar
Maiyannah Bishop committed
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
						<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>^Name : ([A-Za-z]+) ([ ]+)Title   : $</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>score_name_title</name>
						<script>Character.Vitals.Name = matches[2]
128
Character.Vitals.LastName = matches[3]
129
if not pcall(Kauna.Nameplate.UpdateName) then Valkryja.Exception("Failed to update Player Nameplate Title on SCCORE harvest.") end</script>
Maiyannah Bishop's avatar
Maiyannah Bishop committed
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
						<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>^Name : ([A-Za-z]+) ([ ]+)Title ([ ].): ([A-Za-z ,.]+)$</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>score_stats_1</name>
						<script>local labelstyle=[[&lt;span style='color:#5f461f;font-family:"Friz Quadrata TT",Aver,serif;font-weight:normal;font-size:10pt;'&gt;]]
150 151 152 153 154 155 156
Character = Character or {};
Character.Stats = Character.Stats or {};
Character.Stats.Strength     = matches[2] or 0;
Character.Stats.Dexterity    = matches[5] or 0;
Character.Stats.Constitution = matches[8] or 0;
Character.Stats.FortSave     = matches[11] or 0;
Character.Stats.WillSave     = matches[12] or 0;
157 158 159
echo("lsb_strength",     labelstyle..Character.Stats.Strength..[[&lt;span&gt;]])
echo("lsb_constitution", labelstyle..Character.Stats.Dexterity..[[&lt;span&gt;]])
echo("lsb_gold",         labelstyle..Character.Stats.Constitution..[[&lt;span&gt;]])</script>
Maiyannah Bishop's avatar
Maiyannah Bishop committed
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
						<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>^Str: ([0-9]+)\[([0-9 -])([0-9])\]  Dex: ([0-9]+)\[([0-9 -])([0-9])\]  Con: ([0-9]+)\[([0-9 -])([0-9])\]  \|  Fort    : ([0-9]+)   Will    : ([0-9]+) $</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>score_stats_2</name>
						<script>local labelstyle=[[&lt;span style='color:#5f461f;font-family:"Friz Quadrata TT",Aver,serif;font-weight:normal;font-size:10pt;'&gt;]]
180 181 182 183 184 185
Character = Character or {};
Character.Stats = Character.Stats or {};
Character.Stats.Intelligence = matches[2] or 0;
Character.Stats.Wisdom       = matches[4] or 0;
Character.Stats.Charisma     = matches[6] or 0;
Character.Stats.ReflexSave   = matches[8] or 0;
186 187 188
echo("lsb_dexterity",    labelstyle..Character.Stats.Intelligence..[[&lt;span&gt;]])
echo("lsb_intelligence", labelstyle..Character.Stats.Wisdom..[[&lt;span&gt;]])
echo("lsb_credits",      labelstyle..Character.Stats.Charisma..[[&lt;span&gt;]])</script>
Maiyannah Bishop's avatar
Maiyannah Bishop committed
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244
						<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>^Int: ([0-9]+)\[([0-9 -][0-9])\]  Wis:  ([0-9]+)\[([0-9 -][0-9])\]  Cha: ([0-9]+)\[([0-9 -][0-9])\]  \|  Reflex  : ([0-9]+) $</string>
						</regexCodeList>
						<regexCodePropertyList>
							<integer>1</integer>
						</regexCodePropertyList>
					</Trigger>
				</TriggerGroup>
				<TriggerGroup isActive="yes" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
					<name>Map</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>Move</name>
						<script>send("map")</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>^You (leave|sneak) (\w+)\.$</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>Map - First Line</name>
						<script>Valkryja.Harvesting = Valkryja.Harvesting or {};
245 246 247 248
Valkryja.Harvesting.Map=true
UI = UI or {}
UI.Map = UI.Map or {}
UI.Map.Contents = ""
249
deleteLine()</script>
Maiyannah Bishop's avatar
Maiyannah Bishop committed
250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329
						<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> --= Luminari Map System =--</string>
						</regexCodeList>
						<regexCodePropertyList>
							<integer>3</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>Map - Intermediate Blanks</name>
						<script>deleteLine()</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>^ \| \[\.\] Desert([ ]+)\|([ ]+)$</string>
							<string>^ \| \[o\] Ocean([ ]+)\|([ ]+)$</string>
							<string>^ \| \[\,\] Marsh([ ]+)\|([ ]+)$</string>
							<string>^ \| \[M\] High Mount([ ]+)\|([ ]+)$</string>
							<string>^ \| \[\.\] Planes([ ]+)\|([ ]+)$</string>
							<string>^ \| \[\Y\] UD Wild([ ]+)\|([ ]+)$</string>
							<string>^ \| \[\C\] UD City([ ]+)\|([ ]+)$</string>
							<string>^ \| \[\.\] UD Inside([ ]+)\|([ ]*)$</string>
							<string>^ \| \[\~\] UD Water([ ]+)\|([ ]*)$</string>
							<string>^ \| \[\=\] UD D Water([ ]+)\|([ ]*)$</string>
							<string>^ \| \[\^\] UD Air([ ]+)\|([ ]*)$</string>
							<string>^ \| \[\.\] Lava([ ]+)\|([ ]*)$</string>
							<string>^ \| \[\|\] D Rd N-S([ ]+)\|([ ]*)$</string>
							<string>^ \| \[\-\] D Rd E-W([ ]+)\|([ ]*)$</string>
							<string>^ \| \[\+\] D Inters([ ]+)\|([ ]*)$</string>
							<string>^ \| \[\C\] Cave([ ]+)\|([ ]*)$</string>
							<string>  .-.__--.,--.__.-.</string>
							<string>^ \| \+ Up([ ]+)\|([ ]*)$</string>
							<string>^ \| \- Down([ ]+)\|([ ]*)$</string>
							<string>^ \| \[\.\] Inside([ ]+)\|([ ]*)$</string>
							<string>^ \| \[\&amp;\] You([ ]+)\|([ ]*)$</string>
						</regexCodeList>
						<regexCodePropertyList>
							<integer>1</integer>
							<integer>1</integer>
							<integer>1</integer>
							<integer>1</integer>
							<integer>1</integer>
							<integer>1</integer>
							<integer>1</integer>
							<integer>1</integer>
							<integer>1</integer>
							<integer>1</integer>
							<integer>1</integer>
							<integer>1</integer>
							<integer>1</integer>
							<integer>1</integer>
							<integer>1</integer>
							<integer>1</integer>
							<integer>3</integer>
							<integer>1</integer>
							<integer>1</integer>
							<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>Map - Intermediate Lines</name>
						<script>if (Valkryja.Harvesting.Map==true) then
330 331 332
-- Conversions table
local conversions = {
      ["%[%&amp;%]"] = "&lt;span color=white&gt;&lt;/span&gt;",           -- current location
333 334 335 336
         ["%[C%]"]  = "&lt;span color=dim_grey&gt;▒▒▒&lt;/span&gt;",        -- city
         ["%[%.%]"] = "&lt;span color=dark_slate_grey&gt;[ ]&lt;/span&gt;", -- inside
         ["%[Y%]"]  = "&lt;span color=forest_green&gt;♣♣♣&lt;/span&gt;",    -- forest
         ["%[,%]"]  = "&lt;span color=lawn_green&gt;▒▒▒&lt;/span&gt;",      -- plains
337 338 339 340 341 342 343 344 345
      ["¦"]      = "&amp;brvbar;",
      ["×"]      = "&amp;times;",
      ["«"]      = "&amp;#171;",
      ["»"]      = "&amp;raquo;",
      [" "]      = "&amp;nbsp;",
      ["\\"]     = "&amp;#92;",
      ["/"]      = "&amp;#47;"
   }

346
   line = matches[2]
347
    
348 349 350
   -- Convert the sequences we need to escape
   for from, to in pairs(conversions) do
      line = string.gsub(line, from, to)
351 352
   end    
    
353
   -- todo: find a way to distinguish Air and Hills, Desert and inside
354 355 356 357 358 359 360 361 362 363 364 365
   -- line = string.gsub(line, "%[%&amp;%]", "&lt;span color=white&gt;&lt;/span&gt;")             -- current location
   -- line = string.gsub(line, "%[C%]",  "&lt;span color=dim_grey&gt;▒▒▒&lt;/span&gt;")          -- city
   -- line = string.gsub(line, "%[%.%]", "&lt;span color=dark_slate_grey&gt;[ ]&lt;/span&gt;")   -- inside
   -- line = string.gsub(line, "%[Y%]",  "&lt;span color=forest_green&gt;♣♣♣&lt;/span&gt;")      -- forest
   -- line = string.gsub(line, "%[,%]",  "&lt;span color=lawn_green&gt;▒▒▒&lt;/span&gt;")        -- plains
   line = string.gsub(line, "%[%-%]", "&lt;span color=dark_slate_grey&gt;═══&lt;/span&gt;")   -- horiz road
   line = string.gsub(line, "%: ",    "&lt;span color=sandy_brown&gt;▒▒▒&lt;/span&gt;")       -- beach
   line = string.gsub(line, "%[~%]",  "&lt;span color=royal_blue&gt;███&lt;/span&gt;")        -- shallow water (swimable)
   line = string.gsub(line, "%[%=%]", "&lt;span color=medium_blue&gt;███&lt;/span&gt;")       -- deep water (un-swimable)
   line = string.gsub(line, "%[%^%]", "&lt;span color=lawn_green&gt;▒ᵔ▒&lt;/span&gt;")        -- hills
   line = string.gsub(line, "%[m%]",  "&lt;span color=light_grey&gt;ˊ˄ˋ&lt;/span&gt;")        -- mountains
   line = string.gsub(line, " %| %-", "&lt;reset&gt; | &lt;span color=red&gt;-&lt;/span&gt;")       -- down exit
366
   line = string.gsub(line, " %| %+", "&lt;reset&gt; | &lt;span color=red&gt;+&lt;/span&gt;")       -- up exit  
367
   UI.Map.Contents = UI.Map.Contents .. line.."&lt;br&gt;"
368 369
    deleteLine()
    line = nil
370 371 372 373 374
end

-- old version, kept for reference (but ends up pretty lame)
-- if (Valkyrior.Harvesting.Map==true) then
--    selectCurrentLine()
375
--      selectSection(28, 40)
376
--    copy()
377
--    appendBuffer("Map")   
378 379
--    moveCursorEnd("main")
-- end</script>
Maiyannah Bishop's avatar
Maiyannah Bishop committed
380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423
						<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>^ \| \[\,\] Field       \|       (.*)$</string>
							<string>^ \| \[\Y\] Forest      \|       (.*)$</string>
							<string>^ \| \[\^\] Hills       \|       (.*)$</string>
							<string>^ \| \[\m\] Mountain    \|       (.*)$</string>
							<string>^ \| \[\~\] Water       \|       (.*)$</string>
							<string>^ \| \[\=\] Deep Water  \|       (.*)$</string>
							<string>^ \| \[U\] Underwater  \|       (.*)$</string>
							<string>^ \| \[X\] Zone Entry  \|       (.*)$</string>
							<string>^ \| \[\|\] Road N-S    \|       (.*)$</string>
							<string>^ \| \[\-\] Road E-W    \|       (.*)$</string>
							<string>^ \| \[\^\] Air         \|       (.*)$</string>
							<string>^ \| \[\+\] Intersect   \|       (.*)$</string>
							<string>^ \| \[\C\] City        \|       (.*)$</string>
						</regexCodeList>
						<regexCodePropertyList>
							<integer>1</integer>
							<integer>1</integer>
							<integer>1</integer>
							<integer>1</integer>
							<integer>1</integer>
							<integer>1</integer>
							<integer>1</integer>
							<integer>1</integer>
							<integer>1</integer>
							<integer>1</integer>
							<integer>1</integer>
							<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>Map - Last Line</name>
						<script>if (Valkryja.Harvesting.Map==true) then
424
   Valkryja.Harvesting.Map=false
425 426 427
    deleteLine()
    echo("map_console", UI.Map.Contents)
--    moveCursorEnd("main")    
428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
--    deleteLine()
--    moveCursorEnd("main")
500
end</script>
Maiyannah Bishop's avatar
Maiyannah Bishop committed
501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587
						<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> `.-.__--.,-.__.-.-'</string>
						</regexCodeList>
						<regexCodePropertyList>
							<integer>3</integer>
						</regexCodePropertyList>
					</Trigger>
				</TriggerGroup>
			</TriggerGroup>
			<TriggerGroup isActive="yes" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
				<name>Gags</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>Snarf Blank Lines</name>
					<script>deleteLine()</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>^$</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>Unneccesary zcheck</name>
					<script>deleteLine()</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>- Room description not formatted with indent (/fi in the editor).</string>
						<string>- Room description not wrapped at 80 chars (/fi in the editor).</string>
					</regexCodeList>
					<regexCodePropertyList>
						<integer>3</integer>
						<integer>3</integer>
					</regexCodePropertyList>
				</Trigger>
			</TriggerGroup>
		</TriggerGroup>
	</TriggerPackage>
	<TimerPackage />
	<AliasPackage />
	<ActionPackage />
	<ScriptPackage />
	<KeyPackage />
	<HelpPackage>
		<helpURL></helpURL>
	</HelpPackage>
588
</MudletPackage>