!bomb Commands

Page 1 of 3 123 LastLast
Results 1 to 15 of 31
  1. #1
    Valued Member Vulpes is offline
    MemberRank
    Sep 2009 Join Date
    Hong KongLocation
    114Posts

    !bomb Commands

    Lol. I just made a few variations of this command and decided to group them in this thread. Here they are:

    !bomb - spawns a bomb at your position

    Syntax : !bomb

    Spoiler:
    Code:
    } else if (splitted[0].equalsIgnoreCase("!bomb")) {
                        player.getMap().spawnMonsterOnGroudBelow(MapleLifeFactory.getMonster(9300166), player.getPosition());


    !bombplayer - spawns a bomb at a specific player's location

    Syntax : !bombplayer <PlayerIGN>

    Spoiler:
    Code:
           } else if (splitted[0].equalsIgnoreCase("!bombplayer")) {
               if (splitted.length == 1) {
                        MapleCharacter victim = cserv.getPlayerStorage().getCharacterByName(splitted[1]);
                        victim.getMap().spawnMonsterOnGroudBelow(MapleLifeFactory.getMonster(9300166), victim.getPosition());
               } else {
                   player.getMap().spawnMonsterOnGroudBelow(MapleLifeFactory.getMonster(9300166), player.getPosition());
               }



    !bombmap - spawns a bomb at every player's location in the map

    Syntax : !bombmap

    Spoiler:
    Code:
           } else if (splitted[0].equalsIgnoreCase("!bombmap")) {
                for (MapleCharacter map : player.getMap().getCharacters()) {
                    if (map != null && map != player) {
                        map.getMap().spawnMonsterOnGroudBelow(MapleLifeFactory.getMonster(9300166), map.getPosition());
                    }
                }


    !bombitems - replaces all the items in the map with bombs xD

    Syntax : !bombitems

    Spoiler:
    Code:
            } else if (splitted[0].equalsIgnoreCase("!bombitems")) {
                MapleMap map = player.getMap();
                double range = Double.POSITIVE_INFINITY;
                java.util.List<MapleMapObject> items = map.getMapObjectsInRange(player.getPosition(), range, Arrays.asList(MapleMapObjectType.ITEM));
                for (MapleMapObject itemmo : items) {
                    int mob;
                    mob = 9300166;
                    player.getMap().spawnMonsterOnGroudBelow(MapleLifeFactory.getMonster(mob), itemmo.getPosition());
                    map.removeMapObject(itemmo);
                    map.broadcastMessage(MaplePacketCreator.removeItemFromMap(itemmo.getObjectId(), 0, player.getId()));
                }
                mc.dropMessage("You have spawned " + items.size() + " bombs on the ground.");


    Thanks ongdeetz for helping me test out !bombitems even though the bombs didn't explode for you!

    If the bombs aren't exploding for you, here's a fix (Credits to GoldenKevin):
    Spoiler:

    Replace the contents of 9300166.img.xml with the code:
    Code:
    <int name="noFlip" value="1"/>
    <imgdir name="selfDestruction">
    <int name="action" value="4"/>
    <int name="removeAfter" value="0"/>
    </imgdir>
    <imgdir name="loseItem">
    <imgdir name="0">
    <int name="id" value="4031868"/>
    <int name="prop" value="40"/>
    <int name="x" value="5"/>
    </imgdir>
    </imgdir>
    <int name="invincible" value="1"/>
    <int name="hideHP" value="1"/>
    <int name="hideName" value="1"/>

    Have fun using them xD.
    Last edited by Vulpes; 16-10-09 at 03:34 PM.


  2. #2
    Account Upgraded | Title Enabled! ongdeetz is offline
    MemberRank
    Mar 2009 Join Date
    SGLocation
    339Posts

    Re: !bomb Commands

    the bomb wont explode after i spawn it

    i used !bombitems

  3. #3
    Valued Member Vulpes is offline
    MemberRank
    Sep 2009 Join Date
    Hong KongLocation
    114Posts

    Re: !bomb Commands

    Some servers don't have the monsterbombhandler.java . Sorry. I'll try to come up with a fix ASAP.

  4. #4
    Account Upgraded | Title Enabled! ongdeetz is offline
    MemberRank
    Mar 2009 Join Date
    SGLocation
    339Posts

    Re: !bomb Commands

    k tys

  5. #5
    Valued Member Vulpes is offline
    MemberRank
    Sep 2009 Join Date
    Hong KongLocation
    114Posts

    Re: !bomb Commands

    Lol. Gimme a while. Piano practice xD Diploma ,man! Exam next month :P

  6. #6
    Account Upgraded | Title Enabled! ongdeetz is offline
    MemberRank
    Mar 2009 Join Date
    SGLocation
    339Posts

    Re: !bomb Commands

    Take your time

  7. #7
    Member ForceStory is offline
    MemberRank
    Sep 2009 Join Date
    United KingdomLocation
    75Posts

    cool Re: !bomb Commands

    nice commands

  8. #8
    Infraction Baɴɴed holthelper is offline
    MemberRank
    Apr 2008 Join Date
    1,765Posts

    Re: !bomb Commands

    Quote Originally Posted by Vulpes View Post
    Some servers don't have the monsterbombhandler.java . Sorry. I'll try to come up with a fix ASAP.
    Code:
    package net.sf.odinms.net.channel.handler;
    
    import net.sf.odinms.client.MapleClient;
    import net.sf.odinms.server.maps.MapleMap;
    import net.sf.odinms.server.life.MapleMonster;
    import net.sf.odinms.tools.data.input.SeekableLittleEndianAccessor;
    
    
    public class MonsterBombHandler extends AbstractMaplePacketHandler {
        @Override
        public void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
            MapleMap map = c.getPlayer().getMap();
            MapleMonster monster = map.getMonsterByOid(slea.readInt());
    
            if (c.getPlayer().isAlive() && monster != null && (monster.getId() == 8500003 || monster.getId() == 8500004)) {
                map.killMonster(monster, c.getPlayer(), false);
            }
        }
    }
    *i do not know if this will work in 62. i just edited the imports.

  9. #9
    Account Upgraded | Title Enabled! ongdeetz is offline
    MemberRank
    Mar 2009 Join Date
    SGLocation
    339Posts

    Re: !bomb Commands

    This my bombhandler found in my repack
    how do i edit it for it to work:ballchain:
    PHP Code:
    package net.sf.odinms.net.channel.handler;

    import net.sf.odinms.client.MapleClient;
    import net.sf.odinms.client.anticheat.CheatingOffense;
    import net.sf.odinms.net.AbstractMaplePacketHandler;
    import net.sf.odinms.server.life.MapleMonster;
    import net.sf.odinms.server.maps.MapleMap;
    import net.sf.odinms.tools.MaplePacketCreator;
    import net.sf.odinms.tools.data.input.SeekableLittleEndianAccessor;

    public class 
    MonsterBombHandler extends AbstractMaplePacketHandler {

        @
    Override
        
    public void handlePacket(SeekableLittleEndianAccessor sleaMapleClient c) {
            
    int oid slea.readInt();

            
    MapleMap map c.getPlayer().getMap();
            
    MapleMonster monster map.getMonsterByOid(oid);

            if (!
    c.getPlayer().isAlive() || monster == null) {
                return;
            }

            switch (
    monster.getId()) {
                case 
    8500003:
                case 
    8500004:
                    
    monster.getMap().broadcastMessage(MaplePacketCreator.killMonster(monster.getObjectId(), 4));
                    
    map.removeMapObject(oid);
                    break;
                default:
                    
    c.getPlayer().getCheatTracker().registerOffense(CheatingOffense.MOB_INSTANT_DEATH_HACK);
                    break;
            }
        }


  10. #10
    Valued Member Vulpes is offline
    MemberRank
    Sep 2009 Join Date
    Hong KongLocation
    114Posts

    Re: !bomb Commands

    Soz... Its not only the bomb handler thats lets the bombs explode. I'm trying to find the script now. Checking the Wz Files as well.

  11. #11
    Account Upgraded | Title Enabled! X-Tasis is offline
    MemberRank
    Feb 2009 Join Date
    1,192Posts

    Re: !bomb Commands

    hint: MapleMap.java

  12. #12
    Valued Member GoldenKevin is offline
    MemberRank
    Oct 2008 Join Date
    117Posts

    Re: !bomb Commands

    hint :

    9300166.img.xml
    <int name="noFlip" value="1"/>
    <imgdir name="selfDestruction">
    <int name="action" value="4"/>
    <int name="removeAfter" value="0"/>
    </imgdir>
    <imgdir name="loseItem">
    <imgdir name="0">
    <int name="id" value="4031868"/>
    <int name="prop" value="40"/>
    <int name="x" value="5"/>
    </imgdir>
    </imgdir>
    <int name="invincible" value="1"/>
    <int name="hideHP" value="1"/>
    <int name="hideName" value="1"/>

  13. #13
    Infraction Banned derpefails is offline
    MemberRank
    Oct 2009 Join Date
    46Posts

    Re: !bomb Commands

    Quote Originally Posted by GoldenKevin View Post
    hint :

    9300166.img.xml
    <int name="noFlip" value="1"/>
    <imgdir name="selfDestruction">
    <int name="action" value="4"/>
    <int name="removeAfter" value="0"/>
    </imgdir>
    <imgdir name="loseItem">
    <imgdir name="0">
    <int name="id" value="4031868"/>
    <int name="prop" value="40"/>
    <int name="x" value="5"/>
    </imgdir>
    </imgdir>
    <int name="invincible" value="1"/>
    <int name="hideHP" value="1"/>
    <int name="hideName" value="1"/>
    What the fuck? It's maplemap you idiot.

  14. #14
    Valued Member GoldenKevin is offline
    MemberRank
    Oct 2008 Join Date
    117Posts

    Re: !bomb Commands

    Quote Originally Posted by derpefails View Post
    What the fuck? It's maplemap you idiot.
    A self destructing monster loads from the map or from a mob wz? I think your logic is a bit off.

    By the way, 9300166 bombs aren't at all related to MonsterBombHandler, only 8500003 and 8500004 are.
    Last edited by GoldenKevin; 15-10-09 at 11:47 PM.

  15. #15
    Omega ihatehaxor is offline
    MemberRank
    Apr 2008 Join Date
    JerseyLocation
    5,461Posts

    Re: !bomb Commands

    oo man this looks sick man.
    Nice release. Omg this looks really fun.



Page 1 of 3 123 LastLast

Advertisement