Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   warpto (https://forums.graalonline.com/forums/showthread.php?t=2650)

KJS 05-11-2001 10:22 PM

ok well I am making a jail system for the police...
and I kind of want it like the one on 2001 (so I wont have to give rcs to everyone)
to jail someone all I need to do is set the players flag.
I am wondering how I can do that from a npc (like finds the account and edits the flags)

I am tring to make it into the police system npc (so they can jail people from any level)
so if there is a way to do it in a weapon please help me

and still help me if there isn't...

Rankar_D33 05-15-2001 11:35 AM

Wow, just as i thought, I knew a command like this existed virtually, but I though I would be a fool to ask :o

omni-m00gle 05-15-2001 01:37 PM

Couldnt you just set a server flag to jail them?

Falcor 05-16-2001 09:47 AM

Heh.. Id do it this way..
 
NPC Code:

if (created) setgif system.gif;
if (playerchats) {
if (strequals(#g,GP)) {
setstring this.lastuse,#a;
tokenize #c;
if (strequals(#t(0),jailaccount)) {
setstring this.jail,#t(1);
with(getplayer(#s(this.jail))) {
this.test = 1;
}
if (this.test == 1) {
this.test = 0;
with (getplayer(#s(this.jail))) {
warpto #F,playerx,playery;
setlevel2 jail.graal,30.5,30;
with(getplayer(#s(this.lastuse))) {
warpto #F,playerx,playery;
message Jailed #s(this.jail)!
sleep 3;
message ;
}
}
} else if (this.test == 0) {
message That Accout is invalid;
sleep 3;
message ;
}
}
}
}



Id do it nmore liek that.... No real confusing strings or anything... And it will tell you if you typed an account thats not on the server... No server junks... Only works with NPC server (or course) But it works. juslt like change jail.graal to your jail level and make it an officail jail level via serveroptions.

=)


All times are GMT +2. The time now is 01:18 AM.

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