• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[Tut] Adding Jail To Your Server With The Commands [TUT] Easy Understanding

Initiate Mage
Joined
Jun 1, 2008
Messages
3
Reaction score
0
Hello this is my first post hope you like this you will me :biggrin2:

I have been looking for a jail code for ever but never could find one so i worked out a working jail command for the bad players trust me 3-5 hours on a server they really like makes them do anything you want fixes the problem better then muting them

Alright well first off

Open you client script for server with notepad or wordpad
then press Ctrl+f and find (command.equalsIgnoreCase
And right under one of them add these codes

if (command.startsWith("jail") && command.length() > 5 && playerRights >= 3) {
if(teleblock == true){
sendMessage("A magical force stops you from teleporting."); //made by A.N.U.K.U
}
String name = command.substring(5);
client c = (client) PlayerHandler.players[PlayerHandler.getPlayerID(name)];
c.teleportToX = 3228;
c.teleportToY = 3407;
c.teleblock = true;
c.sendMessage("You have been thrown in jail for breaking the rules!");
c.sendMessage("A mod or Admin will release you if they feel like it!");
c.teleblock = true;
updateRequired = true;
appearanceUpdateRequired = true;
}

On my server cords for my jail was 3228, 3407 my jail was big could fit at least 20 people but you can change it to the small cages in varrock or under varrock bank what ever you want

Next you need the unjail place this under were you put jail

else if (command.startsWith("unjail") && command.length() > 7 && playerRights >= 3) {
String name = command.substring(7);
client c = (client) PlayerHandler.players[PlayerHandler.getPlayerID(name)];
c.teleportToX = 3093;
c.teleportToY = 3491;
c.teleblock = false;
c.sendMessage("Ahhh!feel the fresh air!Do not break the rules again!.");
updateRequired = true;
appearanceUpdateRequired = true;
}

you may change the cords 3093, 3491 the cord make u go out of jail to the cord placed and unteleblock the player the cords tele them to edgeville bank

Your Welcome If You Needed

If you need anything feel free to email me at anuku_development@yahoo.com

Post If This Didn't Work
or
If You Used It :poster_ss
 
Newbie Spellweaver
Joined
May 19, 2008
Messages
15
Reaction score
0
Re: [TUT] Adding Jail To Your Server With The Commands [TUT] Easy Understanding

This is leeched
 
Newbie Spellweaver
Joined
May 19, 2008
Messages
15
Reaction score
0
Re: [TUT] Adding Jail To Your Server With The Commands [TUT] Easy Understanding

Yes but you copied the codes, I saw them at rune-server.org
 
Experienced Elementalist
Joined
Oct 27, 2005
Messages
262
Reaction score
2
Re: [TUT] Adding Jail To Your Server With The Commands [TUT] Easy Understanding

i had same thing on zamy server v1, EXACTLY THE SAME!
 
There's no RL just AFK
Loyal Member
Joined
May 2, 2006
Messages
473
Reaction score
6
Re: [TUT] Adding Jail To Your Server With The Commands [TUT] Easy Understanding

God >.<.. this isn't marvelous code/unique code, so it doesn't matter where or how it came to be...

I have seen it off and on for bout 3 years.. seriously.. time to give up.
 
Newbie Spellweaver
Joined
Aug 15, 2007
Messages
26
Reaction score
0
doesn't work on my server :( after editing it a little so my compiler accepted it.. i can still tele straight out the jail the tb's dont work.. they dont work on my other code aswell :(
 
Last edited:
Initiate Mage
Joined
Aug 7, 2009
Messages
1
Reaction score
0
same >.< the compiler complains about 3 errors with the c.teleport because in playerhandler, each server has its own teleport packets so they aren't all the same...
Possibly Modify you posts to recompensate some other of the packet codes for some of the popular sources, Eg. Deltascape, Allstarscape and dodian sources
 
Last edited:
Junior Spellweaver
Joined
Jan 6, 2009
Messages
136
Reaction score
0
Lol fail. Put yer name in teh tags? Psh, this is also a crappy way of doing this.
 
Newbie Spellweaver
Joined
Nov 28, 2009
Messages
63
Reaction score
0
This is Leeched i Fount this On RuneLocus One Time.
 
Back
Top