Skip to content

Commit 8de27eb

Browse files
authored
add tarot universe meropis exits (#201)
* add tarot universe meropis exits * refactor tarot universe logic * support multiple continent in same area
1 parent 07f0669 commit 8de27eb

File tree

1 file changed

+45
-32
lines changed

1 file changed

+45
-32
lines changed

mudlet-mapper.xml

+45-32
Original file line numberDiff line numberDiff line change
@@ -7187,8 +7187,31 @@ registerAnonymousEventHandler("mmp clear externals", "mmp.removeWings")</script>
71877187
<name>Achaea</name>
71887188
<packageName></packageName>
71897189
<script>registerAnonymousEventHandler("mmp link externals", "mmp.addWingsAchaea")
7190-
7191-
7190+
7191+
local universeLocations = {
7192+
['Main'] = {
7193+
azdun = 1772,
7194+
blackrock = 10573,
7195+
bitterfork = 25093,
7196+
genji = 10091,
7197+
manusha = 8730,
7198+
newthera = 20386,
7199+
caerwitrin = 17678,
7200+
shastaan = 2855,
7201+
mannaseh = 1745,
7202+
manara = 9124,
7203+
brasslantern = 30383,
7204+
mhojave = 39103,
7205+
thraasi = 35703,
7206+
newhope = 25581,
7207+
},
7208+
['Meropis'] = {
7209+
rageteeth = 1226,
7210+
seleucar = 29755,
7211+
judgement = 35450,
7212+
yggdrasil = 12207,
7213+
}
7214+
}
71927215

71937216
function mmp.addWingsAchaea()
71947217
--Trimmed down version of the original function, meant to only be used for wings. (Where the command varies based on several MCONFIGS)
@@ -7299,36 +7322,26 @@ function mmp.addWingsAchaea()
72997322
end
73007323
end
73017324
--universe tarot
7302-
if mmp.settings.universe and mmp.oncontinent(area, "Main") then
7303-
local tarotLocations =
7304-
{
7305-
azdun = 1772,
7306-
blackrock = 10573,
7307-
bitterfork = 25093,
7308-
genji = 10091,
7309-
manusha = 8730,
7310-
newthera = 20386,
7311-
caerwitrin = 17678,
7312-
shastaan = 2855,
7313-
mannaseh = 1745,
7314-
manara = 9124,
7315-
brasslantern = 30383,
7316-
mhojave = 39103,
7317-
thraasi = 35703,
7318-
newhope = 25581,
7319-
}
7320-
for village, roomnum in pairs(tarotLocations) do
7321-
mmp.tempSpecialExit(
7322-
roomnum,
7323-
[=[script:
7324-
mmp.customwalkdelay(4.5)
7325-
send("fling universe at ground",false)
7326-
tempTimer(4,[[send("touch ]=] ..
7327-
village ..
7328-
[=[",false)]])
7329-
]=],
7330-
10
7331-
)
7325+
if mmp.settings.universe then
7326+
local continents = mmp.getareacontinents(area)
7327+
7328+
for _, continent in ipairs(continents) do
7329+
local universeExits = universeLocations[continent]
7330+
if universeExits then
7331+
for village, roomnum in pairs(universeExits) do
7332+
mmp.tempSpecialExit(
7333+
roomnum,
7334+
[=[script:
7335+
mmp.customwalkdelay(4.5)
7336+
send("fling universe at ground",false)
7337+
tempTimer(4,[[send("touch ]=] ..
7338+
village ..
7339+
[=[",false)]])
7340+
]=],
7341+
10
7342+
)
7343+
end
7344+
end
73327345
end
73337346
end
73347347
--gare

0 commit comments

Comments
 (0)