Welcome to the Achaea Forums! Please be sure to read the Forum Rules.
[Mudlet] Make mapper goto remap path and use wings when returning from Meropis

Klendathu
Eye of the StormMember Posts: 3,178 @@ - Legendary Achaean
Klendathu has a pebble, and is forever back and forth to Meropis. One thing that's always niggled with me is that because Mudlet-Mapper works out the path from point of origin, if that point of origin is on Meropis, it won't use artefact wings when it gets to Sea Lion Cove.
Copy and paste the following into a blank script and when you get to Sea Lion Cove from Meropis, your path will be remapped and use wings if appropriate. The trigger is included in the code block, so no need to add that separately.
Copy and paste the following into a blank script and when you get to Sea Lion Cove from Meropis, your path will be remapped and use wings if appropriate. The trigger is included in the code block, so no need to add that separately.
mmp = mmp or {}
mmp.remapPath = function()
if mmp.settings.duanathar == false and mmp.settings.duanatharan == false then return end -- no wings, no point
if #mmp.speedWalkPath > 0 then -- there is a destination
local destination = mmp.speedWalkPath[#mmp.speedWalkPath]
mmp.echo(string.format("Remapping path to %d (%s)",destination, getRoomName(destination)))
mmp.gotoRoom(destination, gallop)
end
end
mmp.createTrigger = function()
if seaLionCoveTrigger then killTrigger(seaLionCoveTrigger) seaLionCoveTrigger = nil end
seaLionCoveTrigger = tempExactMatchTrigger("As your fingertips break through the swirling mist of a shimmering portal, you are tugged through to the distant Sea Lion Cove.", [[mmp.remapPath()]])
end
mmp.createTrigger() --would prefer to use an event, but can't find an appropriate one
Tharos, the Announcer of Delos shouts, "It's near the end of the egghunt and I still haven't figured out how to pronounce Clean-dat-hoo."
7
Sign In to Comment.
Hail, Stranger!
Categories
- 6K All Categories
- 3K Everything Achaea
- 1.5K North of Thera
- 21 Archives of the Terraformer
- 246 The Matsuhama Arena
- 873 The Golden Dais of Creation
- 283 The Scarlattan Theatre
- 145 The Blank Canvas
- 1.9K Getting Help
- 392 General Questions
- 251 Quick Class Questions
- 1.3K Tech Support
- 300 Client Help
- 459 Curing Systems and Scripts
- 829 Off-Topic
- 250 The Wander Inn
- 579 The Universal Membrane
- 286 Class Discussions
- 286 Individual Class Sections
- 20 Alchemist
- 9 Apostate
- 29 Blademaster
- 9 Depthswalker
- 12 Druid
- 4 Infernal
- 20 Jester
- 19 Magi
- 31 Monk
- 10 Occultist
- 7 Paladin
- 7 Priest
- 28 Runewarden
- 18 Sentinel
- 26 Serpent
- 19 Shaman
- 9 Sylvan