SphereCommunity

Full Version: timer locking door?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Code:
[7853]
ID=06a5
//wooden door
NAME=Office Door
TYPE=4
//MORE=6562

ONTRIGGER=DCLICK
IF <SRC.RESTEST 1 07854>
SRC.CONSUME 1 07854
LINK=<SERIAL>
TYPE=3
SRC.SYSMESSAGE The key magically disappears...
TIMER=1
ELSE
SRC.SYSMESSAGE You Have No Key...
RETURN 1
ENDIF

ONTRIGGER=TIMER
EMOTE click
TYPE=4
LINK=0

CATEGORY=DRAGONS OF TIME ITEMS
SUBSECTION=Crap
DESCRIPTION=Office Door

[7854]
ID=100e
//Copper Key
NAME=Office Key
TYPE=0
WEIGHT=1
COLOR=048
//LINK=6562
//MORE=6562
BUYVALUE=60-100
SELLVALUE=9998-9999

ONTRIGGER=DCLICK
SRC.SYSMESSAGE Try double clicking the door...
RETURN 1

CATEGORY=DRAGONS OF TIME ITEMS
SUBSECTION=Crap
DESCRIPTION=Office Key


how? cant get the timer to relock the door... =/
first of all: link=0 means that it will link it on item 01, u have to link it to 04fffffff (dont know why u even have link there)
second: opening door will activate 60 sec timer and the basic action after that is to close those doors. So it may be that your door will still lock but u have to wait or redo your doors to move 1 space to left for example and after timer move 1 right (north / south; west / east)
huh?

*confused*

i just want the door to go back to type=4 after it opens
what is the right way?

Adidas-=420=-

Whats the point of this script? Why do you want it to do this?
Reference URL's