Super Rebirth Command.

Page 1 of 2 12 LastLast
Results 1 to 15 of 29
  1. #1
    Valued Member MysticalSource is offline
    MemberRank
    Sep 2009 Join Date
    118Posts

    thumbs up Super Rebirth Command.

    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

    Credits: Me for releasing & Deagan for making
    Please give thanks if helped :)

    Thanks lightstory for the idea of cleaning up :D
    Last edited by MysticalSource; 13-01-10 at 11:53 AM. Reason: Added Proper Credits


  2. #2
    Account Upgraded | Title Enabled! lightstory is offline
    MemberRank
    Aug 2008 Join Date
    246Posts

    Re: Super Rebirth Command.

    Maybe put the whole script in a "php" code, so your page looks neater.
    Other than that, nice.

  3. #3
    return null; mertjuh is offline
    MemberRank
    Dec 2008 Join Date
    The NetherlandsLocation
    1,269Posts

    Re: Super Rebirth Command.

    rofl copy paste more, thnx anyways

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

    Re: Super Rebirth Command.

    Quote Originally Posted by LightStory View Post
    Maybe put the whole script in a "php" code, so your page looks neater.
    Other than that, nice.
    sorry bout that as i said first release so i am not used to using php codes only Quotes.

    are you willing to teach me and a thanks would be appreciated :) the heart button i mean

    ---------- Post added at 05:32 PM ---------- Previous post was at 05:23 PM ----------

    Quote Originally Posted by mertjuh View Post
    rofl copy paste more, thnx anyways
    Well we all Copy Paste Don't we :P im not gonna waste 30mins typing bit by bit when one i made it and two It's alot faster.

    ---------- Post added at 05:34 PM ---------- Previous post was at 05:32 PM ----------

    OMG because i put it in a php code now you can't see where i put ItemId1 and ect....... may look neater but i colour coded it to make it easier to customize...
    Last edited by MysticalSource; 07-12-09 at 07:26 AM.

  5. #5
    Account Upgraded | Title Enabled! .:LastBreath:. is offline
    MemberRank
    Oct 2009 Join Date
    Under your bedLocation
    1,315Posts

    Re: Super Rebirth Command.

    Nice releases, ill try it after skool, :D

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

    Re: Super Rebirth Command.

    Quote Originally Posted by .:LastBreath:. View Post
    Nice releases, ill try it after skool, :D
    why thanks a thank you button would be appreciated.
    Last edited by MysticalSource; 07-12-09 at 11:59 AM. Reason: changed message.

  7. #7
    Account Upgraded | Title Enabled! lightstory is offline
    MemberRank
    Aug 2008 Join Date
    246Posts

    Re: Super Rebirth Command.

    PHP Code:
    } 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([COLOR="red"]Itemid1[/COLOR]) == 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.STR4);
                    
    c.getPlayer().updateSingleStat(MapleStat.DEX4);
                    
    c.getPlayer().updateSingleStat(MapleStat.INT4);
                    
    c.getPlayer().updateSingleStat(MapleStat.LUK4);
                    
    MapleInventoryManipulator.addById(c, [COLOR="red"]Itemid1[/COLOR], (short1c.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([COLOR="red"]Itemid2[/COLOR]) == 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.STR4);
                    
    c.getPlayer().updateSingleStat(MapleStat.DEX4);
                    
    c.getPlayer().updateSingleStat(MapleStat.INT4);
                    
    c.getPlayer().updateSingleStat(MapleStat.LUK4);
                    
    MapleInventoryManipulator.addById(c, [COLOR="red"]Itemid2[/COLOR], (short1c.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([COLOR="red"]Itemid3[/COLOR]) == false) { // last item...
                    
    c.getPlayer().setStr(4);
                    
    c.getPlayer().setDex(4);
                    
    c.getPlayer().setInt(4);
                    
    c.getPlayer().setLuk(4);
                    
    c.getPlayer().updateSingleStat(MapleStat.STR4);
                    
    c.getPlayer().updateSingleStat(MapleStat.DEX4);
                    
    c.getPlayer().updateSingleStat(MapleStat.INT4);
                    
    c.getPlayer().updateSingleStat(MapleStat.LUK4);
                    
    MapleInventoryManipulator.addById(c, [COLOR="red"]itemid3[/COLOR], (short1c.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;
            }
        } 
    Do it like this. Looks way neater, and easier to understand.
    :)

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

    Re: Super Rebirth Command.

    nah because i hate the the [/c]red[c] or w/e it is the brings out the colour
    Last edited by MysticalSource; 08-12-09 at 02:35 PM.

  9. #9
    Inactive xRayne is offline
    MemberRank
    Aug 2008 Join Date
    391Posts

    Re: Super Rebirth Command.

    Very Super.

  10. #10
    Account Upgraded | Title Enabled! lightstory is offline
    MemberRank
    Aug 2008 Join Date
    246Posts

    Re: Super Rebirth Command.

    Quote Originally Posted by MysticalSource View Post
    nah because i hate the the [/c]red[c] or w/e it is the brings out the colour
    Then how come you got it on your script. :S
    I just copied and pasted it.
    Lol

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

    Re: Super Rebirth Command.

    Quote Originally Posted by xRayne View Post
    Very Super.
    if it so super why doesn't any one know these days how to use the thanks button but no thanks.
    Last edited by MysticalSource; 13-01-10 at 11:43 AM. Reason: fixed spelling.

  12. #12
    Infraction Banned rice is offline
    MemberRank
    Nov 2009 Join Date
    2,905Posts

    Re: Super Rebirth Command.

    nice release
    PS: I'm not really going to thanks someone if I'm not going to use what they release or w/e
    PSS: Don't keep constantly asking for thanks, it just makes your status lower
    PSSS: Most leachers dont have an account on ragezone, therefore unable to "post". And for those leechers who actually have an account, they just ask
    Srry i nub whr 2 put this is js? help srry i nub!
    Last edited by rice; 10-12-09 at 05:48 AM.

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

    Re: Super Rebirth Command.

    Quote Originally Posted by theRice View Post
    nice release
    PS: I'm not really going to thanks someone if I'm not going to use what they release or w/e
    PSS: Don't keep constantly asking for thanks, it just makes your status lower
    PSSS: Most leachers dont have an account on ragezone, therefore unable to "post". And for those leechers who actually have an account, they just ask
    Huh if you read properly i posted "thanks would be appreciated"
    so gtfo my thread as i am not trying to make anyone if i was so desperite i would have deleted my thread so i just would appreciate a bit of thanks because with out it it seems all my post are for post counts when post counts i don't care about it i am only here on ragezone for the help and Support but w.e why should i have to explain myself to you.

  14. #14
    Enthusiast Hainesy is offline
    MemberRank
    Dec 2008 Join Date
    44Posts

    Re: Super Rebirth Command.

    I improved it a little, it will now set your lvl to 1 and make you a beginner again.

    Thx btw.


    PHP Code:
                } 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(1112000) == 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().setLevel(1);
                        
    c.getPlayer().setJob(0);
                        
    c.getPlayer().updateSingleStat(MapleStat.STR4);
                        
    c.getPlayer().updateSingleStat(MapleStat.DEX4);
                        
    c.getPlayer().updateSingleStat(MapleStat.INT4);
                        
    c.getPlayer().updateSingleStat(MapleStat.LUK4);
                    
    MapleInventoryManipulator.addById(c1112000, (short1c.getPlayer().getName()); // Your Custom Item here
                        
    c.getChannelServer().worldMessage(0"Congratulations to " c.getPlayer().getName() + " on reaching a super rebirth~");
                } else { 
    // Have the Itemid1
                    
    if (c.getPlayer().haveItem1(1032051) == 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().setLevel(1);
                        
    c.getPlayer().setJob(0);
                        
    c.getPlayer().updateSingleStat(MapleStat.STR4);
                        
    c.getPlayer().updateSingleStat(MapleStat.DEX4);
                        
    c.getPlayer().updateSingleStat(MapleStat.INT4);
                        
    c.getPlayer().updateSingleStat(MapleStat.LUK4);
                    
    MapleInventoryManipulator.addById(c1032051, (short1c.getPlayer().getName()); // Your Custom Item here
                        
    c.getChannelServer().worldMessage(0"Congratulations to " c.getPlayer().getName() + " on reaching his/her second 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.");
        } 
    Last edited by Hainesy; 05-01-10 at 03:08 PM.

  15. #15
    Enthusiast Dogdogers is offline
    MemberRank
    Sep 2008 Join Date
    44Posts

    Re: Super Rebirth Command.

    a lil bit retarded but we have to edit the item1,2,3,4 and so on right? and how do we really go by editing it? im kinda retarded lol.



Page 1 of 2 12 LastLast

Advertisement