Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-28-2001, 03:43 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
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 =(
Reply With Quote
  #2  
Old 12-28-2001, 03:58 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
damnit helmut! just ask me! and for god's sake get on AIM
Reply With Quote
  #3  
Old 12-28-2001, 04:14 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
lol sorry
Reply With Quote
  #4  
Old 12-28-2001, 04:15 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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}
Reply With Quote
  #5  
Old 12-31-2001, 01:20 PM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
So smert

if you looked through the forums you would have found mine, its pretty good =)
Reply With Quote
  #6  
Old 12-31-2001, 06:40 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
I already have one.
Reply With Quote
  #7  
Old 12-31-2001, 10:28 PM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
you can find every thing on the forums jus about if u LOOK
__________________
Reply With Quote
Reply


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 10:20 AM.


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