Skip to content

Commit

Permalink
Update mapping script to new version
Browse files Browse the repository at this point in the history
  • Loading branch information
vadi2 committed Sep 15, 2019
1 parent 63c2718 commit e5c65b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/mudlet-lua/lua/generic-mapper/generic_mapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ end</script>
<packageName></packageName>
<script>-- Jor'Mox's Generic Map Script
-- 11/07/2018
local version = "2.0.15"
local version = "2.0.16"

-- look into options for non-standard door usage for speedwalk
-- come up with aliases to set translations and custom exits, add appropriate help info
Expand Down Expand Up @@ -1203,7 +1203,7 @@ map.help.quick_start = [[
----------------------------------------

Mudlet Mapper works in tandem with a script, and this generic mapper script needs
to know 2 things to work:
to know 2 things to work:
- &lt;dim_grey&gt;room name&lt;reset&gt; $ROOM_NAME_STATUS ($ROOM_NAME)
- &lt;dim_grey&gt;exits&lt;reset&gt; $ROOM_EXITS_STATUS ($ROOM_EXITS)

Expand All @@ -1214,7 +1214,7 @@ map.help.quick_start = [[
Room name or exits aren't recognised? Try this command then. It will make
the script start looking for a prompt using several standard prompt
patterns. If a prompt is found, you will be notified, if not, you will
need to set a prompt pattern yourself using &lt;link: prompt&gt;map prompt&lt;/link&gt;.
need to set a prompt pattern yourself using &lt;link: prompt&gt;map prompt&lt;/link&gt;.
Reach out to the &lt;urllink: https://discord.gg/kuYvMQ9&gt;Mudlet community&lt;/urllink&gt; for help, we'd be happy to help
you figure it out!
3. &lt;link: debug&gt;map debug&lt;/link&gt;
Expand Down Expand Up @@ -1407,8 +1407,8 @@ function map.show_help(cmd)
local url, target = rex.match(w, [[&lt;(url)?link: ([^&gt;]+)&gt;]])
-- lrexlib returns a non-capture as 'false', so determine which variable the capture went into
if target == nil then target = url end
if target then
local before, linktext, _, link, _, after, ok = rex.match(w,
if target then
local before, linktext, _, link, _, after, ok = rex.match(w,
[[(.*)&lt;((url)?link): [^&gt;]+&gt;(.*)&lt;\/(url)?link&gt;(.*)]], 0, 'm')
-- could not get rex.match to capture the newline - fallback to string.match
local _, _, after = w:match("(.*)&lt;u?r?l?link: [^&gt;]+&gt;(.*)&lt;/u?r?l?link&gt;(.*)")
Expand Down Expand Up @@ -2937,7 +2937,7 @@ function map.eventHandler(event, ...)
elseif event == "mapOpenEvent" then
if not help_shown and not map.save.prompt_pattern[map.character or ""] then
send("look", true)
tempTimer(3, function() map.show_help("quick_start"); help_shown = true end)
tempTimer(3, function() map.show_help("quick_start"); help_shown = true end)
end
elseif event == "mapStop" then
map.set("mapping", false)
Expand Down
2 changes: 1 addition & 1 deletion src/mudlet-lua/lua/generic-mapper/versions.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
return {{[1] = [[2.0]],[2] = [[2.0.1]],[3] = [[2.0.2]],[4] = [[2.0.3]],[5] = [[2.0.4]],[6] = [[2.0.5]],
[7] = [[2.0.6]], [8] = [[2.0.7]], [9] = [[2.0.8]], [10] = [[2.0.9]], [11] = [[2.0.10]], [12] = [[2.0.11]],
[13] = [[2.0.12]], [14] = [[2.0.13]], [15] = [[2.0.14]], [16] = [[2.0.15]]},
[13] = [[2.0.12]], [14] = [[2.0.13]], [15] = [[2.0.14]], [16] = [[2.0.15]], [17] = [[2.0.16]]},
}

0 comments on commit e5c65b3

Please sign in to comment.