Welcome!

Join our community of MMORPG enthusiasts and private server developers! By registering, you'll gain access to in-depth discussions on source codes, binaries, and the latest developments in MMORPG server files. Collaborate with like-minded individuals, explore tutorials, and share insights on building and optimizing private servers. Join us today and unlock the full potential of MMORPG server development!

Join Today!

[Release/tested] Warp out When you dc at Any Special map

Status
Not open for further replies.
Junior Spellweaver
Joined
Jun 25, 2008
Messages
118
Reaction score
0
Location
Home
In MapleCharacter.Java

Code:
		if (channelserver) {
			MapleMapFactory mapFactory = ChannelServer.getInstance(client.getChannel()).getMapFactory();
			ret.map = mapFactory.getMap(ret.mapid);
			if (ret.map == null) { //char is on a map that doesn't exist warp it to henesys
				ret.map = mapFactory.getMap(100000000);
			}
			MaplePortal portal = ret.map.getPortal(ret.initialSpawnPoint);
			if (portal == null) {
				portal = ret.map.getPortal(0); // char is on a spawnpoint that doesn't exist - select the first spawnpoint instead
				ret.initialSpawnPoint = 0;
			}
			ret.setPosition(portal.getPosition());

And replace that with

Code:
if (channelserver) {
			MapleMapFactory mapFactory = ChannelServer.getInstance(client.getChannel()).getMapFactory();
			ret.map = mapFactory.getMap(ret.mapid);
			if (ret.map == null) { //char is on a map that doesn't exist warp it to henesys
				ret.map = mapFactory.getMap(100000000);
                        } else if (ret.map.getId() >= 103000800 && ret.map.getId() <= 103000805) { // KPQ
				ret.map = mapFactory.getMap(103000890);
			} else if (ret.map.getId() >= 922010000 && ret.map.getId() <= 922011000) { // LPQ
				ret.map = mapFactory.getMap(922010000);
			} else if (ret.map.getId() >= 809050000 && ret.map.getId() <= 809050015) { // LMPQ
				ret.map = mapFactory.getMap(809050017);
			} else if (ret.map.getId() >= 920010000 && ret.map.getId() <= 920011100) { // OPQ
				ret.map = mapFactory.getMap(920011200);
			} else if (ret.map.getId() == 280030000) { // Zakum's Altar
				ret.map = mapFactory.getMap(211000000);
			} else if (ret.map.getId() == 220080001) { // Origin of the Clock Tower
				ret.map = mapFactory.getMap(220080000);
			} else if (ret.map.getId() >= 801040001 && ret.map.getId() <= 801040100) { // Showa dungeon
				ret.map = mapFactory.getMap(801040000);
			} else if (ret.map.getId() >= 211041500 && ret.map.getId() <= 211042300) { // Elnath dungeon
				ret.map = mapFactory.getMap(211041400);
			}

This Basically warps you out of zakum when you dc or makes you dc in pap or kerning pq or w/e Something I found while searching and thought it wasnt released and if its released please delete mods :P.

Credits:
The ORIGINAL POSTER:akakori
The Maker: akakori

Edit: TESTED WORKING!
 
Re: [Release/Untested] Warp out When you dc at Any Special map

1st post, and lol, I guess it's nice.
 
Re: [Release/Untested] Warp out When you dc at Any Special map

I'll try this tomorrow. Nice job.
 
Re: [Release/Untested] Warp out When you dc at Any Special map

This reminds me I need to make it so it kicks you out of PvP maps when you relog. O: Thanks.
 
Re: [Release/Untested] Warp out When you dc at Any Special map

Thanks much, i'll use this im tired of my character bugging cause of DC'ing fighting pap. its happened 3 times! -.-
 
Re: [Release/Untested] Warp out When you dc at Any Special map

Lol thanks O-o

Btw no credits to me lol
 
Re: [Release/Untested] Warp out When you dc at Any Special map

added tut lemme see if it works.
 
Re: [Release/Untested] Warp out When you dc at Any Special map

This is 100% Kori's.
He gave me this 2 months before he released it.

Original Posters / Creator was akakori.
And it works 100%/.
 
Re: [Release/Untested] Warp out When you dc at Any Special map

Ok sparks want me to take it off? O_o

And ill change credits etc.
 
erm..it doesnt save your data when u dc right?can u make it save your data when u dc ?
 
awesome realese! no more ksers in zakum xD!

and...

you need to do this if you dont want ksers on zakum...

PHP:
} else if (ret.map.getId() == 280030000 || ret.map.getId() == 211042400) { // Zakum's Altar
				ret.map = mapFactory.getMap(211000000);
 
Last edited:
No you don't have to take it off, I'll talk to him on msn and see if he wants this released or not, if not then ill tell you to close it up.
 
Status
Not open for further replies.
Back