Purpose: making it so silabsoft users can enjoy the futures of the silabsoft client and moparscape users won't have to deal with it
Difficulty: 1/10 or maybe 2/10
Assumed Knowledge: copy and paste codes and a little knowledge bout java script
Server Base: going to work on all servers
Classes Modified: client.java
Procedure
Step 1:
lets start with going into client.java and search for
Code:
public class client extends Player implements Runnable {
directly under that add
Code:
public boolean silabsoft = false;
public boolean loginchoose = false;
then search for
or just find the place were ur welcome message is located at
if you dont have a welcome message go to the piece of code the server requests when a player is logging in u know what i mean hopefully
under writeenergy(); add:
Code:
loginchoose = true;
selectoption("@blu@what client are you using?", "silabsoft's client", "moparscape client", "...");
Step 2: let the options actually do something when you click them
search for
a few lines under the words "case 9157:" you should see some words withing ( )'s
somewhere between those scriptpieces add
Code:
if (loginchoose) {
silabsoft = true;
sendMessage("the gamesettings are modified for silabsoft's client");
loginchoose = false;
RemoveAllWindows();
}
now search for:
and same as the case 9157: put the following code somewhere between the scriptpieces in case 9158:
Code:
if (loginchoose) {
sendMessage("the game setting are modified for moparscape client");
loginchoose = false;
RemoveAllWindows();
}
alert readers should see that the second piece of code isn't really something
but thats because of we declared silabsoft = false; already at the beginning so it would be useless to do it again
extra:
if you dont have this
Code:
public void selectoption(String question, String s1, String s2, String s3)
{
sendFrame171(1, 2465);
sendFrame171(0, 2468);
sendFrame126(question, 2460);
sendFrame126(s1, 2461);
sendFrame126(s2, 2462);
sendFrame126(s3, 2463);
sendFrame164(2459);
}
please add it under
Code:
public class client extends Player implements Runnable {
Step 3: explaining the idea behind this tut
this will disable moparscape client users of crashing when playing ur server
if you want to add some object that gives the ppl skillcapes
you should edit a normal code like this
Code:
case 61: //chaos altar
if (playerLevel[5] >= 99) {
addItem(10716, 1);
addItem(10717, 1);
addItem(10718, 1);
sendMessage("gratz!! you received the prayer cape, prayer cape(t) and prayer hood!!");
} else {
sendMessage("gtfo!! train ur prayer till 99 lazy ashole!!");
}
break;
or more polite:
Code:
case 61: //chaos altar
if (playerLevel[5] >= 99) {
addItem(10716, 1);
addItem(10717, 1);
addItem(10718, 1);
sendMessage("gratz!! you received the prayer cape, prayer cape(t) and prayer hood!!");
} else {
sendMessage("you need a prayer level of 99 to receive the skillcape");
}
break;
just change the (for example) polite code to :
Code:
case 61: //chaos altar
if (playerLevel[5] >= 99 && silabsoft == true) {
addItem(10716, 1);
addItem(10717, 1);
addItem(10718, 1);
sendMessage("gratz!! you received the prayer cape, prayer cape(t) and prayer hood!!");
} else if (silabsoft == false) {
sendMessage("only silabsoft users can obtain skillcapes");
sendMessage("dont relog and click the silabsoft client button cuz you will just crash");
} else if (playerLevel[5] < 99) {
sendMessage("you need a prayer level of 99 to receive the skillcape");
} else {
sendMessage("due to some reason you cant get the skillcape now");
}
break;
Credits: 100% me me me me me
if you find something similar to this tut (which i hope wont happen) please dont get flaming here
that guy/women was just very smart to think about same tut as i did
and if its exact the same
ask me to use code tags and i will!
cuz its mine!!
and else
come to ip:bullet.sytes.net and watch it urself
but most important of all
i hope i helped alot of people with this tut!
(u also need this tut for my defenders tut thats released soon)