Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

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:42 PM.


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