Super Rebirth Command.

Page 2 of 2 FirstFirst 12
Results 26 to 29 of 29
  1. #26
    I'm sexy and I know it :) Deagan ツ is offline
    MemberRank
    Oct 2008 Join Date
    clubs ;\Location
    1,317Posts

    Re: Super Rebirth Command.

    Quote Originally Posted by Alcandon View Post
    Oh wait so everytime you SuperRebirth, You get different Item?
    It isn't even really rebirth related, it's just a msi command.
    max stats = max stat item. If you already have any of the items, (which is why I added haveItem1 but still now I look at it again doesn't really make sense,) you get a differnet one untill the 4 items are spilled.

    @Korinth, thank you.

  2. #27
    Valued Member MysticalSource is offline
    MemberRank
    Sep 2009 Join Date
    118Posts

    Re: Super Rebirth Command.

    Quote Originally Posted by MysticalSource View Post
    Hey Ragezoners This is My first Release i do not know if anything like this has been released before so please do not flame if it has been.
    Command
    } else if (splitted[0].equals("@superrb")) {
    if (c.getPlayer().getStr() == 32767 && c.getPlayer().getDex() == 32767 && c.getPlayer().getInt() == 32767 && c.getPlayer().getLuk() == 32767) { // required
    if (c.getPlayer().haveItem1(Itemid1) == false) { // If you do not have this you gain this item
    c.getPlayer().setStr(4);
    c.getPlayer().setDex(4);
    c.getPlayer().setInt(4);
    c.getPlayer().setLuk(4);
    c.getPlayer().updateSingleStat(MapleStat.STR, 4);
    c.getPlayer().updateSingleStat(MapleStat.DEX, 4);
    c.getPlayer().updateSingleStat(MapleStat.INT, 4);
    c.getPlayer().updateSingleStat(MapleStat.LUK, 4);
    MapleInventoryManipulator.addById(c, Itemid1, (short) 1, c.getPlayer().getName()); // Your Custom Item here
    c.getChannelServer().worldMessage("Congratulations to " + c.getPlayer().getName() + " on reaching a super rebirth~");
    } else { // Have the Itemid1
    if (c.getPlayer().haveItem1(Itemid2) == false) { // if you do NOT have the Itemid2, it does the underlined
    c.getPlayer().setStr(4);
    c.getPlayer().setDex(4);
    c.getPlayer().setInt(4);
    c.getPlayer().setLuk(4);
    c.getPlayer().updateSingleStat(MapleStat.STR, 4);
    c.getPlayer().updateSingleStat(MapleStat.DEX, 4);
    c.getPlayer().updateSingleStat(MapleStat.INT, 4);
    c.getPlayer().updateSingleStat(MapleStat.LUK, 4);
    MapleInventoryManipulator.addById(c, Itemid2, (short) 1, c.getPlayer().getName()); // Your Custom Item here
    c.getChannelServer().worldMessage("Congratulations to " + c.getPlayer().getName() + " on reaching his/her second super rebirth~");
    } else { // having item 1 + 2
    if (c.getPlayer().haveItem1(Itemid3) == false) { // last item...
    c.getPlayer().setStr(4);
    c.getPlayer().setDex(4);
    c.getPlayer().setInt(4);
    c.getPlayer().setLuk(4);
    c.getPlayer().updateSingleStat(MapleStat.STR, 4);
    c.getPlayer().updateSingleStat(MapleStat.DEX, 4);
    c.getPlayer().updateSingleStat(MapleStat.INT, 4);
    c.getPlayer().updateSingleStat(MapleStat.LUK, 4);
    MapleInventoryManipulator.addById(c, itemid3, (short) 1, c.getPlayer().getName()); // Your Custom item here.
    c.getChannelServer().worldMessage("Congratulations to " + c.getPlayer().getName() + " on reaching his/her third super rebirth~");
    } else {
    c.getPlayer().dropMessage(6, "You have the max amount of superrebirths.");
    }
    }
    }
    } else { // does not have required.
    c.getPlayer().dropMessage(6, "You are not ready to super rebirth yet.\r\nYou currently have :\r\n " + c.getPlayer().getStr() + " Str, " + c.getPlayer().getDex() + " Dex, " + c.getPlayer().getInt() + " Int and " + c.getPlayer().getLuk() + " Luk.");
    }



    and in your MapleCharacter.Java Add

    PHP Code:
        public boolean haveItem1(int itemid) {
            return 
    haveItem(itemid1truetrue);
        }

        public 
    boolean haveItem(int itemidint quantityboolean checkEquippedboolean greaterOrEquals) {
            
    int possesed inventory[MapleItemInformationProvider.getInstance().getInventoryType(itemid).ordinal()].countById(itemid);
            if (
    checkEquipped)
                
    possesed += inventory[MapleInventoryType.EQUIPPED.ordinal()].countById(itemid);
            return 
    greaterOrEquals possesed >= quantity possesed == quantity;
        } 
    IF YOU ALREADY HAVE A HaveItem1 boolean REPLACE IT if not add it under

    PHP Code:
        public void modifyCSPoints(int typeint quantity) {
            switch (
    type) {
                case 
    1:
                    
    this.paypalnx += quantity;
                    break;
                case 
    2:
                    
    this.maplepoints += quantity;
                    break;
                case 
    4:
                    
    this.cardnx += quantity;
                    break;
            }
        } 


    this is for a server with Max stats of 32767.
    THIS IS WORKING 100% Spoonfed :)
    add the above as a player command.

    where you see the red coloured writing input as your servers custom maxed stat item if you don't have any don't ask me to make one for you. as i only helped with the command

    PHP Code:
    CreditsMe for releasing & ?? << Not sure 


    Please give thanks if helped :)

    Thanks lightstory for the idea of cleaning up :D
    i didn't know it was you who had in your source you could have simply told me it's a easy fix. and QUOTE i said i released not made you may be maker of the command but get your facts right

    ---------- Post added at 09:47 PM ---------- Previous post was at 09:41 PM ----------

    Quote Originally Posted by deagan View Post
    I made this, idiot.

    quote from my source :

    Code:
    } else if (splitted[0].equals("maxstats")) {
                if (c.getPlayer().getStr() == 32767 && c.getPlayer().getDex() == 32767 && c.getPlayer().getInt() == 32767 && c.getPlayer().getLuk() == 32767) { // required
                    if (c.getPlayer().haveItem1(1012098) == false) { // if you do NOT have this item yet, it does the underlined
                    c.getPlayer().setStr(4);
                    c.getPlayer().setDex(4);
                    c.getPlayer().setInt(4);
                    c.getPlayer().setLuk(4);
                    c.getPlayer().updateSingleStat(MapleStat.STR, 4);
                    c.getPlayer().updateSingleStat(MapleStat.DEX, 4);
                    c.getPlayer().updateSingleStat(MapleStat.INT, 4);
                    c.getPlayer().updateSingleStat(MapleStat.LUK, 4);
                    MapleInventoryManipulator.addById(c, 1012098, (short) 1, c.getPlayer().getName()); // maple leaf.
                    c.getChannelServer().worldMessage("Congratulations to " + c.getPlayer().getName() + " on reaching a super rebirth~");
                    } else { // Have the maple leaf *1012098*
                    if (c.getPlayer().haveItem1(1032033) == false) { // if you do NOT have the protector rock, it does the underlined
                    c.getPlayer().setStr(4);
                    c.getPlayer().setDex(4);
                    c.getPlayer().setInt(4);
                    c.getPlayer().setLuk(4);
                    c.getPlayer().updateSingleStat(MapleStat.STR, 4);
                    c.getPlayer().updateSingleStat(MapleStat.DEX, 4);
                    c.getPlayer().updateSingleStat(MapleStat.INT, 4);
                    c.getPlayer().updateSingleStat(MapleStat.LUK, 4);
                    MapleInventoryManipulator.addById(c, 1032033, (short) 1, c.getPlayer().getName()); // protector rock.
                    c.getChannelServer().worldMessage("Congratulations to " + c.getPlayer().getName() + " on reaching his/her second super rebirth~");
                    } else { // having a maple leaf + protector rock, do underlined.
                    if (c.getPlayer().haveItem1(1022058) == false) { // last item...
                    c.getPlayer().setStr(4);
                    c.getPlayer().setDex(4);
                    c.getPlayer().setInt(4);
                    c.getPlayer().setLuk(4);
                    c.getPlayer().updateSingleStat(MapleStat.STR, 4);
                    c.getPlayer().updateSingleStat(MapleStat.DEX, 4);
                    c.getPlayer().updateSingleStat(MapleStat.INT, 4);
                    c.getPlayer().updateSingleStat(MapleStat.LUK, 4);
                    MapleInventoryManipulator.addById(c, 1022058, (short) 1, c.getPlayer().getName()); // raccoon mask.
                    c.getChannelServer().worldMessage("Congratulations to " + c.getPlayer().getName() + " on reaching his/her third super rebirth~");
                    } else {
                    c.getPlayer().dropMessage(6, "You have the max amount of superrebirths.");
                    }
                    }
                    }
                } else { // does not have required.
                    c.getPlayer().dropMessage(6, "You are not ready to super rebirth yet.\r\nYou currently have :\r\n " + c.getPlayer().getStr() + " Str, " + c.getPlayer().getDex() + " Dex, " + c.getPlayer().getInt() + " Int and " + c.getPlayer().getLuk() + " Luk.");
                }
    Next time you leech this and post it on here, give me all the credits.
    Now THIS is the real reason this community sucks.
    Quote Originally Posted by deagan View Post
    i made this idiot give me all the credits.
    Lolz for one i didn't know it was you who made it and for two how do i know you didn't have a coder make this and your're the one trying to steal credits after all i put credits to me for releasing and ??
    so sorry if it really means that much i fix now :)
    Last edited by MysticalSource; 13-01-10 at 11:50 AM.

  3. #28
    I'm sexy and I know it :) Deagan ツ is offline
    MemberRank
    Oct 2008 Join Date
    clubs ;\Location
    1,317Posts

    Re: Super Rebirth Command.

    I never had java coders, all java is done by me in my server.
    It was called a Drakoms repack released by me, you leeched from it and released it here. My facts are completely straight.
    And I already released this because I released my source.

  4. #29
    Account Upgraded | Title Enabled! Soul is offline
    MemberRank
    Aug 2009 Join Date
    645Posts

    Re: Super Rebirth Command.

    mang organize it!



Page 2 of 2 FirstFirst 12

Advertisement