[Release] isMow how to give only mow ppls special commands please dont try to use this for people who donate, its illegal,so instead of isDonor, use isMow :)
SOO!
FIRST we need to define what a Mow is right?!!!
go into mysql and add a column in characters,
make it like so...
open maplecharacter.java and findCode:name: Mow type: tinyint length: 1 decimals:0 allow null: [] (blank)
and put this under itCode:private boolean gm;
GOOD! now find this:Code:private boolean Mow;
and put this under itCode:ret.gm = rs.getInt("gm") == 0 ? false : true;
GOOD! now find thisCode:ret.Mow = rs.getInt("Mow") == 0 ? false : true;
and put this under itCode:public boolean isGM() { return gm; }
GREAT now we can get outta maplecharacter.java and move into command processor.java (dont forget to save)Code:public boolean isMow() { return Mow; }
to save you a LOAD of time, i'm just going to give u a bulk of my command processor.java
to replace yours with so replace this whole code here with this one... its been edited and there is no other spot like it so just look for it and replace it
stop! dont delete anything after '@') {Code:public static boolean processCommand(MapleClient c, String line) { return processCommandInternal(c, new ServernoticeMapleClientMessageCallback(c), c.getPlayer().isGM(), c.getPlayer().isMow(), line); } /* (non-Javadoc) * @see net.sf.odinms.client.messages.CommandProcessorMBean#processCommandJMX(int, int, java.lang.String) */ public String processCommandJMX(int cserver, int mapid, String command) { ChannelServer cserv = ChannelServer.getInstance(cserver); if (cserv == null) { return "The specified channel Server does not exist in this serverprocess"; } MapleClient c = new MapleClient(null, null, new MockIOSession()); MapleCharacter chr = MapleCharacter.getDefault(c, 26023); c.setPlayer(chr); chr.setName("/---------jmxuser-------------\\"); // (name longer than maxmimum length) MapleMap map = cserv.getMapFactory().getMap(mapid); if (map != null) { chr.setMap(map); SkillFactory.getSkill(5101004).getEffect(1).applyTo(chr); map.addPlayer(chr); } cserv.addPlayer(chr); MessageCallback mc = new StringMessageCallback(); try { processCommandInternal(c, mc, true, true, command); } finally { if (map != null) { map.removePlayer(chr); } cserv.removePlayer(chr); } return mc.toString(); } /* (non-Javadoc) * @see net.sf.odinms.client.messages.CommandProcessorMBean#processCommandInstance(net.sf.odinms.client.MapleClient, java.lang.String) */ private static boolean processCommandInternal(MapleClient c, MessageCallback mc, boolean isGM, boolean Mow, String line) { MapleCharacter player = c.getPlayer(); Mow = c.getPlayer().isMow(); ChannelServer cserv = c.getChannelServer(); if (line.charAt(0) == '!' && isGM || line.charAt(0) == '@' || line.charAt(0) == '#' && Mow) {
to add in codes for mows to use just copy and paste the command you want them to be able to
use so you will have 2 copies of it and then, change ! to #
ALRIGHT!! WOOHOO
BUT WAIT!!!!!!!
"if you get a "method not found" "cannot find symbol" simply right click on the project and click clean <3 add that to post qwerty"
says eternalms (btw he pwns (a little)) -omg a guy loves meh-


Reply With Quote


