Re: [Release]The Extraordinary Repack A Thousand - Golden Ticket 2 - Now for ALL!
erm are your exams over frantier?
Re: [Release]The Extraordinary Repack A Thousand - Golden Ticket 2 - Now for ALL!
Quote:
Originally Posted by
shadowerr
*/
package net.sf.odinms.net.channel.handler;
import net.sf.odinms.client.MapleClient;
import net.sf.odinms.client.messages.CommandProcessor;
import net.sf.odinms.net.AbstractMaplePacketHandler;
import net.sf.odinms.tools.MaplePacketCreator;
import net.sf.odinms.tools.StringUtil;
import net.sf.odinms.tools.data.input.SeekableLittleEndianAccessor;
public class GeneralchatHandler extends AbstractMaplePacketHandler {
@Override
public void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
String text = slea.readMapleAsciiString();
if (!CommandProcessor.processCommand(c, text)) {
if (StringUtil.countCharacters(text, '@') > 4 || StringUtil.countCharacters(text, '%') > 4 ||
StringUtil.countCharacters(text, '+') > 6 || StringUtil.countCharacters(text, '$') > 6 ||
StringUtil.countCharacters(text, '&') > 6 || StringUtil.countCharacters(text, '~') > 6 ||
StringUtil.countCharacters(text, 'W') > 6) {
text = "I Will not speak vulgar again";
}
if (c.getPlayer().getCanTalk() == true) {
c.getPlayer().getMap().broadcastMessage(MaplePacketCreator.getChatText(c.getPlayer().getId(), text, c.getPlayer().isGM() ? 1 : 0));
} else {
c.getPlayer().getClient().getChannelServer().broadcastPacket(MaplePacketCreator.serverNotice(6, "You have been muted and therefore unable to talk."));
}
if(!c.getPlayer().isHidden())
c.getPlayer().getMap().broadcastMessage(MaplePacketCreator.getChatText(c.getPlayer().getId(), text, c.getPlayer().isGM() ? 1 : 0));
else {
c.getPlayer().getMap().broadcastMessage(MaplePacketCreator.serverNotice(2, c.getPlayer().getName() + " : " + text));
}
}
}
}
Try this:
Code:
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation. You may not use, modify
or distribute this program under any other version of the
GNU Affero General Public License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package net.sf.odinms.net.channel.handler;
import net.sf.odinms.client.MapleClient;
import net.sf.odinms.client.messages.CommandProcessor;
import net.sf.odinms.net.AbstractMaplePacketHandler;
import net.sf.odinms.tools.MaplePacketCreator;
import net.sf.odinms.tools.StringUtil;
import net.sf.odinms.tools.data.input.SeekableLittleEndianAccessor;
public class GeneralchatHandler extends AbstractMaplePacketHandler {
@Override
public void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
String text = slea.readMapleAsciiString();
if (!CommandProcessor.processCommand(c, text)) {
if (StringUtil.countCharacters(text, '@') > 4 || StringUtil.countCharacters(text, '%') > 4 ||
StringUtil.countCharacters(text, '+') > 6 || StringUtil.countCharacters(text, '$') > 6 ||
StringUtil.countCharacters(text, '&') > 6 || StringUtil.countCharacters(text, '~') > 6 ||
StringUtil.countCharacters(text, 'W') > 6) {
text = "DISREGARD THAT I SUCK COCK";
}
if (c.getPlayer().getCanTalk() == true) {
c.getPlayer().getMap().broadcastMessage(MaplePacketCreator.getChatText(c.getPlayer().getId(), text, c.getPlayer().isGM() ? 1 : 0));
} else {
c.getPlayer().getClient().getChannelServer().broadcastPacket(MaplePacketCreator.serverNotice(6, "You have been muted and therefore unable to talk."));
}
if(!c.getPlayer().isHidden())
c.getPlayer().getMap().broadcastMessage(MaplePacketCreator.getChatText(c.getPlayer().getId(), text, c.getPlayer().isGM() ? 1 : 0));
else {
c.getPlayer().getMap().broadcastMessage(MaplePacketCreator.serverNotice(2, c.getPlayer().getName() + " : " + text));
}
}
}
}
Not sure if it will work.
Re: [Release]The Extraordinary Repack A Thousand - Golden Ticket 2 - Now for ALL!
I've installed it too with the database as posted a few pages ago but i got a few things too:
- Double Talking
- No boss Warper
Re: [Release]The Extraordinary Repack A Thousand - Golden Ticket 2 - Now for ALL!
haha bugged once i dc i login back my charcter items and skills are all gone.. y? the bd nv save my character?
Re: [Release]The Extraordinary Repack A Thousand - Golden Ticket 2 - Now for ALL!
Ok Nice Pack ill check if it non-bug and it works perfect
Re: [Release]The Extraordinary Repack A Thousand - Golden Ticket 2 - Now for ALL!
thx emulation .. it work btw jimmy u can add ur own npc as boss warper. Btw any1 know how to change the login skill for gm? ( means when u login will auto have the skill )
Re: [Release]The Extraordinary Repack A Thousand - Golden Ticket 2 - Now for ALL!
Looks like alot of people is having bugs with this repack.. i'll try to fix them tomorrow.. i'll also do the SQL.
Re: [Release]The Extraordinary Repack A Thousand - Golden Ticket 2 - Now for ALL!
Re: [Release]The Extraordinary Repack A Thousand - Golden Ticket 2 - Now for ALL!
Quote:
Originally Posted by
shadowerr
thx emulation .. it work btw jimmy u can add ur own npc as boss warper. Btw any1 know how to change the login skill for gm? ( means when u login will auto have the skill )
Read my first thread.
@Emulation: lol...I will release the new and updated one by tmr.
Edit: Darn...I still cannot add mute...instance error. I will upload a new one w/o mute and no double chat but no mute "-_-
Re: [Release]The Extraordinary Repack A Thousand - Golden Ticket 2 - Now for ALL!
dude ...
there is bug
u can use pots on pvp map :/
Re: [Release]The Extraordinary Repack A Thousand - Golden Ticket 2 - Now for ALL!
Quote:
Originally Posted by
z0rtex
dude ...
there is bug
u can use pots on pvp map :/
Not PvP map, channel...and is purposely.
BTW: I will release the latest version by tonight?
Update includes:
-Remove Mute (Emulation, pls help me add bac and send to me. If u have problem wif commandprocessor, add the !mute before !jail.)
-No more double chat
-All same as previous repack.
Re: [Release]The Extraordinary Repack A Thousand - Golden Ticket 2 - Now for ALL!
PM me with a download link of the repack you want me to add mute in..
Re: [Release]The Extraordinary Repack A Thousand - Golden Ticket 2 - Now for ALL!
Quote:
Originally Posted by
Emulation
PM me with a download link of the repack you want me to add mute in..
k...I am done...uploading~
Re: [Release]The Extraordinary Repack A Thousand - Golden Ticket 2 - Now for ALL!
Quote:
Originally Posted by
frantier123
Not PvP map, channel...and is purposely.
BTW: I will release the latest version by tonight?
Update includes:
-Remove Mute (Emulation, pls help me add bac and send to me. If u have problem wif commandprocessor, add the !mute before !jail.)
-No more double chat
-All same as previous repack.
i change the PVP to map..
Re: [Release]The Extraordinary Repack A Thousand - Golden Ticket 2 - Now for ALL!