Skip to content

add tarot universe meropis exits #201

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 43 additions & 32 deletions mudlet-mapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7187,8 +7187,31 @@ registerAnonymousEventHandler("mmp clear externals", "mmp.removeWings")</script>
<name>Achaea</name>
<packageName></packageName>
<script>registerAnonymousEventHandler("mmp link externals", "mmp.addWingsAchaea")



local universeLocations = {
['Main'] = {
azdun = 1772,
blackrock = 10573,
bitterfork = 25093,
genji = 10091,
manusha = 8730,
newthera = 20386,
caerwitrin = 17678,
shastaan = 2855,
mannaseh = 1745,
manara = 9124,
brasslantern = 30383,
mhojave = 39103,
thraasi = 35703,
newhope = 25581,
},
['Meropis'] = {
rageteeth = 1226,
seleucar = 29755,
judgement = 35450,
yggdrasil = 12207,
}
}

function mmp.addWingsAchaea()
--Trimmed down version of the original function, meant to only be used for wings. (Where the command varies based on several MCONFIGS)
Expand Down Expand Up @@ -7299,36 +7322,24 @@ function mmp.addWingsAchaea()
end
end
--universe tarot
if mmp.settings.universe and mmp.oncontinent(area, "Main") then
local tarotLocations =
{
azdun = 1772,
blackrock = 10573,
bitterfork = 25093,
genji = 10091,
manusha = 8730,
newthera = 20386,
caerwitrin = 17678,
shastaan = 2855,
mannaseh = 1745,
manara = 9124,
brasslantern = 30383,
mhojave = 39103,
thraasi = 35703,
newhope = 25581,
}
for village, roomnum in pairs(tarotLocations) do
mmp.tempSpecialExit(
roomnum,
[=[script:
mmp.customwalkdelay(4.5)
send("fling universe at ground",false)
tempTimer(4,[[send("touch ]=] ..
village ..
[=[",false)]])
]=],
10
)
if mmp.settings.universe then
local continent = mmp.getareacontinents(area)[1]
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really don't like this one, but I figured the way mmp.oncontinent is implemented, at some point someone agreed for Achaea special exits to not care for multiple continent areas. Or maybe I'm missing something


local universeExits = universeLocations[continent]
if universeExits then
for village, roomnum in pairs(universeExits) do
mmp.tempSpecialExit(
roomnum,
[=[script:
mmp.customwalkdelay(4.5)
send("fling universe at ground",false)
tempTimer(4,[[send("touch ]=] ..
village ..
[=[",false)]])
]=],
10
)
end
end
end
--gare
Expand Down