Re: Super Rebirth Command.
Maybe put the whole script in a "php" code, so your page looks neater.
Other than that, nice.
Re: Super Rebirth Command.
rofl copy paste more, thnx anyways
Re: Super Rebirth Command.
Quote:
Originally Posted by
LightStory
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
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...
Re: Super Rebirth Command.
Nice releases, ill try it after skool, :D
Re: Super Rebirth Command.
Quote:
Originally Posted by
.:LastBreath:.
Nice releases, ill try it after skool, :D
why thanks a thank you button would be appreciated.
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.STR, 4);
c.getPlayer().updateSingleStat(MapleStat.DEX, 4);
c.getPlayer().updateSingleStat(MapleStat.INT, 4);
c.getPlayer().updateSingleStat(MapleStat.LUK, 4);
MapleInventoryManipulator.addById(c, [COLOR="red"]Itemid1[/COLOR], (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([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.STR, 4);
c.getPlayer().updateSingleStat(MapleStat.DEX, 4);
c.getPlayer().updateSingleStat(MapleStat.INT, 4);
c.getPlayer().updateSingleStat(MapleStat.LUK, 4);
MapleInventoryManipulator.addById(c, [COLOR="red"]Itemid2[/COLOR], (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([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.STR, 4);
c.getPlayer().updateSingleStat(MapleStat.DEX, 4);
c.getPlayer().updateSingleStat(MapleStat.INT, 4);
c.getPlayer().updateSingleStat(MapleStat.LUK, 4);
MapleInventoryManipulator.addById(c, [COLOR="red"]itemid3[/COLOR], (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(itemid, 1, true, true);
}
public boolean haveItem(int itemid, int quantity, boolean checkEquipped, boolean 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 type, int 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.
:)
Re: Super Rebirth Command.
nah because i hate the the [/c]red[c] or w/e it is the brings out the colour
Re: Super Rebirth Command.
Re: Super Rebirth Command.
Quote:
Originally Posted by
MysticalSource
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
Re: Super Rebirth Command.
Quote:
Originally Posted by
xRayne
Very Super.
if it so super why doesn't any one know these days how to use the thanks button but no thanks. :(:
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
Quote:
Srry i nub whr 2 put this is js? help srry i nub!:*:
Re: Super Rebirth Command.
Quote:
Originally Posted by
theRice
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 :lol: 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.
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. :thumbup:
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.STR, 4);
c.getPlayer().updateSingleStat(MapleStat.DEX, 4);
c.getPlayer().updateSingleStat(MapleStat.INT, 4);
c.getPlayer().updateSingleStat(MapleStat.LUK, 4);
MapleInventoryManipulator.addById(c, 1112000, (short) 1, c.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.STR, 4);
c.getPlayer().updateSingleStat(MapleStat.DEX, 4);
c.getPlayer().updateSingleStat(MapleStat.INT, 4);
c.getPlayer().updateSingleStat(MapleStat.LUK, 4);
MapleInventoryManipulator.addById(c, 1032051, (short) 1, c.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.");
}
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.