!petrate

Status
Not open for further replies.
Experienced Elementalist
Joined
Apr 13, 2008
Messages
298
Reaction score
1
Surprisingly this wasn't made / released yet, I haven't seen it around and I was bored so I basically made it in 20 seconds....

Code:
       } else if (splitted[0].equals("!petrate")) {
            if (splitted.length > 1) {
                int pet = Integer.parseInt(splitted[1]);
                cserv.setPetExpRate(pet);
                MaplePacket packet = MaplePacketCreator.serverNotice(6, "Pet EXP Rate has been changed to " + pet + "x");
                ChannelServer.getInstance(c.getChannel()).broadcastPacket(packet);
            } else {
                mc.dropMessage("Syntax: !petrate <number>");
            }

Tested and works? O.o

Edit : So apparantly it's been released, sorry I didn't know.
Also, I did not leech this off of a source, if anyone has realized it all the !___rate commands look the same...
 
Re: [Release] !petrate

Surprisingly this wasn't made / released yet, I haven't seen it around and I was bored so I basically made it in 20 seconds....

Code:
       } else if (splitted[0].equals("!petrate")) {
            if (splitted.length > 1) {
                int pet = Integer.parseInt(splitted[1]);
                cserv.setPetExpRate(pet);
                MaplePacket packet = MaplePacketCreator.serverNotice(6, "Pet EXP Rate has been changed to " + pet + "x");
                ChannelServer.getInstance(c.getChannel()).broadcastPacket(packet);
            } else {
                mc.dropMessage("Syntax: !petrate <number>");
            }
Tested and works? O.o
Moogra already made something like this, and why would you add a Syntax?
 
Re: [Release] !petrate

If people put the command only without the number it'll show the syntax to notify them that they've messed up
 
Re: [Release] !petrate

Surprisingly this wasn't made / released yet, I haven't seen it around and I was bored so I basically made it in 20 seconds....

Code:
       } else if (splitted[0].equals("!petrate")) {
            if (splitted.length > 1) {
                int pet = Integer.parseInt(splitted[1]);
                cserv.setPetExpRate(pet);
                MaplePacket packet = MaplePacketCreator.serverNotice(6, "Pet EXP Rate has been changed to " + pet + "x");
                ChannelServer.getInstance(c.getChannel()).broadcastPacket(packet);
            } else {
                mc.dropMessage("Syntax: !petrate <number>");
            }

Tested and works? O.o

leecher... You got it out of my source =X
 
Re: [Release] !petrate

leecher... You got it out of my source =X

1. What's your source?

2. Only source I've used since I quit is ThePack

3. This is INCREDIBLY easy to make, you CAN just copy the bossdroprate or w/e and change it to pet rate. It's not rocket science.
 
Re: [Release] !petrate

Similar to mine:
PHP:
else if (splitted[0].equals("!exprate")) {
            int exp = Integer.parseInt(splitted[1]);
            cserv.setExpRate(exp);
            MaplePacket packet = MaplePacketCreator.serverNotice(6, "Exp Rate has been changed to " + exp + "x.");
            ChannelServer.getInstance(c.getChannel()).broadcastPacket(packet);
        } else if (splitted[0].equals("!petexprate")) {
            int exp = Integer.parseInt(splitted[1]);
            cserv.setPetExpRate(exp);
            MaplePacket packet = MaplePacketCreator.serverNotice(6, "Pet Exp Rate has been changed to " + exp + "x.");
            ChannelServer.getInstance(c.getChannel()).broadcastPacket(packet);
        } else if (splitted[0].equals("!mountexprate")) {
            int exp = Integer.parseInt(splitted[1]);
            cserv.setMountRate(exp);
            MaplePacket packet = MaplePacketCreator.serverNotice(6, "Mount Exp Rate has been changed to " + exp + "x.");
            ChannelServer.getInstance(c.getChannel()).broadcastPacket(packet);
        } else if (splitted[0].equals("!mesorate")) {
            int meso = Integer.parseInt(splitted[1]);
            cserv.setMesoRate(meso);
            MaplePacket packet = MaplePacketCreator.serverNotice(6, "Meso Rate has been changed to " + meso + "x.");
            ChannelServer.getInstance(c.getChannel()).broadcastPacket(packet);
        } else if (splitted[0].equals("!droprate")) {
            int drop = Integer.parseInt(splitted[1]);
            cserv.setDropRate(drop);
            MaplePacket packet = MaplePacketCreator.serverNotice(6, "Drop Rate has been changed to " + drop + "x.");
            ChannelServer.getInstance(c.getChannel()).broadcastPacket(packet);
        } else if (splitted[0].equals("!bossdroprate")) {
            int bossdrop = Integer.parseInt(splitted[1]);
            cserv.setBossDropRate(bossdrop);
            MaplePacket packet = MaplePacketCreator.serverNotice(6, "Boss Drop Rate has been changed to " + bossdrop + "x.");
            ChannelServer.getInstance(c.getChannel()).broadcastPacket(packet);
        }

Yeah when I released pet exp rate I didn't give the command.
 
Re: [Release] !petrate

why is the code exactly the same?

I really have no idea, but I'm not that pathetic to leech a code like this.

Basically all I did was copy the !bossdroprate command and change the words "boss" and "drop" to "pet" and "exp", Seriously, you might as well be asking me why does !mesorate look exactly like yours or !bossdroprate


Similar to mine:
PHP:
else if (splitted[0].equals("!exprate")) {
            int exp = Integer.parseInt(splitted[1]);
            cserv.setExpRate(exp);
            MaplePacket packet = MaplePacketCreator.serverNotice(6, "Exp Rate has been changed to " + exp + "x.");
            ChannelServer.getInstance(c.getChannel()).broadcastPacket(packet);
        } else if (splitted[0].equals("!petexprate")) {
            int exp = Integer.parseInt(splitted[1]);
            cserv.setPetExpRate(exp);
            MaplePacket packet = MaplePacketCreator.serverNotice(6, "Pet Exp Rate has been changed to " + exp + "x.");
            ChannelServer.getInstance(c.getChannel()).broadcastPacket(packet);
        } else if (splitted[0].equals("!mountexprate")) {
            int exp = Integer.parseInt(splitted[1]);
            cserv.setMountRate(exp);
            MaplePacket packet = MaplePacketCreator.serverNotice(6, "Mount Exp Rate has been changed to " + exp + "x.");
            ChannelServer.getInstance(c.getChannel()).broadcastPacket(packet);
        } else if (splitted[0].equals("!mesorate")) {
            int meso = Integer.parseInt(splitted[1]);
            cserv.setMesoRate(meso);
            MaplePacket packet = MaplePacketCreator.serverNotice(6, "Meso Rate has been changed to " + meso + "x.");
            ChannelServer.getInstance(c.getChannel()).broadcastPacket(packet);
        } else if (splitted[0].equals("!droprate")) {
            int drop = Integer.parseInt(splitted[1]);
            cserv.setDropRate(drop);
            MaplePacket packet = MaplePacketCreator.serverNotice(6, "Drop Rate has been changed to " + drop + "x.");
            ChannelServer.getInstance(c.getChannel()).broadcastPacket(packet);
        } else if (splitted[0].equals("!bossdroprate")) {
            int bossdrop = Integer.parseInt(splitted[1]);
            cserv.setBossDropRate(bossdrop);
            MaplePacket packet = MaplePacketCreator.serverNotice(6, "Boss Drop Rate has been changed to " + bossdrop + "x.");
            ChannelServer.getInstance(c.getChannel()).broadcastPacket(packet);
        }
Yeah when I released pet exp rate I didn't give the command.

I tried searching to see if anyone released it but I found no results, so sorry if you already released it.
 
Last edited:
Status
Not open for further replies.
Back