Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 05-11-2001, 10:22 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool

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...
__________________
Thanks,
-KJL
  #2  
Old 05-15-2001, 11:35 AM
Rankar_D33 Rankar_D33 is offline
Registered User
Join Date: May 2001
Posts: 3
Rankar_D33 is on a distinguished road
Send a message via AIM to Rankar_D33
Wow, just as i thought, I knew a command like this existed virtually, but I though I would be a fool to ask :o
__________________
  #3  
Old 05-15-2001, 01:37 PM
omni-m00gle omni-m00gle is offline
delete all proofs
omni-m00gle's Avatar
Join Date: Apr 2001
Location: United Kingdom
Posts: 2,528
omni-m00gle is on a distinguished road
Send a message via AIM to omni-m00gle
Couldnt you just set a server flag to jail them?
__________________
-+ Malak +-

Never taste of the fruit...

Quote:
Originally posted by Stefan
on andor i got jailed for
impersonating me
  #4  
Old 05-16-2001, 09:47 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
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.

=)
__________________

subliminal message: 1+1=3
 


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:55 PM.


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