Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO 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
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!
 
Initiate Mage
Joined
May 29, 2008
Messages
56
Reaction score
1
Re: [Release/Untested] Warp out When you dc at Any Special map

1st post, and lol, I guess it's nice.
 
Experienced Elementalist
Joined
Jul 10, 2008
Messages
299
Reaction score
3
Re: [Release/Untested] Warp out When you dc at Any Special map

I had it already but i guess its nice since it'll help others.
 
Experienced Elementalist
Member
Joined
Apr 23, 2008
Messages
240
Reaction score
0
Re: [Release/Untested] Warp out When you dc at Any Special map

I'll try this tomorrow. Nice job.
 
Junior Spellweaver
Joined
Jun 27, 2008
Messages
148
Reaction score
0
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.
 
Initiate Mage
Joined
Jul 30, 2008
Messages
91
Reaction score
10
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! -.-
 
Junior Spellweaver
Joined
Jun 25, 2008
Messages
118
Reaction score
0
Re: [Release/Untested] Warp out When you dc at Any Special map

Lol thanks O-o

Btw no credits to me lol
 
Junior Spellweaver
Joined
Jun 25, 2008
Messages
118
Reaction score
0
Re: [Release/Untested] Warp out When you dc at Any Special map

added tut lemme see if it works.
 
Delta
Member
Joined
Apr 4, 2008
Messages
951
Reaction score
305
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%/.
 
Junior Spellweaver
Joined
Jun 25, 2008
Messages
118
Reaction score
0
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.
 
Initiate Mage
Joined
Jun 1, 2008
Messages
83
Reaction score
0
erm..it doesnt save your data when u dc right?can u make it save your data when u dc ?
 
Junior Spellweaver
Joined
Apr 14, 2008
Messages
162
Reaction score
1
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:
Delta
Member
Joined
Apr 4, 2008
Messages
951
Reaction score
305
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
Top