Okay this is for a scoring system that applys to all players for a mini game such as caslte wars.
In the castle wars tutorials you see out there the scoring sucks because it only shows your score go up and no one elses or the other teams, and it also resets to 0 when you log out. lol

Difficulty: 1/10
Classes Modified: Server.java/Client.java
Step 1: Server.java
add these ints
Code:
public static int ZammyScore = 0;
public static int SaraScore = 0;
under
Code:
public static int cycleTime = 500;
Done with server.java!
Step 2: Client.java
Now we need to make a way for the scores to go up(idk what you will do) so I will give an example in a command way lol.
add these commands
Code:
if (command.equalsIgnoreCase("zammyup"))
{
server.ZammyScore += 1;
}
if (command.equalsIgnoreCase("saraup"))
{
server.SaraScore += 1;
}
if (command.equalsIgnoreCase("scores"))
{
scores();
}
now for a score board...
add this void
Code:
public void scores() {
clearQuestInterface();
clearQuestInterface();
sendQuest("Close Window", 1137);//Close text
sendQuest("@[email protected]~Score Board~", 1139);//Line 1
sendQuest("", 1140);//Line 2
sendQuest("@[email protected]: " + server.ZammyScore, 1141);//Line 3
sendQuest("@[email protected]: " + server.SaraScore, 1142);//Line 4
sendQuest("", 1143);//Line 5
sendQuest(""1144);//Line 6
sendQuest("", 1145);//Line 7
sendQuest("", 1146);//Line 8
sendQuest("", 1147);//Line 9
sendQuest("", 1148);//Line 10
sendQuest("", 1149);//Line 11
sendQuest("", 1150);//Line 12
showInterface(1136);
}
And thats it!
Now you just got to add it in your mini game or what ever!