Ok first of all.. what's that?
You can choose what message it will show on the notice.
First, open NPCCoversationmanager.java,
and add this.
after that, save and compile.Code:public void broadcastMessage(int type, String message) { try { getPlayer().getClient().getChannelServer().getWorldInterface().broadcastMessage(null, MaplePacketCreator.serverNotice(type, message).getBytes()); } catch (RemoteException e) { c.getChannelServer().reconnectWorld(); } }
now choose a npc and add it into it.
save and run your server, have fun.Code:// Made by king321123 / istories. importPackage(net.sf.odinms.client); var status = 0; function start() { status = -1; action(1, 0, 0); } function action(mode, type, selection) { if (mode == -1) { cm.dispose(); } else { if (mode == 0) { cm.dispose(); return; } if (mode == 1) status++; else status--; if (status == 0) { cm.sendGetText("Hey, #h #. #bAdmin GiL#k has made a function that you can make an announcment with what YOU choose. please enter your following annoucment.\r\n\r\n"); } else if (status == 1) { cm.broadcastMessage(6, "[Announcment] " + cm.getText() + ""); cm.sendOk("There you go... #h #."); cm.dispose(); } } } }
:).



Reply With Quote

