!petrate

Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    Account Upgraded | Title Enabled! Spyker710 is offline
    MemberRank
    Apr 2008 Join Date
    ...stalker much...Location
    460Posts

    !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

    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...


  2. #2
    Eternal Slumber Meteorite is offline
    MemberRank
    Jun 2008 Join Date
    875Posts

    Re: [Release] !petrate

    nice release lol

    moogra should add this into sinems

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

    Re: [Release] !petrate

    Who cares how fast you made it, its still useful :)

  4. #4
    Account Upgraded | Title Enabled! Spyker710 is offline
    MemberRank
    Apr 2008 Join Date
    ...stalker much...Location
    460Posts

    Re: [Release] !petrate

    Quote Originally Posted by Roamer View Post
    Who cares how fast you made it, its still useful :)
    True haha, not that big of a release but whatever.

  5. #5
    Infraction Banned MiniAxel is offline
    MemberRank
    Sep 2006 Join Date
    906Posts

    Re: [Release] !petrate

    Quote Originally Posted by Spyker710 View Post
    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?

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

    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

  7. #7
    Alpha Member YouAreNotBob is offline
    MemberRank
    Aug 2008 Join Date
    1,542Posts

    Re: [Release] !petrate

    Pet rate sux! Nice release ;)

  8. #8
    Account Upgraded | Title Enabled! Spyker710 is offline
    MemberRank
    Apr 2008 Join Date
    ...stalker much...Location
    460Posts

    Re: [Release] !petrate

    Quote Originally Posted by MiniAxel View Post
    Moogra already made something like this, and why would you add a Syntax?
    Would you rather me change it to "Error" ?

  9. #9
    Account Upgraded | Title Enabled! Revolution~ is offline
    MemberRank
    Dec 2008 Join Date
    In the street .Location
    461Posts

    Re: [Release] !petrate

    !petrate 999999999999999999999999
    Ima do it :D

  10. #10
    Account Upgraded | Title Enabled! Spyker710 is offline
    MemberRank
    Apr 2008 Join Date
    ...stalker much...Location
    460Posts

    Re: [Release] !petrate

    Quote Originally Posted by Revolution~ View Post
    !petrate 999999999999999999999999
    Ima do it :D
    Go for it O_o

    Only levels the pet once at a time I've found, (Tried at like 1000x or something...)

  11. #11
    Infraction Banned MiniAxel is offline
    MemberRank
    Sep 2006 Join Date
    906Posts

    Re: [Release] !petrate

    Quote Originally Posted by Roamer View Post
    If people put the command only without the number it'll show the syntax to notify them that they've messed up
    I know, Roamer. Why would you though. Simple as reading the command.

  12. #12
    Infraction Banned Jvlaple is offline
    MemberRank
    Jul 2008 Join Date
    PerthLocation
    291Posts

    Re: [Release] !petrate

    Quote Originally Posted by Spyker710 View Post
    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

  13. #13
    Account Upgraded | Title Enabled! Spyker710 is offline
    MemberRank
    Apr 2008 Join Date
    ...stalker much...Location
    460Posts

    Re: [Release] !petrate

    Quote Originally Posted by Jvlaple View Post
    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.

  14. #14
    Infraction Banned Jvlaple is offline
    MemberRank
    Jul 2008 Join Date
    PerthLocation
    291Posts

    Re: [Release] !petrate

    why is the code exactly the same?

  15. #15
    Alpha Member Moogra is offline
    MemberRank
    Jul 2008 Join Date
    1,804Posts

    Re: [Release] !petrate

    Similar to mine:
    PHP Code:
    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.



Page 1 of 2 12 LastLast

Advertisement