The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How doors work?
Author Message
Gil Amarth
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: May 2012
Reputation: 0



Post: #6
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
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
How doors work? - Shaklaban - 06-28-2012, 02:14 PM
RE: How doors work? - Gil Amarth - 06-28-2012, 07:28 PM
RE: How doors work? - Terrikate - 06-28-2012, 08:50 PM
RE: How doors work? - Gil Amarth - 06-29-2012, 08:35 AM
RE: How doors work? - Skul - 06-29-2012, 02:05 PM
RE: How doors work? - Gil Amarth - 06-29-2012 06:21 PM
RE: How doors work? - Valios - 07-04-2012, 02:39 AM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)