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 09-27-2001, 08:21 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Exclamation Help with a jailing thing

Ok, I'm editing this from a handcuff thing where you say handcough account name and it freezes the player, I'm trying to make this into a jailing thing but I'm not having any luck, here's what I have so far.
for the jailer:
if (playertouchsme){
toweapons Jailer;
}
if (isweapon) {
if (playerchats) {
if (strequals(#c,jail account)&&this.action=0) {
setplayerprop #c,Enter Account Name;
sleep .5;
this.action=1;
}
if (this.action=1&&playerchats) {
setstring server.jailaccount,#c;
setstring server.unjailaccount,;
sleep .5;
this.action=0;
}
}
}
and in the system:
if (strcontains(#s(server.unjailaccount),#a))
enabledefmovement; setlevel2 main.graal,1,1;
}else{
timeout = .05;
}
if (timeout){
if (strcontains(#s(server.jailaccount),#a))
disabledefmovement;setlevel2 jail.graal,1,1;}else{
timeout = .05;
}
any help would be appreciated
Reply With Quote
  #2  
Old 09-27-2001, 08:23 AM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
would'nt it be strequals not strcontains?
Reply With Quote
  #3  
Old 09-27-2001, 08:27 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
jailing

This is what I use for all my jailing needs ....

this on NPC Character:
NPC Code:

//NPC made by Nyght2k1
if (playerchats && startswith(jail player,#c)) {
if (strcontains(#g,GP)) {
tokenize #c;
setstring server.jailaccount,#t(2);
}
}
if (playerchats && startswith(unjail player,#c)) {
if (strcontains(#g,GP)) {
tokenize #c;
setstring server.unjailaccount,#t(2);
}
}


this on System NPC:
NPC Code:

if (strequals(#a,#s(server.jailaccount)) {
set jailed;
}
if (jailed && !strequals(#L,jaillevel.graal)) {
setlevel jaillevel.graal;
}
if (strequals(#a,#s(server.unjailaccount)) {
set unjailed;
}
if (unjailed && strequals(#L,jaillevel.graal)) {
setlevel onlinestartlocal.graal;
}

Reply With Quote
  #4  
Old 09-27-2001, 09:11 AM
SSj_Link SSj_Link is offline
Registered User
Join Date: Jul 2001
Location: i r live in texas
Posts: 244
SSj_Link is on a distinguished road
Send a message via ICQ to SSj_Link Send a message via AIM to SSj_Link
Re: Help with a jailing thing

Quote:
Originally posted by Python523
Ok, I'm editing this from a handcuff thing where you say handcough account name and it freezes the player, I'm trying to make this into a jailing thing but I'm not having any luck, here's what I have so far.
for the jailer:
if (playertouchsme){
toweapons Jailer;
}
if (isweapon) {
if (playerchats) {
if (strequals(#c,jail account)&&this.action=0) {
setplayerprop #c,Enter Account Name;
sleep .5;
this.action=1;
}
if (this.action=1&&playerchats) {
setstring server.jailaccount,#c;
setstring server.unjailaccount,;
sleep .5;
this.action=0;
}
}
}
and in the system:
if (strcontains(#s(server.unjailaccount),#a))
enabledefmovement; setlevel2 main.graal,1,1;
}else{
timeout = .05;
}
if (timeout){
if (strcontains(#s(server.jailaccount),#a))
disabledefmovement;setlevel2 jail.graal,1,1;}else{
timeout = .05;
}
any help would be appreciated
Hmmm that loks the like the jailer script that Tha Shadows Has.....

http://geocities.com/thashadowsgraal/

I think thats the addy

-Freaky-
__________________
-People with my Password: Me (Boozy), Ghostface Killa, bgraven, Freaky Carnie, Dark Warlock, and SoulReaver.
-So they can all post.-

-I hate my account name -

~Old Names: Link, Darklink, Neo, then Boozy when Bravo died. (So some people will recognize me)~

AIM: boozyneo
ICQ: 116030736
Msn: [email protected]
Email: [email protected]


-DANCE SPAM DANCE!- Dark Warlock
Reply With Quote
  #5  
Old 09-27-2001, 09:16 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
?


I've never seen that site plus the link doesn't work, it might be similar but most jail scripts probably are, there can't be that many different ways to do it, some servers probably just use the rc to jail the person
Reply With Quote
  #6  
Old 09-28-2001, 03:33 AM
JeffTL JeffTL is offline
Registered User
Join Date: Sep 2001
Posts: 374
JeffTL is on a distinguished road
RC is the best way. Doesn't need npcserver, doesn't fiddle with serverstrings...just sets level and x/y.
__________________
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 09:55 PM.


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