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 08-29-2001, 01:03 AM
Death_Link Death_Link is offline
Registered User
Join Date: Aug 2001
Posts: 51
Death_Link is on a distinguished road
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?
Reply With Quote
  #2  
Old 08-29-2001, 01:18 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 is on a distinguished road
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.
Reply With Quote
  #3  
Old 08-29-2001, 01:30 AM
Komieko Komieko is offline
Registered User
Join Date: Mar 2001
Posts: 494
Komieko is on a distinguished road
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
Reply With Quote
  #4  
Old 08-29-2001, 01:31 AM
Komieko Komieko is offline
Registered User
Join Date: Mar 2001
Posts: 494
Komieko is on a distinguished road
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)
Reply With Quote
  #5  
Old 08-29-2001, 01:39 AM
Komieko Komieko is offline
Registered User
Join Date: Mar 2001
Posts: 494
Komieko is on a distinguished road
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.
Reply With Quote
  #6  
Old 08-29-2001, 02:01 AM
oscarjf1 oscarjf1 is offline
Registered User
Join Date: Aug 2001
Location: I live in the US
Posts: 107
oscarjf1 is on a distinguished road
Send a message via AIM to oscarjf1
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,;
__________________
I speek on behalf of my staff.
~laterz

Lagoonia Staff
-Tiki God Of Power
Reply With Quote
  #7  
Old 08-29-2001, 02:33 AM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
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
Reply With Quote
  #8  
Old 08-29-2001, 02:33 AM
Death_Link Death_Link is offline
Registered User
Join Date: Aug 2001
Posts: 51
Death_Link is on a distinguished road
thanx guys u been a great help : )
Reply With Quote
  #9  
Old 08-29-2001, 02:35 AM
Death_Link Death_Link is offline
Registered User
Join Date: Aug 2001
Posts: 51
Death_Link is on a distinguished road
1 thing though. Where in my files can i find the picture for a house wall north?
Reply With Quote
  #10  
Old 08-29-2001, 02:37 AM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin

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
Reply With Quote
  #11  
Old 08-29-2001, 03:07 AM
Death_Link Death_Link is offline
Registered User
Join Date: Aug 2001
Posts: 51
Death_Link is on a distinguished road
Thanx Merlin

C ya soon guys. Ill tell ya if i get my house online
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 04:44 PM.


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