Code: Select all
if( iUsed.GetTag( "linked" ) == "true" )
{
if( pUser.socket.clickY == null || pUser.socket.clickY == -1 )
{
var LinkedDoor = CalcItemFromSer( iUsed.GetTag( "linkSer1"), iUsed.GetTag( "linkSer2"), iUsed.GetTag( "linkSer3"), iUsed.GetTag( "linkSer4"));
if( LinkedDoor )
{
pUser.socket.clickY = 1;
TriggerEvent( 4500, "onUse", pUser, LinkedDoor );
}
}
else if( pUser.socket.clickY == 1 )
{
pUser.socket.clickY = null;
}
}Both linked doors will open if you doubleclick on one of them - but there the fun stops and the problems start. When the second door opens (through TriggerEvent), the following message appears in the UOX3 console:
..and any attempts to open ANY doors whatsoever after this will result in the same console message and no open doors.| Unhandled item type for item: #[1073764883] of type: 12
Additionally, using JS commands (I tried 'WIPE and 'RELOADJSFILE #) after this has happend usually results in a server crash (at least in the debug-version) with the following completely useless info given:
Code: Select all
NTDLL! 7c901230()
NTDLL! 7c96cd80()
NTDLL! 7c96df66()
NTDLL! 7c94a5d0()
NTDLL! 7c9268ad()
MSVCRT! 77c2c2de()
JS32! 1004f5b7()
8914518b()
12000a00()
00060000()
fb00a9fb()
00aa454c()
JS32! 1006aca8()