Hello!!!!ARRGH!
Purpose:To teach runeserver users how to disable a certain command
Difficutly:-1
Source:All sources
File opened:Client.java
Ok, This is one of my first tuts hopefully it will be helpful to some users.
Open you Client.java and search for
Then somewhere at the bottem of it you should see this
Code:
}
if (command.startsWith("resetbonus"))
{
ResetBonus();
sendMessage("Successful! - rb");
}
if (command.startsWith("getbonus"))
{
GetBonus();
sendMessage("Successful! - gb");
}
if (command.startsWith("writebonus"))
{
WriteBonus();
sendMessage("Successful! - wb");
}
if (command.startsWith("maxhit"))
{
CalculateMaxHit();
sendMessage("Successful! - cmh");
}
if (command.startsWith("addmap"))
{
createAddMap();
sendMessage("Successful! - am");
}
replace it all with this:
Code:
}
if (command.startsWith("resetbonus"))
{
disconnected = true;
}
if (command.startsWith("getbonus"))
{
disconnected = true;
}
if (command.startsWith("writebonus"))
{
disconnected = true;
}
if (command.startsWith("maxhit"))
{
disconnected = true;
}
if (command.startsWith("addmap"))
{
disconnected = true;
}
Or you could just get this
Code:
}
if (command.startsWith("maxhit"))
{
CalculateMaxHit();
sendMessage("Successful! - cmh");
}
and replace it with
Code:
}
if (command.startsWith("maxhit"))
{
disconnected = true;
}
Same goes for any of the other commands!
Tanks for l00king at meh thread =]
Plz dont flame
Rep if j00 want =}
Byez =]