power crystal

Got any custom JavaScript additions/tweaks you think other people would like to see? Post 'em here!
Post Reply
dragon slayer
UOX3 Guru
Posts: 776
Joined: Thu Dec 21, 2006 7:37 am
Has thanked: 4 times
Been thanked: 26 times

power crystal

Post by dragon slayer »

Here is a simple script but makes power crystals OSi like
[powercrystal]
{
GET=base_item
NAME=power crystal
ID=0x1F1C
SCRIPT=6007
}
function onUseChecked ( pUser, iUsed )
{
    if( iUsed.InRange( pUser, 3 ))
    {
        pUser.SysMessage( "I can't reach that." );
        return false;
    }
        else
            pUser.SysMessage( "This looks like part of a larger contraption" );
            return false;
}
Post Reply