Grimklash said:Has anybody gotten the crystal or shadow inside stairs working for runuo 2.0? I've tried a few different ways and so far everything works fine but the stairs disapear if you go up a floor on customizing or commit.
private static int[] m_BlockIDs = new int[]
{
0x3EE, 0x709, 0x71E, 0x721,
0x738, 0x750, 0x76C, 0x788,
0x7A3, 0x7BA,
[COLOR="Red"] //[s7] 010607 9th anniv stairs
0x35D2, 0x3609
//[/s7][/COLOR]
};
private static int[] m_StairIDs = new int[]
{
0x71F, 0x736, 0x737, 0x749,
0x7BB, 0x7BC,
[COLOR="Red"] //[s7] 010607 9th anniv stairs
-1, -1,
0x35D3, 0x35D4, 0x35D5, 0x35D6,
0x360A, 0x360B, 0x360C, 0x360D,
//[/s7][/COLOR]
};
public static bool IsStair( int id, ref int dir )
{
id &= 0x3FFF;
int delta = -4;
for( int i = 0; delta < -3 && i < m_StairSeqs.Length; ++i )
delta = (m_StairSeqs[i] - id);
if( delta >= -3 && delta <= 0 )
{
dir = -delta;
return true;
}
delta = -1;
for( int i = 0; delta < 0 && i < m_StairIDs.Length; ++i )
{
delta = (m_StairIDs[i] - id);
dir = i % 4;
}
[COLOR="Red"] //[s7] 010607 9th anniv stairs
if( ( ( id >= 0x35D3 && id <= 0x35D6 ) || ( id >= 0x360A && id <=0x360D ) ) && delta == 0 )
dir = dir + ( dir % 2 == 0 ? 1 : -1 );
//[/s7][/COLOR]
return (delta == 0);
}
Graiston;632960 said:Do exactely what it's written in this trhead, and everything will work, except for the doors..
The only thing I've done is make the font one size smaller and make it bold.
I make it bold for those with poorer eyesight than you or I so that they can read it much easier.
I wear glasses now but I can remember what it's like to have to squint to read something.