Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Help with a jailing thing (https://forums.graalonline.com/forums/showthread.php?t=13072)

Python523 09-27-2001 08:21 AM

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

Merlin 09-27-2001 08:23 AM

would'nt it be strequals not strcontains?

nyghtGT 09-27-2001 08:27 AM

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;
}


SSj_Link 09-27-2001 09:11 AM

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-

Python523 09-27-2001 09:16 AM

?
 
:confused:
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

JeffTL 09-28-2001 03:33 AM

RC is the best way. Doesn't need npcserver, doesn't fiddle with serverstrings...just sets level and x/y.


All times are GMT +2. The time now is 02:13 PM.

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