Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Help with a jail script (https://forums.graalonline.com/forums/showthread.php?t=49587)

Vegeta940 12-10-2003 06:50 AM

Help with a jail script
 
I need help with an npc script for the jail of my server, im trying to make it so when the player gets jailed and enters the room, it sets his nickname to Jailed, whats the script, stupidly i tried this.
//NPC made by SS Vegeta
if (created) {
}
if (playerenters) {
setnick Jailed;
}
Obviously it didn't work, anyone know the code?

Lance 12-10-2003 07:32 AM

commands.rtf is your friend.

Vegeta940 12-11-2003 02:45 AM

I know i've looked through the whole thing and I found nothing, talk to me on AIM because commands.rtf don't have anything on the subject. But yes I guess it is your friend!!!:D

Loriel 12-11-2003 02:52 AM

Commands.rtf indeed provides the information you are looking for.
Stop posting this image with every post you make.

Vegeta940 12-11-2003 02:58 AM

Yeah but it doesn't have the command im looking for, you know how like on UN when you get jailed and your in jail your name changes to Jailed and you can't change it back, thats the script I want.:asleep:

Loriel 12-11-2003 02:59 AM

It has the command you are looking for, and I just said that.

Vegeta940 12-11-2003 03:00 AM

Whatever i'll look and i'll let you know if its not there whats ur name on AIM?

Loriel 12-11-2003 03:02 AM

Please start looking for things before annoying others... you can find my AIM SN on your own, I am certain.

haunter 12-11-2003 03:51 AM

You can't just make up commands like that. :) The commands used to change your head/sword/name in-game are different than the ones used while scripting... As mentioned before, the commands.rtf will have most of the answers for you... There are also some newer commands in the newfeatures200*.txt (* = 1~to~3). But I can assure you that the command you are looking for is in the commands.rtf...

Hint: Look at the headers in the commands.rtf of each section to narrow down your search.

Vegeta940 12-11-2003 04:19 AM

Thanks guys then i guess this is the end of the thread, play my server when its done, will definitely be up by January 10th, called Dylovekia, but don't hack.

w3dg1tz8 12-11-2003 04:28 AM

Quote:

Originally posted by Vegeta940
Thanks guys then i guess this is the end of the thread, play my server when its done, will definitely be up by January 10th, called Dylovekia, but don't hack.
Er... :p I hope you have someone besides yourself who scripts.

haunter 12-11-2003 04:33 AM

Quote:

Originally posted by Vegeta940
Thanks guys then i guess this is the end of the thread, play my server when its done, will definitely be up by January 10th, called Dylovekia, but don't hack.
Ehh... I think I'll pass... But thanks anyway...

ZeLpH_MyStiK 12-11-2003 07:00 AM

newfeatures documents? very helpful =)

osrs 12-11-2003 05:45 PM

Did you fix your script then,dude?

Vegeta940 12-11-2003 11:50 PM

Nope so I started working on another script and I screwed THAT one up too.
Please tell me whats wrong with this code.

//Npc made my SS Vegeta
if (created) {
}
if (playerenters) {
shootarrow left;
}

Im trying to make some booby traps in case the people in jail try to escape.

VeX_RaT_Boy 12-12-2003 12:03 AM

Quote:

Originally posted by Lance
commands.rtf is your friend.
Read through that a few times before you ask!

haunter 12-12-2003 12:20 AM

Quote:

Originally posted by Vegeta940
Nope so I started working on another script and I screwed THAT one up too.
Please tell me whats wrong with this code.

//Npc made my SS Vegeta
if (created) {
}
if (playerenters) {
shootarrow left;
}

Im trying to make some booby traps in case the people in jail try to escape.


If someone really wants to escape from jail, a single arrow isn't going to stop them... ;P

Lance 12-12-2003 12:21 AM

Sigh. If you refuse to make the effort to learn, then scripting is probably not the graal development career for you.

osrs 12-12-2003 12:48 AM

Erm, sorry but nobody will script full scripts for you, learn to walk. x.x'

About that other script, read about setplayerprop #n,;.

sYnergy247 12-12-2003 01:10 AM

what if he's running away to the right?

Dach 12-12-2003 01:53 AM

fyi, directions are stored as numbers in script, and check out the player property strings,
most of scripting is not as straightforward as you seem to think, you might also want to read through npcprogramming.doc, it's not that long

Amagius 12-12-2003 01:59 AM

Well, I'll give your server a ride, but if that's a show of scripting abilities, then I think there'll only be one. Hell, almost makes me want to give him the scripts.

Aknts 12-12-2003 03:38 AM

The future reveals... yup here it is.. Ahh ok I got it.

Your server will never make it.

Dach 12-12-2003 08:49 AM

um, you guys don't need to dis way him from making a server, even if it has no chance of making it he'll still learn alot from trying, heck I learned alot about scripting and such from making my "server" a couple years ago

sYnergy247 12-13-2003 07:35 AM

Quote:

Originally posted by Dach
um, you guys don't need to dis way him from making a server, even if it has no chance of making it he'll still learn alot from trying, heck I learned alot about scripting and such from making my "server" a couple years ago
:cool: I've probally had 124829382 diffrent servers. (off line ones) and i normally end up throwing out a lot of levels, but who cares you can only make better ones.

Angel 12-14-2003 01:51 AM

Dont Post Whole Scripts
"don't post whole scripts for people"

sYnergy247 12-14-2003 05:25 AM

Quote:

Originally posted by Angel
Dont Post Whole Scripts


Yeah "SS Vegeta" Some one might steal your l33t script :o

Lance 12-14-2003 06:23 AM

Quote:

Originally posted by sYnergy247



Yeah "SS Vegeta" Some one might steal your l33t script :o

She was referring to a (deleted) post. That warning probably should have been sent in a PM to the one who posted it. :P

Vegeta940 12-14-2003 11:38 PM

You guys are so annoying, instead of dissing me why don't you try answering my question.:cool:

Also do any of you know of a good pop-up stopper these things just won't quit, every time i close one another pops-up.:grrr:

haunter 12-14-2003 11:45 PM

Quote:

Originally posted by Vegeta940
You guys are so annoying,
I'm sure the feeling is mutual.

Loriel 12-15-2003 01:53 AM

I doubt this thread is of much help to anyone.
http://forums.graal2001.com/forums/i...readclosed.gif


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

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