Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-21-2001, 10:57 AM
Guest
Posts: n/a
Talking Cool little scripting event

Lets have a contest, who can do the best jail script. Mine is

NPC Code:


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

if (!hasweapon(*JAILED)&&!strequals(#g,Admin)||!streq uals(#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

NPC Code:


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




Put this is unstuck me place

NPC Code:


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.
Reply With Quote
  #2  
Old 05-21-2001, 11:11 AM
Lion'el-Jonson Lion'el-Jonson is offline
Please Wait....
Lion'el-Jonson's Avatar
Join Date: Mar 2001
Location: I like to eat food samples at price club.
Posts: 1,663
Lion'el-Jonson will become famous soon enough
Send a message via AIM to Lion'el-Jonson Send a message via Yahoo to Lion'el-Jonson
//NPC made by Gabriel
if (playerenters) {
{
if (playertouchsme) {
{
__________________


"My words are like weaponry on a record"
Reply With Quote
  #3  
Old 05-21-2001, 11:41 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
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.g raal) {
setlevel jail1.graal;
}

ok?
i dunno how thats a jail npc but it be funny
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #4  
Old 05-22-2001, 02:25 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
I would, but you'll just steal it for something...
Reply With Quote
  #5  
Old 05-22-2001, 03:45 AM
Guest
Posts: n/a
Steal what for something?
Reply With Quote
  #6  
Old 05-22-2001, 12:14 PM
LazyDragoon LazyDragoon is offline
Registered User
Join Date: May 2001
Location: Wa, USA
Posts: 16
LazyDragoon is on a distinguished road
Send a message via ICQ to LazyDragoon Send a message via AIM to LazyDragoon Send a message via Yahoo to LazyDragoon
//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 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. anyway tell me what you think.
__________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:04 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.