Shaklaban
Master
Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8
DOT
|
How doors work?
Hi, i want to use shadow, crystal doors etc. on my shard but they are not working. I just look at the metal door base script but shadow doors won't open. Here is my shadow door script:
Code:
[itemdef 13967]
defname=i_door_shadow
type=t_door
dupelist=13969,13963,13965,13971,13973,13975,13977
[itemdef 13969]
dupeitem=13967
[itemdef 13963]
dupeitem=13967
[itemdef 13965]
dupeitem=13967
[itemdef 13971]
dupeitem=13967
[itemdef 13973]
dupeitem=13967
[itemdef 13975]
dupeitem=13967
[itemdef 13977]
dupeitem=13967
[itemdef 13968]
type=t_door_open
dupelist=13970,13964,13966,13972,13974,13976,13978
[itemdef 13970]
dupeitem=13968
[itemdef 13964]
dupeitem=13968
[itemdef 13966]
dupeitem=13968
[itemdef 13972]
dupeitem=13968
[itemdef 13974]
dupeitem=13968
[itemdef 13976]
dupeitem=13968
[itemdef 13978]
dupeitem=13968
(This post was last modified: 06-28-2012 03:04 PM by Shaklaban.)
|
|
06-28-2012 02:14 PM |
|
|
Terrikate
Apprentice
Posts: 30
Likes Given: 1
Likes Received: 2 in 2 posts
Joined: Mar 2012
Reputation: 1
Ultima Alianza
|
|
06-28-2012 08:50 PM |
|
|
Gil Amarth
Journeyman
Posts: 189
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: May 2012
Reputation: 0
|
RE: How doors work?
Fixed.
Code:
[ITEMDEF 0369a]
DEFNAME = i_strange_door
NAME = strange door
WEIGHT = 1
type = t_door
ON=@CREATE
ATTR |= attr_move_never
ON=@DCLICK
SERV.NEWITEM = 03699
NEW.P = <P>
NEW.TIMER = 60
SFX 00ea
REMOVE
RETURN 1
[ITEMDEF 03699]
DEFNAME = 03699
NAME = strange door
WEIGHT = 1
type = t_door
ON=@CREATE
ATTR |= attr_move_never
ON=@DCLICK
SERV.NEWITEM = 0369a
NEW.P = <P>
SFX 00eb
REMOVE
RETURN 1
ON=@TIMER
SERV.NEWITEM = 0369a
NEW.P = <P>
SFX 00eb
REMOVE
RETURN 1
(06-29-2012 02:05 PM)Skul Wrote: i was trying to remember if there was a TDATAx value but appears there is none, I could've sworn there was something, it was written on the old Taran's World site.
In Taran´s Guide of Scripting there is only this about TDATA:
t_door
t_door_locked
TDATA1 = Sound to make when the door is opened or closed
And:
t_door
t_door_open
t_door_locked
MORE1 = The lock code, which is normally the UID of the key, or sometimes the UID of a parent item (like a house). Usually is the same as LINK.
MORE2 = How hard this lock is to pick (on a scale of 0 to 1000)
LINK = If there is no MORE1, the MORE1 of the linked item will be checked
(This post was last modified: 06-29-2012 06:32 PM by Gil Amarth.)
|
|
06-29-2012 06:21 PM |
|
|