PDA

View Full Version : Cool little scripting event


05-21-2001, 10:57 AM
Lets have a contest, who can do the best jail script. Mine is



// NPC made by Ice Pick (Server Owner)
if (created) {
hide;
}

if (!hasweapon(*JAILED)&&!strequals(#g,Admin)||!strequals(#g,Server Owner)||!strequals(#g,GP Chief)||!strequals(#g,GP)||!strequals(#g,GP Captain)||!strequals(#g,GP Cadet)||!strequals(#g,LAT)||!strequals(#g,Head LAT)||!strequals(#g,LAT Chief)||!strequals(#g,LAT Cadet)||!strequals(#g,LAT Captain)||!strequals(#g,NAT Cadet)||!strequals(#g,NAT)||!strequals(#g,NAT Chief)||!strequals(#g,NAT Captain)||!strequals(#g,Head NAT)||!strequals(#g,Head LAT)||!strequals(#g,Web Master)||!strequals(#g,Guild Maker)||!strequals(#g,Co Owner)||!strequals(#g,Lead Programmer)||!strequals(#g,Head Admin))
toweapons *JAILED;

if (isweapon) {
if (strequals(#g,Admin)||strequals(#g,Server Owner)||strequals(#g,GP Chief)||strequals(#g,GP)||strequals(#g,GP Captain)||strequals(#g,GP Cadet)||strequals(#g,LAT)||strequals(#g,Head LAT)||strequals(#g,LAT Chief)||strequals(#g,LAT Cadet)||strequals(#g,LAT Captain)||strequals(#g,NAT Cadet)||strequals(#g,NAT)||strequals(#g,NAT Chief)||strequals(#g,NAT Captain)||strequals(#g,Head NAT)||strequals(#g,Head LAT)||strequals(#g,Web Master)||strequals(#g,Guild Maker)||strequals(#g,Co Owner)||strequals(#g,Lead Programmer)||strequals(#g,Head Admin)) {
destroy;
}
if (weaponsenabled) {
disableweapons;
}
if (!strequals(#L,jailcell1.graal)) {
setlevel2 jailcell1.graal,35.5,31;
}
if (playerchats) {
if (strequals(#c,unstuck me)||strequals(#c,unstick me)) {
setplayerprop #c,You cannot use #c while in jail.;
}
}
}



Then put this in the jail also



if (playerenters) {
if (!strcontains(#s(server.jail), #a)) {
setstring server.jail,#s(server.jail) #a;
}
}



Put this is unstuck me place



if (strcontains(#s(server.jail),#a)) {
setlevel2 jailcell1.graal,35.5,31;
}



Anyone up to battle my script?
After everyone does their script I will do a another post with a poll on the scripting page with the top 5 people with their jail scripts and you will vote for who's script you think is the best.
Also the winner with the best one I will buy a Brand new with your name account for NewMain, So if your a bomy you can have a human account, Or if your a human you can have a bomy account.

Lion'el-Jonson
05-21-2001, 11:11 AM
//NPC made by Gabriel
if (playerenters) {
{
if (playertouchsme) {
{

LiquidIce00
05-21-2001, 11:41 AM
if (playerenters) {
toweapon -Jail;
timeout=.1;
}
if (timeout) {
if (this.callcount=0) { this.callcount=1;setlevel jail1.graal;}
else { this.callcount=0; setlevel jail2.graal; }
}
timeout=1;
}
if (playerenters&&(isweapon)) {
timeout=1;
}

if (!strequals(#L,jail1.graal)&&!strequals(#L,jail2.graal) {
setlevel jail1.graal;
}

ok?
i dunno how thats a jail npc but it be funny :D

kyle0654
05-22-2001, 02:25 AM
I would, but you'll just steal it for something...

05-22-2001, 03:45 AM
Steal what for something?

LazyDragoon
05-22-2001, 12:14 PM
//put this in jail area
if(playerenters){set jailed;timeout=.05}
if(jailed&&timeout){freezeplayer 40;setplayerprop #c,I've been Jailed for breaking the rules;disableweapons;}


If they somehow get out give them this npc to prevent it

//Punisher
if(playerenters){toweapons -Punisher;set punisher}
if(playerchats&&punisher){freezeplayer 40;setplayerprop #c,I've broken the rules;disableweapons;}


Now put this in the unstick me place incase they somehow get out

//Setback
if(playerenters&&jailed){setlevel2 jail.graal,25,25;}


I have a nice ban script as well if anyone wants it here it is.

//Set a level with a totally black background to help keep people in the level.

if(playerenters&&hacking){setplayerprop #c,Banned (Hacking)}
if(playerenters){setplayerprop #c,Banned ();timeout=.05}
if(timeout){playerx=random(0,60);playery=random(0, 60);
setplayerprop #c,Banned ();timeout=.05}


Well that does it :D I hope you all enjoy those scripts I'm using them and they all work. Punisher is a pain in a persons side if you don't remove it from them so maybe it would be a good idea to leave it in there inventory if you think they may do more harm. :D anyway tell me what you think.