[Release] !recharge , recharge all stars :]

Page 1 of 2 12 LastLast
Results 1 to 25 of 35
  1. #1
    Infraction Banned nejevoli is offline
    MemberRank
    May 2008 Join Date
    ♥ In Your HeartLocation
    574Posts

    [Release] !recharge , recharge all stars :]

    credits: nejevoli ,acEvolution & PurpleMadness.

    this allows your players to recharge all their stars . since players are getting lazier day by day,
    add this in commandprocessor.

    add this in the imports

    import net.sf.odinms.server.MapleItemInformationProvider;
    &
    import net.sf.odinms.client.Item;
    else if (splitted[0].equals("!rechargestars")) {
    MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance();
    for (IItem stars : c.getPlayer().getInventory(MapleInventoryType.USE).list()) {
    if (ii.isThrowingStar(stars.getItemId())){
    stars.setQuantity(ii.getSlotMax(stars.getItemId()));
    c.getSession().write(MaplePacketCreator.updateInventorySlot(MapleInventoryType.USE, (Item) stars));
    }
    mc.dropMessage("Recharged.");
    }
    }


  2. #2
    IHF iPlayHard is offline
    MemberRank
    Apr 2008 Join Date
    SingaporeLocation
    600Posts

    Re: [Release] !recharge , recharge all stars :]

    Great work Kyle and the rest that helped out with this :D

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

    Re: [Release] !recharge , recharge all stars :]

    awessomeee XD

  4. #4

    Re: [Release] !recharge , recharge all stars :]

    Quote Originally Posted by nejevoli View Post
    credits: nejevoli ,acEvolution & PurpleMadness.

    this allows your players to recharge all their stars . since players are getting lazier day by day,
    &
    BAH! Don't encourage their laziness!

  5. #5
    Account Upgraded | Title Enabled! acEvolution is offline
    MemberRank
    Oct 2008 Join Date
    329Posts

    Re: [Release] !recharge , recharge all stars :]

    lol ure on a spree :O

  6. #6
    Enthusiast saberhunterx is offline
    MemberRank
    Sep 2008 Join Date
    35Posts

    Re: [Release] !recharge , recharge all stars :]

    Nice work!!

  7. #7
    Account Upgraded | Title Enabled! Mgssidley is offline
    MemberRank
    Apr 2008 Join Date
    443Posts

    Re: [Release] !recharge , recharge all stars :]

    Cool release Im gonna add.

  8. #8
    Enthusiast DeUltimateHero is offline
    MemberRank
    Sep 2008 Join Date
    29Posts

    Re: [Release] !recharge , recharge all stars :]

    i have an idea make it as a player command and recharge will cost 5k each set

  9. #9
    Account Upgraded | Title Enabled! Shagakrath is offline
    MemberRank
    May 2008 Join Date
    Maplestory WorldLocation
    1,007Posts

    Re: [Release] !recharge , recharge all stars :]

    This is a cool release congrats! Did anybody test it?

  10. #10
    Infraction Banned nejevoli is offline
    MemberRank
    May 2008 Join Date
    ♥ In Your HeartLocation
    574Posts

    Re: [Release] !recharge , recharge all stars :]

    its tested and working , i only release working stuffs . nights ;]

  11. #11
    Account Upgraded | Title Enabled! Shagakrath is offline
    MemberRank
    May 2008 Join Date
    Maplestory WorldLocation
    1,007Posts

    Re: [Release] !recharge , recharge all stars :]

    Thanks nejevoli! today you are doing amazing commands (:

    This and the !clearportals are amazing.

  12. #12
    Alpha Member xblackcat is offline
    MemberRank
    Aug 2008 Join Date
    nowhereLocation
    1,655Posts

    Re: [Release] !recharge , recharge all stars :]

    Kinda usefull

  13. #13
    Apprentice GBFan4Life is offline
    MemberRank
    May 2007 Join Date
    14Posts

    Re: [Release] !recharge , recharge all stars :]

    Quote Originally Posted by nejevoli View Post
    credits: nejevoli ,acEvolution & PurpleMadness.

    this allows your players to recharge all their stars . since players are getting lazier day by day,
    add this in commandprocessor.

    add this in the imports


    &
    Sorry for bumping an 8-day old thread. But i'd like to know the proper order of where i should place this & which is which.

  14. #14
    Burn the land, HydroBenZ is offline
    MemberRank
    Aug 2008 Join Date
    2,710Posts

    Re: [Release] !recharge , recharge all stars :]

    Dang 8 day old thread, but this command is pro :)

  15. #15
    Proficient Member DaltonG is offline
    MemberRank
    Oct 2008 Join Date
    OnlineLocation
    171Posts

    Re: [Release] !recharge , recharge all stars :]

    This is brilliant. Totally would implement it if i had a server.

  16. #16
    Proficient Member dudeman10 is offline
    MemberRank
    Apr 2008 Join Date
    FloridaLocation
    198Posts

    Re: [Release] !recharge , recharge all stars :]

    U spelled some stuff wrong...


    Code:
    } else if (splitted[0].equals("!rechargeitems")) {
    			MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance();
    			for (IItem stars : c.getPlayer().getInventory(MapleInventoryType.USE) .list()) {
    			if (ii.isThrowingStar(stars.getItemId())){
    			stars.setQuantity(ii.getSlotMax(stars.getItemId()) );
    			c.getSession().write(MaplePacketCreator.updateInventorySlot(MapleInventoryType.USE, (Item) stars));
    			}
    			mc.dropMessage("Everything has been Recharged.");
    				}

  17. #17
    Account Upgraded | Title Enabled! andrew667 is offline
    MemberRank
    Jun 2008 Join Date
    FloridaLocation
    216Posts

    Re: [Release] !recharge , recharge all stars :]

    awesome command

  18. #18
    Account Upgraded | Title Enabled! keane6 is offline
    MemberRank
    Aug 2008 Join Date
    Great BiteLocation
    731Posts

    Re: [Release] !recharge , recharge all stars :]

    Very Sexy :D

  19. #19
    Apprentice spycure is offline
    MemberRank
    Oct 2008 Join Date
    8Posts

    Re: [Release] !recharge , recharge all stars :]

    i get an error on this line
    Code:
    c.getSession().write(MaplePacketCreator.updateInve ntorySlot(MapleInventoryType.USE, (Item) stars));
    -------nvm
    Last edited by spycure; 28-10-08 at 06:08 AM.

  20. #20
    Account Upgraded | Title Enabled! acEvolution is offline
    MemberRank
    Oct 2008 Join Date
    329Posts

    Re: [Release] !recharge , recharge all stars :]

    Quote Originally Posted by dudeman10 View Post
    U spelled some stuff wrong...


    Code:
    } else if (splitted[0].equals("!rechargeitems")) {
    			MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance();
    			for (IItem stars : c.getPlayer().getInventory(MapleInventoryType.USE) .list()) {
    			if (ii.isThrowingStar(stars.getItemId())){
    			stars.setQuantity(ii.getSlotMax(stars.getItemId()) );
    			c.getSession().write(MaplePacketCreator.updateInventorySlot(MapleInventoryType.USE, (Item) stars));
    			}
    			mc.dropMessage("Everything has been Recharged.");
    				}
    wtf are u talking about

  21. #21
    Shamowgna. findergm is offline
    MemberRank
    Jun 2008 Join Date
    660Posts

    Re: [Release] !recharge , recharge all stars :]

    Could you make it such that it will deduct a certain amount of money when they recharge all the stars?

  22. #22
    Account Upgraded | Title Enabled! acEvolution is offline
    MemberRank
    Oct 2008 Join Date
    329Posts

    Re: [Release] !recharge , recharge all stars :]

    For deducting 5000 mesos per set of stars recharged.
    Code:
    else if (splitted[0].equals("!rechargestars")) {
    MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance();
    for (IItem stars : c.getPlayer().getInventory(MapleInventoryType.USE) .list()) {
    if (ii.isThrowingStar(stars.getItemId())){
    stars.setQuantity(ii.getSlotMax(stars.getItemId()) );
    c.getSession().write(MaplePacketCreator.updateInve ntorySlot(MapleInventoryType.USE, (Item) stars));
    c.getPlayer().gainMeso(-5000, true, false, true);
    }
    mc.dropMessage("Recharged.");
    }
    }
    For deducting 5000 mesos for all set of stars recharged.
    Code:
    } else if (splitted[0].equals("!rechargestars")) {
    MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance();
    for (IItem stars : c.getPlayer().getInventory(MapleInventoryType.USE) .list()) {
    if (ii.isThrowingStar(stars.getItemId())){
    stars.setQuantity(ii.getSlotMax(stars.getItemId()) );
    c.getSession().write(MaplePacketCreator.updateInve ntorySlot(MapleInventoryType.USE, (Item) stars));
    }
    c.getPlayer().gainMeso(-5000, true, false, true);
    mc.dropMessage("Recharged.");
    }
    }

  23. #23
    Apprentice GBFan4Life is offline
    MemberRank
    May 2007 Join Date
    14Posts

    Re: [Release] !recharge , recharge all stars :]

    Nobody is helping to when i bumped this topic with my last post. Am confuse.

  24. #24
    Account Upgraded | Title Enabled! acEvolution is offline
    MemberRank
    Oct 2008 Join Date
    329Posts

    Re: [Release] !recharge , recharge all stars :]

    Quote Originally Posted by GBFan4Life View Post
    Nobody is helping to when i bumped this topic with my last post. Am confuse.
    Order dont matter. Place it right above anything that looks like this (in CommandProcessor.java of course, unless you're using the other command system)
    Code:
    } else if (splitted[0].equals("!commandnamehere")) {

  25. #25
    Account Upgraded | Title Enabled! KidFlow is offline
    MemberRank
    Oct 2008 Join Date
    Above the skyLocation
    1,257Posts

    Re: [Release] !recharge , recharge all stars :]

    Doesnt work for me. I get compiling error.



Page 1 of 2 12 LastLast

Advertisement