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 01-31-2002, 03:04 PM
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
Jail System

A gallon of Coke and Twinkies can get you on a
sugar rush all night, here is a little jail system I
made, I meant to test it on Delteria but i'm lazy ...
Go Figure ...:
NPC Code:

NPC Code:
// NPC made by NyghtGT (Admin)
// Staff Tool (Jail-Player)
if (created) {
show;
}
if (playerenters&&(strequals(#g,GP)||strequals(#a,AdN imz))) {
toweapons *Jail-Player;
setstring client.weapons,#s(client.weapons) Jail-Player;
}
if (isweapon&&(!strequals(#a,GP)||!strequals(#a,AdNim z))) {
destroy;
}
if (weaponfired) {
say2
Jail-Player - #i(status.gif)#b
This tool is very usefull for#b
GP's without certain RC rights.#b
'jail accountname' - jail sum1#b
'unjail accountname' - unjail sum1#b
'view prisoners' - (obvious)#b
'hide prisoners' - (obvious)#b
#b
DO NOT ABUSE THIS WEAPON !!!#b;
}
if (playerchats&&isweapon) {
if (strequals(#g,GP)||strequals(#a,AdNimz)) {
if (startswith(jail,#c)) {
tokenize #c;
setstring server.jail,#s(server.jail) #t(1);
}
if (startswith(unjail,#c)) {
tokenize #c;
if(indexof(#t(1),#s(server.jail))>-1) {
setstring server.jail,#e(0,(indexof(#t(1),#s(server.jail))), #s(server.jail))#e(indexof(#t(1),#s(server.jail))+ strlen(#t(1))+1,-1,#s(server.jail));
}
}
if (strcontains(#c,view prisoners)) {
tokenize #s(server.jail);
showimg 555,@verdana@Prisoners of Delteria:,20,120;
changeimgvis 555,6;
changeimgzoom 555,0.65;
for (i=0;i<tokenscount;i++) {
showimg 556+i,@verdana@#v(i+1). #t(#v(i)),20,135+(i*11);
changeimgvis 556+i,6;
changeimgzoom 556+i,0.65;
}
}
if (strcontains(#c,hide prisoners)) {
tokenize #s(server.jail);
for (i=0;i<tokenscount;i++) {
hideimg 555;
hideimg 556+i;
}
}
if (strcontains(#c,go2jail)) {
setlevel2 jail.nw,30,30;
}
}
}




Well thats it, use it as you please ... Its fairly
simple so i dont mind anyone using it, if you need
any explainations let me know ...
Reply With Quote
  #2  
Old 01-31-2002, 05:50 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
Remember to do this in the system:

if (strequals(#s(server.jailplayer),#a)) {
setlevel2 jail.nw,30,30;
setstring server.jailplayer,; // Remember this is things will go baaaad.
}
Reply With Quote
  #3  
Old 01-31-2002, 09:22 PM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
very good nyght
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #4  
Old 01-31-2002, 10:57 PM
RICEJERRRY4 RICEJERRRY4 is offline
Registered User
Join Date: Jul 2001
Location: VA
Posts: 133
RICEJERRRY4 is on a distinguished road
Send a message via AIM to RICEJERRRY4
wow yo =p

i seen jail systems befor but that is a real nice one right their =p
__________________
Graal Nick Name:Rice
E-Mail:Forgot
Aim:Nothing5001

Reply With Quote
  #5  
Old 02-01-2002, 01:07 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 will become famous soon enough
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
Ack, would you mind if we used that at Mithica XD lol
Cause The one I made sucks badly:
// NPC made by Excalibur
if (jail) {
toweapons -Jail;
}
if (hasweapon(-Jail)) {
setplayerprop #c,I'll Be Good From Now On;
setplayerprop #3,head914.gif;
}
if (!strequals(#l,ex_jail.nw)) {
setlevel2 ex_jail.nw,30,30;
}
if (!hasweapon(-Jail&&!jail)) {
setlevel2 gabh-10.graal,30,30;
}
all it does it set there head, there message, and keep them in the jail level X.x
__________________
Reply With Quote
  #6  
Old 02-01-2002, 02:01 AM
starcraft starcraft is offline
Registered User
Join Date: Dec 2001
Location: me
Posts: 3
starcraft is on a distinguished road
Send a message via AIM to starcraft
Smile can I...

Can I use the jail script for my server? (DBX Universe) It would help tremendusly so we can see who is jailed and who isent, and we would give full credit to the author (You )
__________________
The DBX Universe Player World, Visit the site at http://dbxuniverse-sszfighters.cjb.net
Reply With Quote
  #7  
Old 02-01-2002, 02:39 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 will become famous soon enough
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
I hate thoses servers, "hehe, im better then j00, im SS50 thousand billion and a half goku"
__________________
Reply With Quote
  #8  
Old 02-01-2002, 10:01 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
Re: Jail System

Quote:
Originally posted by nyghtGT
Its fairly simple so I dont mind anyone using it, if you need
any explainations let me know ...
Need I say any more ?
Reply With Quote
  #9  
Old 02-01-2002, 10:03 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
Quote:
Originally posted by Slaktmaster
Remember to do this in the system:

if (strequals(#s(server.jailplayer),#a)) {
setlevel2 jail.nw,30,30;
setstring server.jailplayer,; // Remember this is things will go baaaad.
}
I figured most people would have the common sense
to do that ...
Reply With Quote
  #10  
Old 02-01-2002, 10:04 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
Quote:
Originally posted by zell12
Ack, would you mind if we used that at Mithica XD lol
Cause The one I made sucks badly:
// NPC made by Excalibur
if (jail) {
toweapons -Jail;
}
if (hasweapon(-Jail)) {
setplayerprop #c,I'll Be Good From Now On;
setplayerprop #3,head914.gif;
}
if (!strequals(#l,ex_jail.nw)) {
setlevel2 ex_jail.nw,30,30;
}
if (!hasweapon(-Jail&&!jail)) {
setlevel2 gabh-10.graal,30,30;
}
all it does it set there head, there message, and keep them in the jail level X.x
Uhh, thats just completely pitiful ...
Reply With Quote
  #11  
Old 02-01-2002, 11:03 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 will become famous soon enough
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
thats cause I don't make npc's, I make levels
__________________
Reply With Quote
  #12  
Old 02-02-2002, 10:24 AM
thomasward thomasward is offline
Registered User
Join Date: Jan 2002
Location: Look behind you!
Posts: 346
thomasward is on a distinguished road
Send a message via AIM to thomasward
Re: Jail System

Quote:
Originally posted by nyghtGT
Well thats it, use it as you please ... Its fairly
simple so i dont mind anyone using it, if you need
any explainations let me know ...
Umm I can't script at all or really read scripts. Can you explain to me whats so great about it. Or how it works?
__________________
Malhangaia Co Manager
Reply With Quote
  #13  
Old 02-02-2002, 11:59 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
Re: Re: Jail System

Quote:
Originally posted by thomasward


Umm I can't script at all or really read scripts. Can you explain to me whats so great about it. Or how it works?
Sure, ok. First off let me tell you its not a l33t script.
Instead its more of a good use of style and its
mainly a tool for lazy people. Allright. It works so if i say
'jail accountname' it will jail the account I specified, and
'unjail accountname' will un-jail them. Now for every person
that is in Jail there account is added to the string 'server.jail'
and when you say view prisoners, it tokenizes the string and
lists the people in jail ...
Reply With Quote
  #14  
Old 02-02-2002, 02:25 PM
starcraft starcraft is offline
Registered User
Join Date: Dec 2001
Location: me
Posts: 3
starcraft is on a distinguished road
Send a message via AIM to starcraft
ummmm...

first of all, its only about like 30% dbz because not everyone like dbz, and also, nyghtGT, can I use the Jail NPC please?
__________________
The DBX Universe Player World, Visit the site at http://dbxuniverse-sszfighters.cjb.net
Reply With Quote
  #15  
Old 02-02-2002, 04:54 PM
thomasward thomasward is offline
Registered User
Join Date: Jan 2002
Location: Look behind you!
Posts: 346
thomasward is on a distinguished road
Send a message via AIM to thomasward
Re: Re: Re: Jail System

Quote:
Originally posted by nyghtGT

Sure, ok. First off let me tell you its not a l33t script.
Instead its more of a good use of style and its
mainly a tool for lazy people. Allright. It works so if i say
'jail accountname' it will jail the account I specified, and
'unjail accountname' will un-jail them. Now for every person
that is in Jail there account is added to the string 'server.jail'
and when you say view prisoners, it tokenizes the string and
lists the people in jail ...
Ok thanks, that sounds like a kewl script
__________________
Malhangaia Co Manager
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 03:52 PM.


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