isDonor Giving people who donate their own set of commands isMow=isdonate

Page 1 of 3 123 LastLast
Results 1 to 25 of 62
  1. #1
    Account Upgraded | Title Enabled! gorogon0 is offline
    MemberRank
    Jun 2008 Join Date
    Hawaii...Location
    350Posts

    isDonor Giving people who donate their own set of commands isMow=isdonate

    [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...
    Code:
    name: Mow
    type: tinyint
    length: 1
    decimals:0
    allow null: [] (blank)
    open maplecharacter.java and find
    Code:
    private boolean gm;
    and put this under it

    Code:
    private boolean Mow;
    GOOD! now find this:

    Code:
    ret.gm = rs.getInt("gm") == 0 ? false : true;
    and put this under it


    Code:
    ret.Mow = rs.getInt("Mow") == 0 ? false : true;
    GOOD! now find this

    Code:
    public boolean isGM() {
    		return gm;
    	}
    and put this under it

    Code:
     public boolean isMow() {
                 return Mow;
         }
    GREAT now we can get outta maplecharacter.java and move into command processor.java (dont forget to save)

    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

    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) {
    stop! dont delete anything after '@') {



    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-
    Last edited by gorogon0; 23-07-08 at 08:16 AM.


  2. #2
    Account Upgraded | Title Enabled! gorogon0 is offline
    MemberRank
    Jun 2008 Join Date
    Hawaii...Location
    350Posts

    Re: [release] isMow (Made by me so you know it wont dissapoint)

    Enjoy.


    use it for co-gms sure!
    use it for friends sure!
    use it for noobs naw...
    use it for palyers who have played for 12941251 seconds in a row sure!
    idc! just have fun? sure!

  3. #3
    Account Upgraded | Title Enabled! tensyume is offline
    MemberRank
    Apr 2008 Join Date
    Boredom, U.S.A.Location
    264Posts

    Re: [release] isMow (Made by me so you know it wont dissapoint)

    so it's like,,,,,,,, Co-GM thingy?

  4. #4
    Proficient Member Hotoshii is offline
    MemberRank
    Jul 2008 Join Date
    SoCalLocation
    180Posts

    Re: [release] isMow (Made by me so you know it wont dissapoint)

    You.. are.. awesome! Thank you! And it's chill, im not planning to use it for donators. I don't even ask for donations in the first place! LOL. thank you! Kudos to you, qwerty.

  5. #5
    Account Upgraded | Title Enabled! gorogon0 is offline
    MemberRank
    Jun 2008 Join Date
    Hawaii...Location
    350Posts

    Re: [release] isMow (Made by me so you know it wont dissapoint)

    now donate to me! cuz its not illegal for me to make money off of making illegal codes!!

    (im jking)

  6. #6
    Developer Power klyster is offline
    MemberRank
    Apr 2008 Join Date
    242Posts

    Re: [release] isMow (Made by me so you know it wont dissapoint)

    mow people is out! xDDDDDDDDDD!!!!

  7. #7
    Account Upgraded | Title Enabled! iFLON is offline
    MemberRank
    May 2008 Join Date
    518Posts

    Re: [release] isMow (Made by me so you know it wont dissapoint) lvl2gm? c0-gm? YES

    what is mow? o-o

  8. #8
    Account Upgraded | Title Enabled! gorogon0 is offline
    MemberRank
    Jun 2008 Join Date
    Hawaii...Location
    350Posts

    Re: [release] isMow (Made by me so you know it wont dissapoint) lvl2gm? c0-gm? YES

    its like meow without an e

  9. #9

    Re: [release] isMow (Made by me so you know it wont dissapoint) lvl2gm? c0-gm? YES

    What do I do if I don't have this:

    private boolean gm;

    in maplecharacter.java?

    where should I add it?

  10. #10
    Valued Member mbaa24 is offline
    MemberRank
    Jun 2008 Join Date
    USALocation
    127Posts

    Re: [release] isMow (Made by me so you know it wont dissapoint) lvl2gm? c0-gm? YES

    Quote Originally Posted by gorogon0 View Post
    its like meow without an e
    lol.

    Nice release. I'm probably going to use this so thanks.

  11. #11
    Valued Member BloodVanille is offline
    MemberRank
    May 2007 Join Date
    125Posts

    Re: [release] isMow (Made by me so you know it wont dissapoint) lvl2gm? c0-gm? YES

    Quote Originally Posted by gorogon0 View Post
    its like meow without an e
    DUDE THIS IS A COOL RELEASE. And you were funny lawlzlorlolocod!

    Love it~

  12. #12
    Account Upgraded | Title Enabled! airflow0 is offline
    MemberRank
    Sep 2006 Join Date
    600Posts

    Re: [release] isMow (Made by me so you know it wont dissapoint) lvl2gm? c0-gm? YES

    Just use the already existing hasGMLevel like intended... -,-

  13. #13
    Member alex_soh is offline
    MemberRank
    Jul 2008 Join Date
    SingaporeLocation
    77Posts

    Re: [release] isMow (Made by me so you know it wont dissapoint) lvl2gm? c0-gm? YES

    Quote Originally Posted by deltahunter View Post
    What do I do if I don't have this:

    private boolean gm;

    in maplecharacter.java?

    where should I add it?
    most likely u have this
    PHP Code:
    private int gmLevel
    u might wanna chk this out
    http://forum.ragezone.com/showthread.php?t=433591

  14. #14

    Re: [release] isMow (Made by me so you know it wont dissapoint) lvl2gm? c0-gm? YES

    hmmmm, interesting......i use the old command system but i still have "private int gmLevel; "

    sucks, oh well.....didn't really need GM levels anyways

  15. #15
    Proficient Member dEMI is offline
    MemberRank
    Jul 2008 Join Date
    HollywoodLocation
    150Posts

    Re: [release] isMow (Made by me so you know it wont dissapoint) lvl2gm? c0-gm? YES

    i really dont get this part

    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) == '#' && Mow) {

  16. #16
    Valued Member LiTAL1 is offline
    MemberRank
    May 2008 Join Date
    I'm not sure..Location
    106Posts

    Re: [release] isMow (Made by me so you know it wont dissapoint) lvl2gm? c0-gm? YES

    thanks <3 i like ur releases

  17. #17
    Account Upgraded | Title Enabled! GMLooney is offline
    MemberRank
    Mar 2008 Join Date
    New YorkLocation
    298Posts

    Re: [release] isMow (Made by me so you know it wont dissapoint) lvl2gm? c0-gm? YES

    Nice! I was looking for something like this except that I wish for it to be Divided into EventGM's and Regular GM's. GM's cannot do Event GM Commands such as !NXSlimes and Event GM's cannot do GM Commands such as !ban <Charname> <Reason>

    If you can help me put this into my server this will be GREAT! Also I would like to make it so that we keep the GM thing and just use the GM Value or 2 or something so that if the GM Value is 2 they can do GM Event Commands. Thanks and Have a Great Day!

  18. #18
    Account Upgraded | Title Enabled! zander145 is offline
    MemberRank
    Apr 2008 Join Date
    Norfolk, VALocation
    966Posts

    Re: [release] isMow (Made by me so you know it wont dissapoint) lvl2gm? c0-gm? YES

    Its like at any time i expected to read, "Stop!, hammer time!"

    Anyway, very nice release! I believe that if anybody really wanted to, they could change mow to something else?

  19. #19
    Account Upgraded | Title Enabled! GMLooney is offline
    MemberRank
    Mar 2008 Join Date
    New YorkLocation
    298Posts

    Re: [release] isMow (Made by me so you know it wont dissapoint) lvl2gm? c0-gm? YES

    Quote Originally Posted by zander145 View Post
    Its like at any time i expected to read, "Stop!, hammer time!"

    Anyway, very nice release! I believe that if anybody really wanted to, they could change mow to something else?
    Err Thats was Random...but like everyone on this forum is random T_T

  20. #20
    Member alex_soh is offline
    MemberRank
    Jul 2008 Join Date
    SingaporeLocation
    77Posts

    Re: [release] isMow (Made by me so you know it wont dissapoint) lvl2gm? c0-gm? YES

    Quote Originally Posted by deltahunter View Post
    hmmmm, interesting......i use the old command system but i still have "private int gmLevel; "

    sucks, oh well.....didn't really need GM levels anyways
    well somehow the person who make the repack(sean's repack is 1 that i noe of) that u use, remove the new command system and replace it with the old one(i have no idea y they do it)
    u might want to ask the person who make ur repack abt how to revert to new system.

  21. #21
    Valued Member Bangala is offline
    MemberRank
    Jul 2008 Join Date
    142Posts

    Re: [release] isMow (Made by me so you know it wont dissapoint) lvl2gm? c0-gm? YES

    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) == '#' && Mow) {
    i really really dont understand @.@

  22. #22
    Valued Member godlike2328 is offline
    MemberRank
    May 2008 Join Date
    MalaysiaLocation
    138Posts

    Re: [release] isMow (Made by me so you know it wont dissapoint) lvl2gm? c0-gm? YES

    what is this for lol?

  23. #23
    .Team of One. XenZy is offline
    MemberRank
    Jul 2008 Join Date
    NeW YoRk! :]Location
    374Posts

    Re: [release] isMow (Made by me so you know it wont dissapoint) lvl2gm? c0-gm? YES

    Quote Originally Posted by Bangala View Post
    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) == '#' && Mow) {
    i really really dont understand @.@
    You need to fix some of the spacing with it, or you'll get some errors.. Other than that it works fine.
    EDIT: to the author: you missed something on the
    Code:
    if (line.charAt(0) == '!' && isGM  line.charAt(0) == '#' && Mow) {
    to fix:
    Code:
    if (line.charAt(0) == '!' && isGM ||line.charAt(0) == '#' && Mow) {

  24. #24
    Account Upgraded | Title Enabled! darkXmatt is offline
    MemberRank
    Jun 2008 Join Date
    Hong KongLocation
    327Posts

    Re: [release] isMow (Made by me so you know it wont dissapoint) lvl2gm? c0-gm? YES

    i see, you changed a few words from the last time i saw it*cough*
    xP
    anyways, its now public, dam XD

    nice release :)

    ~dXm

  25. #25
    Λκαяυz føяeνeя Roamer is offline
    MemberRank
    Jun 2008 Join Date
    215Location
    3,203Posts

    Re: [release] isMow (Made by me so you know it wont dissapoint) lvl2gm? c0-gm? YES

    nice releaseeee!!!

    o btw borat im dating ur sister



Page 1 of 3 123 LastLast

Advertisement