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:
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:
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:
So the full code will look like this:
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
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);
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);
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);
}
'nd sorry for my bad grammar, hope i could help anyway, Euden
Last edited by a moderator: