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!

Reset Map on logout

Status
Not open for further replies.
Banned
Banned
Joined
Sep 25, 2006
Messages
295
Reaction score
1
Change the 800020300 to whatever mapid you want to use for return map.

In MapleCharacter.java
Change
Code:
/*if (map == null) {
	ps.setInt(20, 0);
} else {
	ps.setInt(20, map.getId());
}*/
to
Code:
ps.setInt(20, 800020300);
 
Last edited:
Newbie Spellweaver
Joined
Jun 9, 2008
Messages
61
Reaction score
0
Re: [Small Release] Reset Map on logout

airflow would u like to release mob spawning npc scripts? or can u tell me the command to script npc that make them spawn the mobs? thanks in advance
 
Banned
Banned
Joined
Sep 25, 2006
Messages
295
Reaction score
1
Re: [Small Release] Reset Map on logout

My release thread != my request thread..
 
Banned
Banned
Joined
Sep 25, 2006
Messages
295
Reaction score
1
Re: [Small Release] Reset Map on logout

*Updated, old method was bad use this one instead.
 
Experienced Elementalist
Joined
May 29, 2008
Messages
241
Reaction score
0
Re: [Small Release] Reset Map on logout

if i do this:
Code:
if (map == bossmapid1 || bossmapid2 || bossmapid3) {
	ps.setInt(20, 100000000);
} else {
	ps.setInt(20, map.getId());
}

will it only make those people who relog in boss maps reset their maps to 100000000 (henesys) ?
 
Newbie Spellweaver
Joined
Jun 20, 2008
Messages
43
Reaction score
0
Re: [Small Release] Reset Map on logout

I can see this really useful for when people try to relog inside a boss map. And to thegamer1907, I'll test it out and see if it works.

Edit: The code you provided doesn't compile correctly. How do you define the bossmap properly?

Edit: So here's what I've got. I'm testing it right now. Tell me if there's a better way to set up the if-and-else statements. I'm still pretty new at this.

Code:
			if (map == null) {
				ps.setInt(20, 100000000);
			} else if (mapid == 240060200) {
				ps.setInt(20, 100000000);
			} else if (mapid == 280030000) {
				ps.setInt(20, 100000000);
			} else {
				ps.setInt(20, map.getId());
			}
 
Newbie Spellweaver
Joined
May 25, 2008
Messages
98
Reaction score
0
Re: [Small Release] Reset Map on logout

Seem's useless. It's like saying you logged out so now you start on MapleIsland.


pointless.
 
Banned
Banned
Joined
Sep 25, 2006
Messages
295
Reaction score
1
Re: [Small Release] Reset Map on logout

Useless, just like you in the real world?
 
Back?
Loyal Member
Joined
Apr 17, 2008
Messages
540
Reaction score
19
Re: [Small Release] Reset Map on logout

ty so much for all your releases airflow now a quick question can u code for my server im willing to pay u later on after i pay out dedicated for each month ill pay u if so pm me or

sinisterx12345@hotmail.com

or

sinisterx543
 
IHF
Joined
Apr 7, 2008
Messages
312
Reaction score
0
Re: [Small Release] Reset Map on logout

For those who wants GMS type (For example, When u DC in Zakum altar, you will be automatically send to El Nath). try this
In MapleCharacter.java, find
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);
Replace it 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);
            }
Compile and you're done
Credits:akakori
 
Back?
Loyal Member
Joined
Apr 17, 2008
Messages
540
Reaction score
19
Re: [Small Release] Reset Map on logout

thanks dude i will definitly use this on my server ppl complain bout zakum place =p
 
Newbie Spellweaver
Joined
Jul 9, 2004
Messages
6
Reaction score
0
Re: [Small Release] Reset Map on logout

thanks for the release, i'll be using this when i get home.

::OFF TOPIC::
are you the same airflow from zu online?
 
Banned
Banned
Joined
Sep 25, 2006
Messages
295
Reaction score
1
Re: [Small Release] Reset Map on logout

Yes I am from Zu Online, 180 SW ftw.
 
Master Summoner
Loyal Member
Joined
Apr 27, 2008
Messages
596
Reaction score
0
Re: [Small Release] Reset Map on logout

Its not a small release, this becomes helps to some servers.
 
Junior Spellweaver
Joined
Sep 27, 2006
Messages
195
Reaction score
1
Re: [Small Release] Reset Map on logout

For those who wants GMS type (For example, When u DC in Zakum altar, you will be automatically send to El Nath). try this
In MapleCharacter.java, find
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);
Replace it 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);
            }
Compile and you're done
Credits:akakori

Thanks You,I like That,Dun want Give People DC at boss map haha:winky:.GOOD JOB
 
Newbie Spellweaver
Joined
Jul 9, 2004
Messages
6
Reaction score
0
Re: [Small Release] Reset Map on logout

Yes I am from Zu Online, 180 SW ftw.

haha nice to see you here! im wizz the Sw from xun, prolly your arch enemy for that game, since im the top sw for my faction.

anyways, it's nice to see you here helping out on maple servers lol
 
Banned
Banned
Joined
Sep 25, 2006
Messages
295
Reaction score
1
Re: [Small Release] Reset Map on logout

haha nice to see you here! im wizz the Sw from xun, prolly your arch enemy for that game, since im the top sw for my faction.

anyways, it's nice to see you here helping out on maple servers lol

I tried talking Tina into selling me the source for Zu but she wouldn't have it..
 
Status
Not open for further replies.
Back
Top