|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
|
Just tho i share this you must be patched to latest version osi 5.0.1i to see this i am sure someone else will make it better but heres 2 Mongbat Dartboard one facing east other facing south and its animated hope you enjoy it.
heres pictures in game they are animated so they move back and forth. ![]() ![]() Last edited by Erica; 02-06-2006 at 02:37 PM. Reason: Added Picture request |
|
|
|
|
#7 (permalink) | |
|
Forum Expert
|
Quote:
|
|
|
|
|
|
#9 (permalink) |
|
Dream Sage
Join Date: Jul 2003
Location: Great Northern Wisconsin
Posts: 841
|
FROM WHAT IVE READ ON STRATICS IT IS A REAL DARTBOARD NON ANIMATED TILL YOU HIT A BULLSEYE THEN IT ANIMATES
opps sorry caps lock at work lol
__________________
To walk among the few of understanding Admin of Geia Adventures A dead Shard no longer in existsance |
|
|
|
|
#10 (permalink) |
|
Forum Expert
Join Date: Apr 2003
Location: Georgia
Age: 31
Posts: 392
|
This works but I cant script it do what we want it to.
Usage [add dartboard 2 also has deeds east and south' This is just a modified dartboard from server files. But it works. Also I made Code:
public override bool NeedsWall{ get{ return false;
Code:
using System;
using Server;
using Server.Network;
namespace Server.Items
{
public class DartBoard2 : AddonComponent
{
public override bool NeedsWall{ get{ return false; } }
public override Point3D WallPosition{ get{ return this.East ? new Point3D( -1, 0, 0 ) : new Point3D( 0, -1, 0 ); } }
public bool East{ get{ return this.ItemID == 0x1954; } }
[Constructable]
public DartBoard2() : this( true )
{
}
[Constructable]
public DartBoard2( bool east ) : base( east ? 0x1954 : 0x1951 )
{
}
public DartBoard2( Serial serial ) : base( serial )
{
}
public override void OnDoubleClick( Mobile from )
{
Direction dir;
if ( from.Location != this.Location )
dir = from.GetDirectionTo( this );
else if ( this.East )
dir = Direction.West;
else
dir = Direction.North;
from.Direction = dir;
bool canThrow = true;
if ( !from.InRange( this, 4 ) || !from.InLOS( this ) )
canThrow = false;
else if ( this.East )
canThrow = ( dir == Direction.Left || dir == Direction.West || dir == Direction.Up );
else
canThrow = ( dir == Direction.Up || dir == Direction.North || dir == Direction.Right );
if ( canThrow )
Throw( from );
else
from.LocalOverheadMessage( MessageType.Regular, 0x3B2, 1019045 ); // I can't reach that.
}
public void Throw( Mobile from )
{
BaseKnife knife = from.Weapon as BaseKnife;
if ( knife == null )
{
from.LocalOverheadMessage( MessageType.Regular, 0x3B2, 500751 ); // Try holding a knife...
return;
}
from.Animate( from.Mounted ? 26 : 9, 7, 1, true, false, 0 );
from.MovingEffect( this, knife.ItemID, 7, 1, false, false );
from.PlaySound( 0x238 );
double rand = Utility.RandomDouble();
int message;
if ( rand < 0.05 )
message = 500752; // MONKEYSEYE! 50 points.
else if ( rand < 0.20 )
message = 500753; // Just missed my eyes! 20 points.
else if ( rand < 0.45 )
message = 500754; // 10 points.
else if ( rand < 0.70 )
message = 500755; // 5 pointer.
else if ( rand < 0.85 )
message = 500756; // 1 point. Bad throw.
else
message = 500757; // Missed me!
PublicOverheadMessage( MessageType.Regular, 0x3B2, message );
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.WriteEncodedInt( 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
}
}
public class DartBoard2EastAddon : BaseAddon
{
public override BaseAddonDeed Deed{ get{ return new DartBoard2EastDeed(); } }
public DartBoard2EastAddon()
{
AddComponent( new DartBoard2( true ), 0, 0, 0 );
}
public DartBoard2EastAddon( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.WriteEncodedInt( 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
}
}
public class DartBoard2EastDeed : BaseAddonDeed
{
public override BaseAddon Addon{ get{ return new DartBoard2EastAddon(); } }
public override int LabelNumber{ get{ return 1044326; } } // dartboard2 (east)
[Constructable]
public DartBoard2EastDeed()
{
}
public DartBoard2EastDeed( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.WriteEncodedInt( 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
}
}
public class DartBoard2SouthAddon : BaseAddon
{
public override BaseAddonDeed Deed{ get{ return new DartBoard2SouthDeed(); } }
public DartBoard2SouthAddon()
{
AddComponent( new DartBoard2( false ), 0, 0, 0 );
}
public DartBoard2SouthAddon( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.WriteEncodedInt( 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
}
}
public class DartBoard2SouthDeed : BaseAddonDeed
{
public override BaseAddon Addon{ get{ return new DartBoard2SouthAddon(); } }
public override int LabelNumber{ get{ return 1044325; } } // dartboard2 (south)
[Constructable]
public DartBoard2SouthDeed()
{
}
public DartBoard2SouthDeed( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.WriteEncodedInt( 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
}
}
}
Last edited by otimpyre; 02-08-2006 at 08:55 PM. |
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|