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!

[Fix]How to fix FM warp to not get back to Perion | Random Sources

Newbie Spellweaver
Joined
Nov 10, 2008
Messages
10
Reaction score
0
So here, cuz some ppl said they got the bug, that when they want to go back from FM to where they were before, they get teleported to Perion.

To fix this, first of all, look for the EnterMTSHandler.java under net.server.handerls.channel and search within this for:
Code:
chr.changeMap(910000000);
this is the command tpo bring ppl to the fm.

so know to save their old postition before they goto the fm change it to this:
Code:
c.getPlayer().saveLocation("FREE_MARKET");
chr.changeMap(910000000);
Your saveLocation command could be a bit different whitin these two: ("blabla")

so ok, now it saves where they were before. but when a noob presses the trade button once more when he is already at the fm, he has to leave twice and will get still back to perion.

to fix this we have to check if a user is already at tha fm or not:
Code:
if(c.getPlayer().getMapId() == 910000000){
chr.dropMessage("You're already at the FreeMarket, Noob!");
}

So the full code will look like this:
Code:
		if(c.getPlayer().getMapId() == 910000000){
                            chr.dropMessage("You're already at the FreeMarket, Noob!");
                        } else {
                            c.getPlayer().saveLocation("FREE_MARKET");
                            chr.changeMap(910000000);
                        }
i tested this way with OrpheusMS repack, but it has to work with other sources and repacks, too

'nd sorry for my bad grammar, hope i could help anyway, Euden
 
Last edited by a moderator:
Newbie Spellweaver
Joined
Nov 10, 2008
Messages
10
Reaction score
0
Re: Howta fix FM warp to not get back to Perion | Random Sources

Oh, i didnt know that. but developer cas make an@fm command with the same source :) so it will still work because nexon is too lazy to remove old codes from the wz's
 
Newbie Spellweaver
Joined
Nov 10, 2008
Messages
10
Reaction score
0
true story, bro. and i hav same oppinion like sunny
 
Skilled Illusionist
Joined
Jul 3, 2011
Messages
372
Reaction score
18
teleport to perion when trying warp to fm?

maybe the "Murial" is working? haha
 
Newbie Spellweaver
Joined
Nov 10, 2008
Messages
10
Reaction score
0
teleport to perion when trying warp to fm?

maybe the "Murial" is working? haha

If ya dunno believe me, dl orpheus ms repack, click trade, and then leave the fm: you will be in perion.
 
Back
Top