Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   So im working on a jailed script (https://forums.graalonline.com/forums/showthread.php?t=50920)

Gman4pwnu 02-07-2004 06:19 AM

So im working on a jailed script
 
For making sure they dont do unstick me i do so:

if (playerchats && strequals(#c,Unstick Me)){
setplayerprop #c, Disabled;
}

But it seems the unstick me comes out before it says disabled, and the player can unstick themself. =\

So how can i just purely cancel the text from comin out of their mouth?

Thallen 02-07-2004 06:23 AM

You don't need that if you just put the level in the jaillevels in your server options...

xManiamaNx 02-07-2004 06:24 AM

should work like that... i think.

in the unstick me level put a npc in there that will warp them back to jail if they manage to "unstick me" out.

and:

Make
An
Effort
To
Learn!

Problem Solving is YOUR FRIEND

Duwul 02-07-2004 06:49 AM

If the script is made clientside, it will work. Serverside has some delay.
Also, don't forget to check for 'unstuck me'.
Your best bet is just putting the level in the jaillevels in the serveroptions.

osrs 02-07-2004 04:08 PM

Or maybe set a jail flag.

NPC Code:

if(playerchats && strequals(#c,unstick me) && client.jailed){
say2 You're jailed;
}



The flag won't let you warp.

WanDaMan 02-07-2004 04:32 PM

Do what osrs has said. (If you can't; don't make another thread about it just add it in here)

Alexander 02-07-2004 05:50 PM

That would only work for non trials o.o

Duwul 02-07-2004 06:03 PM

The script has to be clientside though..=/

ZeLpH_MyStiK 02-07-2004 07:07 PM

Or make a clientside npc and set the player's chat in a timeout, that should work nicely.

osrs 02-07-2004 07:08 PM

Quote:

Originally posted by Alexander
That would only work for non trials o.o
Then for trials > Ban :P

WanDaMan 02-07-2004 08:10 PM

Trial users should be put on a server which isn't for the public players, just a server what has lots to do;so then you don't loose ap by pk sparring :(
Lame excuse but it should be done :-)

DIABLO2099 02-08-2004 06:02 AM

Make a database NPC and save all accounts in a string. You can figure out what to do next...

Termina_Owner 02-08-2004 06:05 AM

That is illegal.

EDIT: Thought that was the Trail Solution.

Yea, database NPC with account names.

NPC Server that sets and warps the account to jail

NPC that says if the player isn't in jail and is out of jail, it pms RC AND jails them (PM RC to tell he was out, warning staff that he hacked out.)

Vegeta940 02-09-2004 02:42 PM

Hey
 
Dude, they may say all you have to do is put in jail lvls in ur server options but I came up with the answer to ur question a while ago on Spartica, heres the script.

//#CLIENTSIDE
if (created) {
}
if (playersays(unstick me)) {
setplayerprop #c,Disabled;
setlevel2 jail.nw,30,30;
}


Does that help at all?

Vegeta940 02-09-2004 02:43 PM

Hye again
 
Talking to Rancid or w/e ur name is, yea i know but hes talking about lvls that arent in server options, he wants to know how to do without putting in server options.

GoZelda 02-09-2004 09:50 PM

Oh i really want to get banned on your server. I just say

unstuck me

And i get away XD

Termina_Owner 02-10-2004 02:54 AM

unstuck me is still functional?

Loriel 02-10-2004 07:27 PM

I would probably disable `unstick me' and rescript it.

osrs 02-10-2004 08:22 PM

Quote:

Originally posted by Loriel
I would probably disable `unstick me' and rescript it.
Good choise.

Termina_Owner 02-10-2004 10:48 PM

Quote:

Originally posted by Loriel
I would probably disable `unstick me' and rescript it.
Erm... That a server option? I've been searching the forums for the place with all the availible server options, but seems like it never excisted (Stefan posted them, and I know that. But I can't find them)

Loriel 02-11-2004 02:56 PM

I think you can set the level to unstick to to an empty string.

Riot 02-11-2004 09:18 PM

Quote:

Originally posted by Loriel
I think you can set the level to unstick to to an empty string.
Yep you can. :)

KuJiGX 02-11-2004 10:44 PM

If your a new and u just start then u'd have to make the Control-NPC auto-warp them and set that they've been reset or something. As thats how i do my resetting.

and to fix it.
NPC Code:
//#CLIENTSIDE
if (playerchats) { //Im sure you know what this does.
if (strequals(#c,unstick me) || strequals(#c,unstuck me)) { //Checks if they say unstick/unstuck me.
setplayerprop#c,Pwned.; //you can change the text if you plz
}
}



And didn't warcaptain save trials accts in a database so when they logged on it auto-loaded it.


All times are GMT +2. The time now is 02:54 AM.

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