SphereCommunity
timer locking door? - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Expired/Outdated Versions (/Forum-Expired-Outdated-Versions)
+--- Forum: Sphere 51a Help (/Forum-Sphere-51a-Help)
+--- Thread: timer locking door? (/Thread-timer-locking-door)



timer locking door? - x77x - 04-12-2013 05:53 PM

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... =/


RE: timer locking door? - Mulambo - 04-13-2013 12:41 AM

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)


RE: timer locking door? - x77x - 04-13-2013 07:37 AM

huh?

*confused*

i just want the door to go back to type=4 after it opens


RE: timer locking door? - x77x - 04-14-2013 04:32 PM

what is the right way?


RE: timer locking door? - Adidas-=420=- - 05-09-2013 01:51 AM

Whats the point of this script? Why do you want it to do this?