Graal Forums

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

lordhelmut 12-28-2001 03:43 AM

Jailer?
 
I set the level jail.nw to the jail level on ServerOptions.txt and reloaded options but it didnt work. Now I cannot warp to it. So im going to take that off of serveroptions.txt and make this.

I wanna make a NPC that lets me say something like Jail "account" for "amount of time" or even something where I can just jail an account. And then it sets a flag for them like jailed so if they try and warp out it detects it and warps back. What I need is just a NPC that lets me say Jail "account" and it puts them in jail.nw

If anyone knows please tell me =(

Faheria_GP2 12-28-2001 03:58 AM

damnit helmut! just ask me! and for god's sake get on AIM

lordhelmut 12-28-2001 04:14 AM

lol sorry

Python523 12-28-2001 04:15 AM

Re: Jailer?
 
Quote:

Originally posted by lordhelmut
I set the level jail.nw to the jail level on ServerOptions.txt and reloaded options but it didnt work. Now I cannot warp to it. So im going to take that off of serveroptions.txt and make this.

I wanna make a NPC that lets me say something like Jail "account" for "amount of time" or even something where I can just jail an account. And then it sets a flag for them like jailed so if they try and warp out it detects it and warps back. What I need is just a NPC that lets me say Jail "account" and it puts them in jail.nw

If anyone knows please tell me =(

You could use tokenize to set the server.string and have the server's system look for that string and if the string equals the players account, it warps them to jail and when they enter the level, it gives them a weapon that warps them to that level every .5 seconds
I think this should work:

// NPC made by Jagen
if (created&&strequals(#g,Admin)||created
&&strequals(#a,lordhelmut)&&!isweapon)
{toweapons *Jailer;this.mode=0}
if (weaponfired&&this.mode==0)
{setplayerprop #c,Who's the criminal?;
this.mode=1;}
if (playerchats&&this.mode==1)
{tokenize #c;setstring
server.jail,#t(0);
this.mode=0;
setplayerprop #c,Done the criminal's jailed;
} You fire the weapon then say the persons account
and for the system just has something that looks for the server.jail and if it equals the player's account, it sets the level to jail1.nw
I think it would be something like this:
if (timeout)
{
if (strequals(#s(server.jail),#a))
setlevel jail1.nw;
}timeout=1}

ArmadeusWarlock 12-31-2001 01:20 PM

So smert :D

if you looked through the forums you would have found mine, its pretty good =)

Slaktmaster 12-31-2001 06:40 PM

I already have one. :cool:

aesquivel 12-31-2001 10:28 PM

you can find every thing on the forums jus about if u LOOK:megaeek:


All times are GMT +2. The time now is 05:00 AM.

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