Author Topic: Random open and close Lock in an Area  (Read 359 times)

Legacy_XtraWings

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
Random open and close Lock in an Area
« on: April 28, 2011, 06:29:00 am »


               Hey Guys,

I want to build a Dungeon like Undermontain. For this i search a Way to Random set Walls or the "easy" way to open, close Locks and doors.
Some Advice for me?
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Random open and close Lock in an Area
« Reply #1 on: April 30, 2011, 02:02:51 am »


               Hmm,  I have no Idea what undermountian is like.  

It is not hard to lock,close or open a door.   But Im still not 100% on what you are shooting for.  Did you want all of this to happen around an event.  Just once on module load?  could you explain a little better.
               
               

               
            

Legacy_Greyfort

  • Sr. Member
  • ****
  • Posts: 442
  • Karma: +0/-0
Random open and close Lock in an Area
« Reply #2 on: May 01, 2011, 05:08:18 am »


               Undermountian Yes thats from the NSE server 3.5,  what you are saying is once players get in they cant get out unless they have items correct.

Its not hard,  if rem servs well they used a teleport placeable, and all you need to do is when thy use the tele check for item no item, no tele if item tele out.

Is that what you mean?
               
               

               
            

Legacy_XtraWings

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
Random open and close Lock in an Area
« Reply #3 on: May 01, 2011, 12:18:27 pm »


               No, i need a Script what works like a timeer, starting every 10 Minutes by starting the Script should open and close(lock) Doors. So the player is in an ever changing Dungeon. Better way would it be, to Spawn and destroy randomised Walls.
The Idea with the Teleport ist also very good.
               
               

               
            

Legacy_Melkior_King

  • Full Member
  • ***
  • Posts: 234
  • Karma: +0/-0
Random open and close Lock in an Area
« Reply #4 on: May 02, 2011, 10:41:17 am »


               OnModuleLoad, call a DelayCommand which waits 10 mins and then runs a function which closes open doors and changes the lock/unlock status of the doors in whatever way you want.  At the end of the function, call another DelayCommand which waits 10 mins before running the same function.
               
               

               
            

Legacy_TSMDude

  • Hero Member
  • *****
  • Posts: 1515
  • Karma: +0/-0
Random open and close Lock in an Area
« Reply #5 on: May 02, 2011, 01:23:46 pm »


               Is this for a PW or a SP?

Some of the things we do and for this specfic dungeon idea here is what I would do.

Set up a one way portal into the dungeon. In the dungeon itself run OnAreaEnter script that sets a timer on them the player that fires after say...20 minutes.

On the doors/drawbridge/openings/grates/bars and whatever source you use have them all set to randomly open every AREA heartbeat that starts ONLY when a player is in the room. That is very important to cut down on the lag/cpu this would use.

To stimulate the different areas you will have made 5 dungeons all very similiar but with random differences of walls and layouts. (As an alternate you can make one BIG dungeon which to random fire them around but I think it would be cooler and the use of neat loadscreens it would be cool to fire/port/jump them to different dungeons.)

Make sure though that when they get to find the end way out it all leads to the same room with thre doors. This is where you get mean.

Door one leads Out of the dungeon.
Door Two leads back to the VERY begining of the dungeon area they jus tleft making them do it all over again.
Door three lets them contuine onward.

Just my suggestions and if you need scripts let me know and I can post some to help as well or even links to some on the vault you can use to do these things.
               
               

               
            

Legacy_XtraWings

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
Random open and close Lock in an Area
« Reply #6 on: May 04, 2011, 06:02:54 pm »


               Hey TSMDude...
some Handy Links would be fine.
It is for a PW, so the script should only Work wenn a Player is around.

Greetings Xtra