Event Commands

Results 1 to 12 of 12
  1. #1
    Alpha Member Anujan is offline
    MemberRank
    May 2008 Join Date
    Ontario, CanadaLocation
    1,633Posts

    Event Commands

    PHP 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.client.messages.commands;

    import net.sf.odinms.client.MapleCharacter;
    import net.sf.odinms.client.MapleCharacterUtil;
    import net.sf.odinms.client.MapleClient;
    import net.sf.odinms.client.messages.Command;
    import net.sf.odinms.client.messages.CommandDefinition;
    import net.sf.odinms.client.messages.IllegalCommandSyntaxException;
    import net.sf.odinms.client.messages.MessageCallback;
    import net.sf.odinms.server.life.MapleLifeFactory;
    import net.sf.odinms.server.life.MapleMonster;
    import net.sf.odinms.tools.MaplePacketCreator;

    public class 
    EventCommands implements Command {

        private 
    int mobid;

        public 
    void execute(MapleClient cMessageCallback mcString[] splittedthrows ExceptionIllegalCommandSyntaxException {
            
    String yo splitted[0].toLowerCase();
            if (
    yo.equals("!papulatus"))
                
    mobid 8500001;
            else if (
    yo.equals("!jrbalrog"))
                
    mobid 8130100;
            else if (
    yo.equals("!balrog"))
                
    mobid 8150000;
            else if (
    yo.equals("!mushmom"))
                
    mobid 6130101;
            else if (
    yo.equals("!undeadmushmom"))
                
    mobid 6300005;
            else if (
    yo.equals("!bluemushmom"))
                
    mobid 9400205;
            else if (
    yo.equals("!theboss"))
                
    mobid 9400300;
            else if (
    yo.equals("!shark"))
                
    mobid 8150100;
            else if (
    yo.equals("!pianus"))
                
    mobid 8510000;
            else
                
    mobid 0;
            if (
    mobid != 0) {
                
    MapleMonster mob MapleLifeFactory.getMonster(mobid);
                
    c.getPlayer().getMap().spawnMonsterOnGroundBelow(mobc.getPlayer().getPosition());
            }
            if (
    splitted[0].equals("!nxslimes")) {
                for (
    int i 0<= 10i++) {
                    
    MapleMonster mob MapleLifeFactory.getMonster(9400202);
                    
    c.getPlayer().getMap().spawnMonsterOnGroundBelow(mobc.getPlayer().getPosition());
                }
            } else if (
    splitted[0].equals("!bossfamily")) {
                for (
    int i 9400100<= 9400103i++) {
                    
    MapleMonster mob0 MapleLifeFactory.getMonster(i);
                    
    c.getPlayer().getMap().spawnMonsterOnGroundBelow(mob0c.getPlayer().getPosition());
                }
                for (
    int i 9400110<= 9400113i++) {
                    
    MapleMonster mob2 MapleLifeFactory.getMonster(i);
                    
    c.getPlayer().getMap().spawnMonsterOnGroundBelow(mob2c.getPlayer().getPosition());
                }
                for (
    int i 9400121<= 9400122i++) {
                    
    MapleMonster mob2 MapleLifeFactory.getMonster(i);
                    
    c.getPlayer().getMap().spawnMonsterOnGroundBelow(mob2c.getPlayer().getPosition());
                }
                
    MapleMonster mob3 MapleLifeFactory.getMonster(9400300);
                
    c.getPlayer().getMap().spawnMonsterOnGroundBelow(mob3c.getPlayer().getPosition());
            } else if (
    splitted[0].equals("!zakum")) {
                
    MapleMonster mob0 MapleLifeFactory.getMonster(8800000);
                
    c.getPlayer().getMap().spawnFakeMonsterOnGroundBelow(mob0c.getPlayer().getPosition());
                for (
    int i 8800003<= 8800010i++) {
                    
    MapleMonster mob1 MapleLifeFactory.getMonster(i);
                    
    c.getPlayer().getMap().spawnMonsterOnGroundBelow(mob1c.getPlayer().getPosition());
                }
            }
    }

    @
    Override
        
    public CommandDefinition[] getDefinition() {
            return new 
    CommandDefinition[] {
                new 
    CommandDefinition("papulatus"""""5),
                new 
    CommandDefinition("nxslimes"""""5),
                new 
    CommandDefinition("jrbalrog"""""5),
                new 
    CommandDefinition("balrog"""""5),
                new 
    CommandDefinition("bossfamily"""""5),
                new 
    CommandDefinition("mushmom"""""5),
                new 
    CommandDefinition("undeadmushmom"""""5),
                new 
    CommandDefinition("bluemushmom"""""5),
                new 
    CommandDefinition("theboss"""""5),
                new 
    CommandDefinition("shark"""""5),
                new 
    CommandDefinition("pianus"""""5),
                new 
    CommandDefinition("zakum"""""5),
            };
        }

    Have fun.
    Last edited by Anujan; 28-04-09 at 01:57 AM.


  2. #2
    Account Upgraded | Title Enabled! KnightStoryTeam is offline
    MemberRank
    Nov 2008 Join Date
    SOMEWHERE ....WLocation
    239Posts

    Re: Event Commands

    Easy to make but nice realse

  3. #3
    Alpha Member Anujan is offline
    MemberRank
    May 2008 Join Date
    Ontario, CanadaLocation
    1,633Posts

    Re: Event Commands

    It shortens that file so much.
    When I saw it before I was like "what dumbass made this shit."
    I can make it shorter but I'm too lazy to do shit for you guys atm

  4. #4
    Enthusiast nelseyoo is offline
    MemberRank
    May 2008 Join Date
    37Posts

    Re: Event Commands

    is this for npc? sry im noob where i have to usei t?

  5. #5
    Alpha Member Anujan is offline
    MemberRank
    May 2008 Join Date
    Ontario, CanadaLocation
    1,633Posts

    Re: Event Commands

    EventCommands.java
    You don't need to say you're a noob.
    I can figure it out :P

    Edit: gtfo my thread steve ):

  6. #6
    projectNano LightRyuzaki is offline
    MemberRank
    Sep 2008 Join Date
    TexasLocation
    338Posts

    Re: Event Commands

    Anujan love you lol <3333333 .
    PS. Do you have aim? o-o

  7. #7
    Alpha Member Anujan is offline
    MemberRank
    May 2008 Join Date
    Ontario, CanadaLocation
    1,633Posts

    Re: Event Commands

    o-o
    Nope just MSN.

  8. #8
    Novice Fluxx is offline
    MemberRank
    Aug 2009 Join Date
    1Posts

    Re: Event Commands

    where do you get the clyent cuz i downloded it form you and it said: This application has failed to start because wzmss.dll was not found. Re-installing the application may fix this problem so i did with your clyent and V 62

  9. #9
    Mother effin' clouds SaintsIan is offline
    MemberRank
    Apr 2008 Join Date
    fyrechat.netLocation
    2,809Posts

    Re: Event Commands

    This script contains OmgWhatTheBuckYouTube.comPornHub viruses.

  10. #10
    Account Upgraded | Title Enabled! Jawsh is offline
    MemberRank
    Jul 2009 Join Date
    PennsylvaniaLocation
    280Posts

    Re: Event Commands

    Quote Originally Posted by SaintsIan View Post
    This script contains OmgWhatTheBuckYouTube.comPornHub viruses.
    Holy cow! Thanks for letting us know. I don't want my server to get a virus :{

  11. #11
    while(true) spam(); kevintjuh93 is offline
    MemberRank
    Jun 2008 Join Date
    The NetherlandsLocation
    4,119Posts

    Re: Event Commands

    Anujan add me on msn : kevin_kal@hotmail.com

    if (c.getPlayer().getMapId() == 109020001 && !c.getPlayer().isGM()) {
    c.getPlayer().canTalk(false);
    }

    this in generalchathandler.java is pro :3

  12. #12
    Alpha Member Anujan is offline
    MemberRank
    May 2008 Join Date
    Ontario, CanadaLocation
    1,633Posts

    Re: Event Commands

    Quote Originally Posted by Fluxx View Post
    where do you get the clyent cuz i downloded it form you and it said: This application has failed to start because wzmss.dll was not found. Re-installing the application may fix this problem so i did with your clyent and V 62
    What client? It's a command file O_o



Advertisement