PDA

View Full Version : hello this is how to add the ::master command :) for 508 and mayby others idk lol



aksl8
June 19th, 2010, 09:27
if (p.rights >= 1) {
} else if (cmd[0].equals("master")) {
p.skillLvl[0] = 99;
p.skillXP[0] = 999999999;
p.skillLvl[1] = 99;
p.skillXP[1] = 999999999;
p.skillLvl[2] = 99;
p.skillXP[2] = 999999999;
p.skillLvl[3] = 99;
p.skillXP[3] = 999999999;
p.skillLvl[4] = 99;
p.skillXP[4] = 999999999;
p.skillLvl[5] = 99;
p.skillXP[5] = 999999999;
p.skillLvl[6] = 99;
p.skillXP[6] = 999999999;
p.skillLvl[7] = 99;
p.skillXP[7] = 999999999;
p.skillLvl[8] = 99;
p.skillXP[8] = 999999999;
p.skillLvl[9] = 99;
p.skillXP[9] = 999999999;
p.skillLvl[10] = 99;
p.skillXP[10] = 999999999;
p.skillLvl[11] = 99;
p.skillXP[11] = 999999999;
p.skillLvl[12] = 99;
p.skillXP[12] = 999999999;
p.skillLvl[13] = 99;
p.skillXP[13] = 999999999;
p.skillLvl[14] = 99;
p.skillXP[14] = 999999999;
p.skillLvl[15] = 99;
p.skillXP[15] = 999999999;
p.skillLvl[16] = 99;
p.skillXP[16] = 999999999;
p.skillLvl[17] = 99;
p.skillXP[17] = 999999999;
p.skillLvl[18] = 99;
p.skillXP[18] = 999999999;
p.skillLvl[19] = 99;
p.skillXP[19] = 999999999;
p.skillLvl[20] = 99;
p.skillXP[20] = 999999999;
p.skillLvl[21] = 99;
p.skillXP[21] = 999999999;
p.skillLvl[22] = 99;
p.skillXP[22] = 999999999;
p.skillLvl[23] = 99;
p.skillXP[23] = 999999999;
p.skillLvl[24] = 99;
p.skillXP[24] = 999999999;
p.updateReq = true;
}:) welll thats the ::master command and if this helped plz help me making a server because i only know how to add ::master and ::melee ::starter :/ so plz do that on my post how to make a 08508 server like iots stands 508 but my keyboard suck like u can see :S but heres how to add info EXAMPLE:
} else if (cmd[0].equals("info")) {
p.frames.showInterface(p, 255);
p.frames.setString(p, "508 SERVER TUT is created by aksl8!.IF you need help ask do not be shy =).", 255, 3);

Break
June 19th, 2010, 09:29
Why this is so long? This isn't the real ::master command, But I think it will still work.
Else, This is worng section.

Edit: Watch at tutorials-Teaching
How to code [For new coders], I made a tutorials, It will probably help you.

Nathan'
June 19th, 2010, 09:32
Sorry but u can shorten this by loads


if (cmd[0].equals("master")) {
for (int i = 0; i < 24; i++) {
p.appendExperience(13034431, i);
}
}

thats my master for z508

aksl8
June 19th, 2010, 09:38
hmmm but ive heard my friend useds that code

Nathan'
June 19th, 2010, 09:39
I't's up to you. Just a shorter code then that thing ^^

aksl8
June 19th, 2010, 09:48
yea smaller will be better lol :P BUT i need help making a server my friend never helps lol

Nathan'
June 19th, 2010, 10:21
lol sorry im occupied with my own

Neelix
June 19th, 2010, 10:29
There's no player appearance? And this is the wrong section for this tutorial.

Nathan'
June 19th, 2010, 10:30
it works lol

aksl8
June 20th, 2010, 14:38
i know its wrong section... i didnt find out where i was. when i posted the topic XD

Break
June 20th, 2010, 14:40
Thanks for correcting him Nathan.
Else a moderator move it to the "Tutorials" section.

Aaron
June 20th, 2010, 14:41
I'm pretty sure my friend has a shorter code for this, This sees long and complicated:O, Anyways, Nice I guess.

Faab234
June 20th, 2010, 15:56
Try to use this code:


if (cmd[0].equals("master")) {
for (int i = 0; i < 24; i++) {
p.skillLvl[i] = 99;
p.skillXP[i] = 999999999;
}
}

Jusstin
June 20th, 2010, 15:58
Try to use this code:


if (cmd[0].equals("master")) {
for (int i = 0; i < 24; i++) {
p.skillLvl[i] = 99;
p.skillXP[i] = 999999999;
}
}

yeah,i thought it could be shorter but couldnt think of the code.