[Release] !warpmap <mapID>

Newbie Spellweaver
Joined
Jun 29, 2008
Messages
12
Reaction score
0
Simple command to warp everyone in your map to a Map ID of your choice. It was suggested by a friend of mine, figured I'd put it here.

Code:
} else if (splitted[0].equals("!warpmap")) {
                               for (MapleCharacter mch : c.getPlayer().getMap().getCharacters()) {
                                   if (mch != null) {
                                       int mapid = Integer.parseInt(splitted[1]);
                                       MapleMap target = ChannelServer.getInstance(c.getChannel()).getMapFactory().getMap(mapid);
                                       mch.changeMap(target, target.getPortal(0));
                                     }
                               }

As requested, the same function with actual map names (Untested):
Code:
                } else if (splitted[0].equals("!mapgoto")) {
                    int[] gotomapid = {
                        180000000, //GmMap
                        60000, //Southperry
                        1010000, //Amherst
                        100000000, //henesys
                        101000000, //ellinia
                        102000000, //perion
                        103000000, //kerning
                        104000000, //lith
                        105040300, //sleepywood
                        110000000, //florina
                        200000000, //orbis
                        209000000, //happy
                        211000000, //elnath
                        220000000, //ludi
                        230000000, //aqua
                        240000000, //leafre
                        250000000, //mulung
                        251000000, //herb
                        221000000, //omega
                        222000000, //korean (Folk Town)
                        600000000, //nlc (New Leaf City)
                        990000000, //excavation (Sharenian/Excavation Site)
                        230040420, //Pianus cave
                        240060200, //Horned Tail's cave
                        100000005, //Mushmom
                        240020101, //Griffey
                        240020401, //Manon
                        682000001, //Headless Horseman
                        105090900, //Jr.Balrog
			280030000, //Zakum's Altar
			220080001, //Papulatus map
			801000000, //showa Town
			200000301, //Guild HeadQuarters
			800000000, //Shrine (Mushroom Shrine)
			910000000, //Free Market Entrance
			240040511, //Skelegon map (Leafre)
			109020001, //PVP map (Quiz X and O)
			};
			String[] gotomapname = {
                        "gmmap",
                        "southperry",
                        "amherst",
                        "henesys",
                        "ellinia",
                        "perion",
                        "kerning",
                        "lith",
                        "sleepywood",
                        "florina",
                        "orbis",
                        "happy",
                        "elnath",
                        "ludi",
                        "aqua",
                        "leafre",
                        "mulung",
                        "herb",
                        "omega",
                        "korean",
                        "nlc",
                        "excavation",
                        "pianus",
                        "horntail",
                        "mushmom",
                        "griffey",
                        "manon",
                        "horseman",
                        "balrog",
			"zakum",
			"papu",
			"showa",
			"guild",
			"shrine",
			"fm",
			"skelegon",
			"pvp"
			};
                    if (splitted.length < 2) { //If no arguments, list options.
                        mc.dropMessage("Syntax: !goto <mapname> <optional_target>, where target is char name and mapname is one of:");
                        mc.dropMessage("gmmap, southperry, amherst, henesys, ellinia, perion, kerning, lith, sleepywood, florina,");
                        mc.dropMessage("orbis, happy, elnath, ludi, aqua, leafre, mulung, herb, omega, korean, nlc, excavation, pianus");
                        mc.dropMessage("horntail, mushmom, griffey, manon, horseman, balrog, zakum, papu, showa, guild, shrine, fm, skelegon, pvp");
                    } else {
                        for (int i = 0; gotomapid[i] != 0 && gotomapname[i] != null; ++i) {
                        if (splitted[1].equals(gotomapname[i])) {
                        MapleMap target = cserv.getMapFactory().getMap(gotomapid[i]);
                        MaplePortal targetPortal = target.getPortal(0);
                        for (MapleCharacter mch : c.getPlayer().getMap().getCharacters()) {
                        mch.changeMap(target, targetPortal);
                	}
		}
	}
}
 
Last edited:
Re: !warpmap <mapID>

♠Markii♠;4450549 said:
theres a command called !warphere

I'm aware, but this can be more useful for events and such, instead of warping people individually. It also doesn't upset people should you choose to use !warpallhere, and people don't want to participate.
 
Re: !warpmap <mapID>

There is a command called !warpallhere or !warphereall. Somehting like that.

You also said the "new" command wouldn't upset ppl who were warped without their consent.. That kinda defeats the purpose of not having to warp all individually... Doesn't make sense. Either you do it individually, or you do it all at once, and there are commands for those actions already.
 
Re: !warpmap <mapID>

There is a command called !warpallhere or !warphereall. Somehting like that.

You also said it wouldn't upset ppl who were warped without their consent.. That kinda defeats the purpose of not having to warp all individually... Doesn't make sense. Either you do it individually, or you do it all at once, and there are commands for those actions already.

!warpallhere will bring everybody in the channel to the map you're in.

With !warpmap, everybody in the same map as you will be sent to a map of your choice. I can't really clarify it any further. If you find it useless, don't use it. Simple really.
 
Re: !warpmap <mapID>

I find it completely useful. If you're throwing an event, you can say "Everyone who wants to come to the Event, come to FM 10" and after everyone who wants to participate gets there, use the !warpmap command to get to the event map. This saves the hassle for those players who do not wish to participate. Great job.
 
Re: !warpmap <mapID>

It is quite useless but anyway, nice try?

It's not quite useless.

For example, the event. Just because a lot of people said that, doesn't mean its true.

Also, if you use !warpallhere, people will get major pissed.

So, this is sort of useful, afterall.
 
Simple command to warp everyone in your map to a Map ID of your choice. It was suggested by a friend of mine, figured I'd put it here.

It says, warp everyone to a map ID of your choice

Meaning, even without this !warpmap command, i can just go to the map and then type !warpallhere

Ain't the same? >.>
 
No. !warpmap warps everyone *From the map you're in*, to *a map of your choice*

If you did !warpallhere, it would warp everyone from the channel including:

- People in the middle of bossing
- People in Trades
-People in PQ's


etc.

Therefore, it's not the same at all.
 
Omg, ProGamerForLife...before you friggin Flame about it being nub, please release something. Do something good for the community, please.
 
Rofl do you guys still not get it? This command warps everyone who is currently on the same map as you are to the map you've specified.

Example:

A GM is going to do an event at Happyville, so they send out a notice that says thus:
"[Notice] For all who want to come to the Happyville event, go to FM 15 on Channel 1."
Then the GM goes to FM 15 and waits for a while, repeating the notice for a few minutes.
Once the GM is ready, he types "!warpmap 209000000".
End result: Everyone who went to FM 15 got warped to Happyville.

Does that make the use of the command clear?

!warpmap DOES NOT equal !warpall or !warpallhere period.. If you're too dense to understand it, don't flame, just don't post at all... SOME of us find this rather useful.
 
Back