Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Jail Script (https://forums.graalonline.com/forums/showthread.php?t=4944)

ownerofbabylon 06-16-2001 09:10 AM

Jail Script
 
Ok, on my PW I have a jail but i need some scripts for it. One I am trying to make is like this. There are 10 jail cells. When someone gets warped to jail it auto checks to see which cells are empty or has the least people and puts them in that one. The other one is what is the script so that they cannot type to get away like Unstick me. What is the script to get rid of that?

Tyhm 06-17-2001 07:22 AM

1) I cheat. Figure the cells are all numbered:

if(playerenters){
this.rot=(this.rot+1)%10;
if(this.rot<5) playery=10;
else playery=50;
if(this.rot=0) playerx=10;
else if(this.rot=1) playerx=20;
//else if etc.
}

Every time someone enters, it puts them in the next cell, and it sorta loops, you get the idea.

2) The easy way is to edit the serverconfig.txt in your playerworld's FTP root directory, set the JailLevels=police2.graal line up right. The hard(er) way is to set a flag when they enter the jail, and an NPC in onlinestartlocal to warp them back if they unstick, but it's not as tidy.

General 06-17-2001 08:52 AM

Especially if NPC-Server goes down
No-Server = Fugitives

Astram 12-05-2010 04:24 AM

To get rid of "unstick me" it's quite easy....
Just edit your server options...
jaillevels= jail.nw

fowlplay4 12-05-2010 04:31 AM

No ****ing way you bumped this, no ****ing way.

Cloven 12-05-2010 04:38 AM

Necro of the year, right here.

Posts ++.

Imperialistic 12-05-2010 08:53 AM

holy ****

nullify 12-05-2010 11:09 AM

Hey thanks for the help man!

ffcmike 12-05-2010 12:10 PM

I'm sure Lord Helmut will highly appreciate your useful contribution to this thread.

Deas_Voice 12-05-2010 01:02 PM

holy ****
no ****ing way!
o_O

Soala 12-05-2010 01:33 PM

postcount++

DrakilorP2P 12-05-2010 02:03 PM

Maybe this shows up in search?

xXziroXx 12-05-2010 03:03 PM

Quote:

Originally Posted by Tyhm (Post 97171)
1) I cheat.

Cheater!!

Crono 12-05-2010 05:14 PM

raise your hand if you actually played babylon

-raises hand-

Unkownsoldier 12-05-2010 06:16 PM

Nooooooooooooo wayyyyyyy a double rainbowww?!!!!!!!!!!! Nooo wayy


All times are GMT +2. The time now is 07:30 PM.

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