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 06-12-2001, 03:05 PM
Cybnext_Design Cybnext_Design is offline
Registered User
Join Date: Jun 2001
Posts: 244
Cybnext_Design is on a distinguished road
Send a message via AIM to Cybnext_Design
Question Jailer Script

Ok, im in need of a script that will jail someone by their account name, so like i would type:

jail [accountname]

and it would send them to the jail...

I hope someone can help me with this one. And if so, i thank you very much.
Reply With Quote
  #2  
Old 06-12-2001, 06:53 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
Something like this:
if (playerchats) {
tokenize #c;
if (strequals(#t(1),jail)) {
getplayer #t(2) {setlevel2 police2.graal;}
}
}

Could this work?
Reply With Quote
  #3  
Old 06-12-2001, 08:40 PM
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
Not quite

You couldn't really make awepon oput Of it I dont believe with is a client side function but If you just make a regular NPC or a database NPC it would be
NPC Code:

if (playerchats && strcontains(#c,jail)) {
tokenize #c;
if (strequals(jail,#t(0))) {
with (getplayer(#t(1))) {
setlevel2 jail.graal,30,30;
}
}
}


Nuce and simple really. Althouigh its much simpler just to warp them via RC.
__________________

subliminal message: 1+1=3

Last edited by Falcor; 06-12-2001 at 08:56 PM..
Reply With Quote
  #4  
Old 06-12-2001, 08:51 PM
Marco2002 Marco2002 is offline
Registered User
Join Date: Jun 2001
Location: Germany
Posts: 77
Marco2002 is on a distinguished road
Send a message via ICQ to Marco2002
and if you don't have NPC Server it would look like this:
NPC Code:

if (playerchats) {
if (strcontains(#c,jail) tokenize #c;
}
for (this.i=0;this.i<playerscount;this.i++) {
if (strcontains(#a(this.i),#t(2)) ) {
setlevel2 30,30,jail.graal;
}
}

__________________
Reply With Quote
  #5  
Old 06-12-2001, 08:56 PM
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
but...

Im not sure that would work.... Simply for the fact that the player chatting has set the flag therefor all actions are bassed on him. whethere or not its looking for another player... I duno though, I havnt been scripting non - p2p for a while so im a lil out of it.. But im pretty sure thats not posible..

You could however have something in a players wepons (system npc?) and then you could do
NPC Code:

if (playerchats && strcontains(#c,jail)) {
tokenize #c;
if (strequals(#t(0),jail)) {
setstring server.jailplayer,#t(1);
}
}



and in the players system have

NPC Code:
 
if (strequals(#a,#s(server.jailplayer))) {
setlevel2 jail.graal,30,30;
setstring server.jailplayer,;
}



I duno. Pick a number. anynumber. hehe
__________________

subliminal message: 1+1=3
Reply With Quote
  #6  
Old 06-13-2001, 06:14 AM
Komieko Komieko is offline
Registered User
Join Date: Mar 2001
Posts: 494
Komieko is on a distinguished road
So which of those work? @_@
Reply With Quote
  #7  
Old 06-13-2001, 06:44 AM
Cybnext_Design Cybnext_Design is offline
Registered User
Join Date: Jun 2001
Posts: 244
Cybnext_Design is on a distinguished road
Send a message via AIM to Cybnext_Design
I have only tried Falcor's. I am planning on trying the rest later today.... Falcor's always makes graal freeze tho since i have to use a server string....

If anyone else has some suggestions please tell me them.

Thanks
Reply With Quote
  #8  
Old 06-13-2001, 06:45 AM
TB3 TB3 is offline
Registered User
TB3's Avatar
Join Date: May 2001
Location: US of A State of VA
Posts: 658
TB3 is on a distinguished road
Send a message via Yahoo to TB3
Ummmmm how about NO

Fals script will work i dont even have to look at it im sure it will work the person who said the scirpt after him about non npcserver jail that willll lllllll nooooo t work what so ever a non npc server jail script isnt that complicated but im not going into detail just rc them on non npcserver servers
__________________

To the sun of your age, I arise
Reply With Quote
  #9  
Old 06-13-2001, 08:12 AM
Cybnext_Design Cybnext_Design is offline
Registered User
Join Date: Jun 2001
Posts: 244
Cybnext_Design is on a distinguished road
Send a message via AIM to Cybnext_Design
This is for my Non-RC GP's. So they can jail people...
So i really need this.
Reply With Quote
  #10  
Old 06-13-2001, 08:17 AM
Cybnext_Design Cybnext_Design is offline
Registered User
Join Date: Jun 2001
Posts: 244
Cybnext_Design is on a distinguished road
Send a message via AIM to Cybnext_Design
Maybe i just need to run it on GServer real quick to see if it works?
Reply With Quote
  #11  
Old 06-13-2001, 10:00 AM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
Yeah i think Falados is right, why go to all this scripting trouble! Just warp them with the RC!
__________________

-=Shard IceFire=-
Reply With Quote
  #12  
Old 06-13-2001, 10:11 AM
Cybnext_Design Cybnext_Design is offline
Registered User
Join Date: Jun 2001
Posts: 244
Cybnext_Design is on a distinguished road
Send a message via AIM to Cybnext_Design
Shard, how about reading a couple replies back and you will see that i said this is for my Non-RC GP's....Hence they cant warp people with RC....

Tristan
~Cybnext
Reply With Quote
  #13  
Old 06-13-2001, 02:17 PM
Brandon_Bravo Brandon_Bravo is offline
Registered User
Join Date: Jun 2001
Location: Kalamazoo, Michigan USA
Posts: 206
Brandon_Bravo is on a distinguished road
Send a message via ICQ to Brandon_Bravo Send a message via AIM to Brandon_Bravo Send a message via MSN to Brandon_Bravo Send a message via Yahoo to Brandon_Bravo
Cool Hi

Without an NPCServer, you would have to use a serverflag AND give everyone on the server a system npc.

For example:

NPC Code:
server.jailplayer=Brandon_Bravo

__________________
Brandon M.
Reply With Quote
  #14  
Old 06-13-2001, 02:22 PM
Cybnext_Design Cybnext_Design is offline
Registered User
Join Date: Jun 2001
Posts: 244
Cybnext_Design is on a distinguished road
Send a message via AIM to Cybnext_Design
So your saying that Falcor's script is right and should work, but wont work offline?
__________________
Graal2001 NPC Maker
Frolic Owner
Aim: C Y B N E X T
Reply With Quote
  #15  
Old 06-14-2001, 11:53 PM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
your wrong.
ive seen it doen on CDA without a system npc, and i made one myself without a system npc, however i dun have the level no more, cause it got deleted with the rest of the bravo levels... if anyone has Jailbook.graal from bravo, its in their :P
Reply With Quote
  #16  
Old 06-14-2001, 11:58 PM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
It might be a hidden System NPC, you know toweapons -System;?
I hate it when people use toweapons *System, just use toweapons -System
Reply With Quote
  #17  
Old 06-15-2001, 12:08 AM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
Quote:
Originally posted by General
It might be a hidden System NPC, you know toweapons -System;?
I hate it when people use toweapons *System, just use toweapons -System
no it wasnt :P i had rc there for a while, and the one i made for bravo ( which i was owner of ) certainly didnt have a system npc, cause we never had one at all......
so its possible
Reply With Quote
  #18  
Old 06-16-2001, 01:38 AM
CrazedMerlin CrazedMerlin is offline
Some Guy :\
Join Date: Apr 2001
Posts: 3,619
CrazedMerlin is on a distinguished road
Send a message via AIM to CrazedMerlin Send a message via Yahoo to CrazedMerlin
I remeber on elven lands there was a jailer NPC you say jail account it says what is the account and it worked and there was also one like that the enabled or disabled other peoples weapons
__________________

ICQ: 117881194
AIM: TehWizad
E-Mail: [email protected]
Reply With Quote
  #19  
Old 06-16-2001, 05:09 AM
Komieko Komieko is offline
Registered User
Join Date: Mar 2001
Posts: 494
Komieko is on a distinguished road
So well does anyone have any working ones? *is confused*
Reply With Quote
  #20  
Old 06-16-2001, 05:44 AM
Cybnext_Design Cybnext_Design is offline
Registered User
Join Date: Jun 2001
Posts: 244
Cybnext_Design is on a distinguished road
Send a message via AIM to Cybnext_Design
I think one of these will work, only it freezes everytime, and im not really sure why....Could someone please tell me?
__________________
Graal2001 NPC Maker
Frolic Owner
Aim: C Y B N E X T
Reply With Quote
  #21  
Old 06-16-2001, 05:04 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Quote:
Originally posted by Cybnext_Design
I think one of these will work, only it freezes everytime, and im not really sure why....Could someone please tell me?
Falados' one requires the NPC Server...
__________________

Reply With Quote
  #22  
Old 06-17-2001, 02:29 AM
Komieko Komieko is offline
Registered User
Join Date: Mar 2001
Posts: 494
Komieko is on a distinguished road
BAH!I'm looking for one that doesn't need an NPC server =D
Reply With Quote
  #23  
Old 06-18-2001, 08:28 AM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
I KNOW WHAT IS WRONG WITH FALADOS'S
NPC Code:

setlevel2 police2.graal blah,blah; //Stops all commands after setlevel2
setstring server.Jailplayer,; //Never gets excecuted

Reply With Quote
  #24  
Old 06-18-2001, 08:42 AM
Komieko Komieko is offline
Registered User
Join Date: Mar 2001
Posts: 494
Komieko is on a distinguished road
So what do we do?put setstring first?
Reply With Quote
  #25  
Old 06-18-2001, 09:00 AM
vergil vergil is offline
Registered User
vergil's Avatar
Join Date: Mar 2001
Posts: 1,408
vergil will become famous soon enough
Send a message via ICQ to vergil
yeah..
I dont think its possible for a script outside of the level and not in the inventory (system) to change a level of a player w/o an npc server. If you'd tell me how I'd love to hear it. You dont have to show us the script just give me a general idea..
it soudns impossible to me..
Reply With Quote
  #26  
Old 06-18-2001, 09:24 AM
CrazedMerlin CrazedMerlin is offline
Some Guy :\
Join Date: Apr 2001
Posts: 3,619
CrazedMerlin is on a distinguished road
Send a message via AIM to CrazedMerlin Send a message via Yahoo to CrazedMerlin
Quote:
Originally posted by vergil
yeah..
I dont think its possible for a script outside of the level and not in the inventory (system) to change a level of a player w/o an npc server. If you'd tell me how I'd love to hear it. You dont have to show us the script just give me a general idea..
it soudns impossible to me..
server.flags can be set by a NPC Weapon as far as i know, which can easily alter the server, with a System NPC
example
set a flag like server.destroy=superbomb
and it the system put something that detects that string and if playerhasweapon and it would be superbomb destroy
same applies for jailer, i would assume, since ive seen it done (Elven lands)
__________________

ICQ: 117881194
AIM: TehWizad
E-Mail: [email protected]
Reply With Quote
  #27  
Old 06-18-2001, 11:42 AM
vergil vergil is offline
Registered User
vergil's Avatar
Join Date: Mar 2001
Posts: 1,408
vergil will become famous soon enough
Send a message via ICQ to vergil
Quote:
Originally posted by CrazedMerlin

server.flags can be set by a NPC Weapon as far as i know, which can easily alter the server, with a System NPC
example
set a flag like server.destroy=superbomb
and it the system put something that detects that string and if playerhasweapon and it would be superbomb destroy
same applies for jailer, i would assume, since ive seen it done (Elven lands)
i meant w/o a npc weapon
Reply With Quote
  #28  
Old 06-18-2001, 12:17 PM
CrazedMerlin CrazedMerlin is offline
Some Guy :\
Join Date: Apr 2001
Posts: 3,619
CrazedMerlin is on a distinguished road
Send a message via AIM to CrazedMerlin Send a message via Yahoo to CrazedMerlin
Quote:
Originally posted by vergil


i meant w/o a npc weapon
hmm
if (created) {timeouteverywhere=0.5;
set server.flag;}
...
wouldnt that work?
__________________

ICQ: 117881194
AIM: TehWizad
E-Mail: [email protected]
Reply With Quote
  #29  
Old 06-18-2001, 10:57 PM
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
Quote:
Originally posted by General
I KNOW WHAT IS WRONG WITH FALADOS'S
NPC Code:

setlevel2 police2.graal blah,blah; //Stops all commands after setlevel2
setstring server.Jailplayer,; //Never gets excecuted

Oopsie... Well the Blah Blah is x,y if you havnt figured it out.. Hehehe... So when you put that in word-for-word then it never clears teh jailed player. thus warping you constantly in an insane loop!!! hehe
__________________

subliminal message: 1+1=3
Reply With Quote
  #30  
Old 10-21-2001, 02:44 AM
MrCoolDude MrCoolDude is offline
Registered User
Join Date: Jul 2001
Posts: 74
MrCoolDude is on a distinguished road
I would like to know how to do this on a NON-P2P server as well, without using a system npc.
__________________
Mista Neat
Reply With Quote
  #31  
Old 10-21-2001, 02:46 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Quote:
Originally posted by MrCoolDude
I would like to know how to do this on a NON-P2P server as well, without using a system npc.
Ugh, Make your own thread, don't bring back 2-month old ones
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #32  
Old 10-21-2001, 10:14 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
woh woh woh....hold on there....i got question, u can make a weapon or system in the players inventory un deleteable without a aterisk(*) by using a minus sign(-)??
Reply With Quote
  #33  
Old 10-21-2001, 10:17 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
hmmm heres 2 more questions...how would i make the inventory item with a red name?? and how would i go about doing that thing so that the player can have a inventory in a inventory like on Divided Kingdoms i think it is where it says Goodies, then when ur in their you can go back? Would that work for non-p2p?

Mr. Chik
Reply With Quote
  #34  
Old 10-21-2001, 11:28 PM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
#1, a - infront of a weapon name makes it hidden

#2, I believe you have the wrong server (Wasn't it DK that had that instead of TDK?)

#3, If I'm not mistaken, G-Yoshi re-scripted the q button menu completely..
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
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 02:20 AM.


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