Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Secret Passage help (https://forums.graalonline.com/forums/showthread.php?t=10662)

Death_Link 08-29-2001 01:03 AM

Secret Passage help
 
Hi all.
I got a problem here. Im makin' a new house to upload 2 the server and i want it to have this secret room. i wan it 2 be a part of the wall and when u say the password it opens then times out for about 5 seconds then swiches back 2 a normal solid wall again.
Im not a very good scripter yet but i tried what i know and i got nowhere.
Could u guys help me out?

kyle0654 08-29-2001 01:18 AM

NPC Code:

if (playerchats&&strequals(#c,open sesame)) {
hide; // here we hide the door if the player says "open sesame"
dontblock; // this makes it so the passage doesn't block the player even when it's hiding
timeout = 5;
}
if (timeout) {
show; // this will show the door (secret passage blocker) again
blockagain; // this will block the passage again.
}


Now, if it's for an NPC Server, it's a whole different story, but you could probably get away with putting //#CLIENTSIDE in front of the whole script.

Komieko 08-29-2001 01:30 AM

Quote:

Originally posted by kyle0654

very bad Komieko. These scripts are much how I started. At least he's not trying to start with giant scripts.

Yeah.Sorry for bugging you Mr.guy :( I'll delete that post ;)

Komieko 08-29-2001 01:31 AM

Anyway Death_Link I could help you with any scripting questions you have as long as they aren't too big.Just PM me or ask me here I guess. (sorry for being a jerk..I'm just hyped up on coca cola)

Komieko 08-29-2001 01:39 AM

Re: Secret Passage help
 
Quote:

Originally posted by Death_Link
Hi all.
I got a problem here. Im makin' a new house to upload 2 the server and i want it to have this secret room. i wan it 2 be a part of the wall and when u say the password it opens then times out for about 5 seconds then swiches back 2 a normal solid wall again.
Im not a very good scripter yet but i tried what i know and i got nowhere.
Could u guys help me out?

And thank you for atleast trying yourself.Most people run to the messageboard and post "What's the script for this?"But you said you tried and it didn't work so atleast you're trying to learn.Best of luck to you.

oscarjf1 08-29-2001 02:01 AM

and...if you want the password to be secret so no one can see it,
put in kyle's code, and after the 1st if-clause put in the command setplayerprop #c,;
;)

Merlin 08-29-2001 02:33 AM

or you can just begin simple
first to make the door you will need to press alt+2 when the full wall is made then open it in paint or psp and cut out a section of that wall and make it a .gif or whatever format,
then make an npc with coding like
PHP Code:

if (playerenters) {show;}
if (
playerchats&&strequals(#c,open)) {
hide;
dontblock;
sleep1;
show;


thats basicly kyle's script except very simple

Death_Link 08-29-2001 02:33 AM

thanx guys u been a great help : )

Death_Link 08-29-2001 02:35 AM

1 thing though. Where in my files can i find the picture for a house wall north?

Merlin 08-29-2001 02:37 AM


you need to make it
lay it out on the level and take a snap shot of it using alt+2 then open it in psp or paint and cut the section out and save it as gif or png or what not

Death_Link 08-29-2001 03:07 AM

Thanx Merlin ;)

C ya soon guys. Ill tell ya if i get my house online :)


All times are GMT +2. The time now is 06:09 AM.

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