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 (Apply only to your boss maps)

Experienced Elementalist
Joined
May 29, 2008
Messages
241
Reaction score
0
ok what this does is actually letting u choose the maps where the player relog and gets resetted. its actually airflow0's reset map method but im just showing you how to edit it to your desired map. im sure you dont want everyone to complain that they end up at same map over and over when changing chnl. i know its not really a release but nevertheless it may be of some help to some of you.
Credits: airflow0's for his reset map method
me for editing it and posting.

in MapleCharacter.java, look for :

Code:
if (map == null) {
				ps.setInt(20, 0);
			} else {
				ps.setInt(20, map.getId());
			}

change it to:

Code:
if (map.getId() ==[COLOR="#ff0000"] bossmap1here[/COLOR] || map.getId() == [COLOR="#ff0000"]bossmap2here[/COLOR] || map.getId() == [COLOR="#ff0000"]bossmap3here[/COLOR]) {
				ps.setInt(20, [COLOR="Red"][COLOR="#ff0000"]yourdesiredmaphere[/COLOR][/COLOR]);
			} else {
				ps.setInt(20, map.getId());
			}

change those in red to maps of your choice. for example:

Code:
if (map.getId() ==[COLOR="Red"] 280030000[/COLOR] || map.getId() == [COLOR="#ff0000"]220080001[/COLOR] || map.getId() == [COLOR="#ff0000"]240050400[/COLOR]) {
				ps.setInt(20, [COLOR="Blue"]100000000[/COLOR]);
			} else {
				ps.setInt(20, map.getId());
			}

this is mine. as you see, those in red are map id off boss maps and the code in blue is the code in henesys. so if a personr elogs in those boss maps i specified, they will get warped to henesys. but other than that, they will remain on the same map they are last at. if you want to add more maps u just add more

Code:
|| map.getId() == bossmapidhere

into the bracket
 
Experienced Elementalist
Joined
Jun 22, 2008
Messages
264
Reaction score
0
Re: [Small Release] RESET MAP ON LOGOUT (Apply only to your boss maps)

woot its for odin : )

nice release, a thinkable use.
Tyy
~dXm
 
IHF
Joined
Apr 7, 2008
Messages
312
Reaction score
0
Re: [Small Release] RESET MAP ON LOGOUT (Apply only to your boss maps)

You guys can try this too ( It's much the same i suppose o.o )
Code:
if (channelserver) {
            MapleMapFactory mapFactory = ChannelServer.getInstance(client.getChannel()).getMapFactory();
            ret.map = mapFactory.getMap(ret.mapid);
            if (ret.map == [URL="http://javascript%3Cb%3E%3C/b%3E:void%280%29"]null[/URL]) { //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);
            }
Place this in MapleCharacter.java
CREDITS:akakori
 
Junior Spellweaver
Joined
Apr 6, 2008
Messages
140
Reaction score
0
Re: [Small Release] RESET MAP ON LOGOUT (Apply only to your boss maps)

1 Step closer to GMS gr8888 release gonna use it for sure xD
 
Junior Spellweaver
Joined
Apr 14, 2008
Messages
126
Reaction score
0
Re: [Release] RESET MAP ON LOGOUT (Apply only to your boss maps)

is it only me or it disables character creation?
 
Legendary Battlemage
Joined
May 23, 2008
Messages
628
Reaction score
4
Re: [Release] RESET MAP ON LOGOUT (Apply only to your boss maps)

Old and no PoopStory...
You either messed up your maplecharacter.java or missed out an SQL for maplecharacter
 
Back
Top