Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
158
Scripts/Scripts-master/Items/Armors/Goku's Stuff/Goku.cs
Normal file
158
Scripts/Scripts-master/Items/Armors/Goku's Stuff/Goku.cs
Normal file
@@ -0,0 +1,158 @@
|
||||
|
||||
//////////////////////
|
||||
//Created by KyleMan//
|
||||
//////////////////////
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Server.Items;
|
||||
using Server.ContextMenus;
|
||||
using Server.Misc;
|
||||
using Server.Network;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class Goku : BaseCreature
|
||||
{
|
||||
public override bool ClickTitle{ get{ return false; } }
|
||||
private bool m_TrueForm;
|
||||
|
||||
[Constructable]
|
||||
public Goku() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
SpeechHue = Utility.RandomDyedHue();
|
||||
Title = "the legendary hero";
|
||||
Hue = 33770;
|
||||
|
||||
{
|
||||
Body = 0x190;
|
||||
Name = "Goku";
|
||||
}
|
||||
|
||||
SetStr( 250, 255 );
|
||||
SetDex( 100, 125 );
|
||||
SetInt( 61, 75 );
|
||||
|
||||
SetDamage( 15, 23 );
|
||||
|
||||
SetHits( 2500, 3500 );
|
||||
|
||||
SetSkill( SkillName.Fencing, 88.8, 97.5 );
|
||||
SetSkill( SkillName.Macing, 99.9, 110.0 );
|
||||
SetSkill( SkillName.MagicResist, 25.0, 47.5 );
|
||||
SetSkill( SkillName.Swords, 65.0, 87.5 );
|
||||
SetSkill( SkillName.Tactics, 99.9, 110.0 );
|
||||
SetSkill( SkillName.Wrestling, 15.0, 37.5 );
|
||||
|
||||
Fame = 10000;
|
||||
Karma = -10000;
|
||||
|
||||
PackItem( new GokusDeath() );
|
||||
|
||||
AddItem( new GokusPants() );
|
||||
AddItem( new GokusOutterShirt() );
|
||||
AddItem( new GokusUnderShirt() );
|
||||
AddItem( new GokusBoots() );
|
||||
AddItem( new PowerPole() ); //Change to AddItem( new PowerPoleUnblessed() ); for the axe to be in loot.
|
||||
|
||||
AddItem( new ShortHair( 1 ) );
|
||||
}
|
||||
private double[] m_Offsets = new double[]
|
||||
{
|
||||
Math.Cos( 000.0 / 180.0 * Math.PI ), Math.Sin( 000.0 / 180.0 * Math.PI ),
|
||||
Math.Cos( 040.0 / 180.0 * Math.PI ), Math.Sin( 040.0 / 180.0 * Math.PI ),
|
||||
Math.Cos( 080.0 / 180.0 * Math.PI ), Math.Sin( 080.0 / 180.0 * Math.PI ),
|
||||
Math.Cos( 120.0 / 180.0 * Math.PI ), Math.Sin( 120.0 / 180.0 * Math.PI ),
|
||||
Math.Cos( 160.0 / 180.0 * Math.PI ), Math.Sin( 160.0 / 180.0 * Math.PI ),
|
||||
Math.Cos( 200.0 / 180.0 * Math.PI ), Math.Sin( 200.0 / 180.0 * Math.PI ),
|
||||
Math.Cos( 240.0 / 180.0 * Math.PI ), Math.Sin( 240.0 / 180.0 * Math.PI ),
|
||||
Math.Cos( 280.0 / 180.0 * Math.PI ), Math.Sin( 280.0 / 180.0 * Math.PI ),
|
||||
Math.Cos( 320.0 / 180.0 * Math.PI ), Math.Sin( 320.0 / 180.0 * Math.PI ),
|
||||
};
|
||||
|
||||
|
||||
public void Morph()
|
||||
{
|
||||
if ( m_TrueForm )
|
||||
return;
|
||||
|
||||
m_TrueForm = true;
|
||||
|
||||
Name = "Super Saiyan Goku";
|
||||
BodyValue = 0x190;
|
||||
Hue = 33770;
|
||||
AddItem( new ShortHair( 1174 ) );
|
||||
|
||||
Hits = HitsMax;
|
||||
Stam = StamMax;
|
||||
Mana = ManaMax;
|
||||
|
||||
ProcessDelta();
|
||||
|
||||
Say( 1049499 ); // Behold my true form!
|
||||
|
||||
Map map = this.Map;
|
||||
|
||||
if ( map != null )
|
||||
{
|
||||
for ( int i = 0; i < m_Offsets.Length; i += 2 )
|
||||
{
|
||||
double rx = m_Offsets[i];
|
||||
double ry = m_Offsets[i + 1];
|
||||
|
||||
int dist = 0;
|
||||
bool ok = false;
|
||||
int x = 0, y = 0, z = 0;
|
||||
|
||||
while ( !ok && dist < 10 )
|
||||
{
|
||||
int rdist = 10 + dist;
|
||||
|
||||
x = this.X + (int)(rx * rdist);
|
||||
y = this.Y + (int)(ry * rdist);
|
||||
z = map.GetAverageZ( x, y );
|
||||
|
||||
if ( !(ok = map.CanFit( x, y, this.Z, 16, false, false ) ) )
|
||||
ok = map.CanFit( x, y, z, 16, false, false );
|
||||
|
||||
if ( dist >= 0 )
|
||||
dist = -(dist + 1);
|
||||
else
|
||||
dist = -(dist - 1);
|
||||
if ( !ok )
|
||||
continue;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.SuperBoss );
|
||||
}
|
||||
|
||||
public override bool AlwaysMurderer{ get{ return true; } }
|
||||
|
||||
public Goku( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
|
||||
writer.Write( m_TrueForm );
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
|
||||
m_TrueForm = reader.ReadBool();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0x170b, 0x170c )]
|
||||
public class GokusBoots : BaseShoes
|
||||
{
|
||||
[Constructable]
|
||||
public GokusBoots() : this( 0 )
|
||||
{
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public GokusBoots( int hue ) : base( 0x170B, hue )
|
||||
{
|
||||
Weight = 3.0;
|
||||
Name = "gokus boots";
|
||||
Hue = 1176;
|
||||
LootType = LootType.Blessed;
|
||||
}
|
||||
|
||||
public GokusBoots( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
//////////////////////
|
||||
//Created by KyleMan//
|
||||
//////////////////////
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class GokusDeath : Item
|
||||
{
|
||||
[Constructable]
|
||||
public GokusDeath() : base( 0x1869 )
|
||||
{
|
||||
Weight = 1.0;
|
||||
Name = "oh my god you killed goku";
|
||||
Hue = 1152;
|
||||
}
|
||||
|
||||
public GokusDeath( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
|
||||
public override void OnDoubleClick( Mobile from )
|
||||
{
|
||||
switch ( Utility.Random( 10 ) )
|
||||
{
|
||||
default:
|
||||
case 0: from.SendMessage( "You're Going On a Guilt Trip Now" ); break;
|
||||
case 1: from.SendMessage( "You Killed Goku" ); break;
|
||||
case 2: from.SendMessage( "How Could You?" ); break;
|
||||
case 3: from.SendMessage( "You Destroyed the Worlds Only Hope" ); break;
|
||||
case 4: from.SendMessage( "Whose Going to Tell ChiChi?" ); break;
|
||||
case 5: from.SendMessage( "Stop Clicking Me" ); break;
|
||||
case 6: from.SendMessage( "Congrates on Killing Goku" ); break;
|
||||
case 7: from.SendMessage( "Job Well Done" ); break;
|
||||
case 8: from.SendMessage( "*crys*" ); break;
|
||||
case 9: from.SendMessage( "The World is Mourning Gokus Loss" ); break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0x1F7B, 0x1F7C )]
|
||||
public class GokusOutterShirt : BaseMiddleTorso
|
||||
{
|
||||
[Constructable]
|
||||
public GokusOutterShirt() : this( 0 )
|
||||
{
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public GokusOutterShirt( int hue ) : base( 0x1F7B, hue )
|
||||
{
|
||||
Weight = 2.0;
|
||||
Name = "gokus outter shirt";
|
||||
Hue = 1255;
|
||||
LootType = LootType.Blessed;
|
||||
}
|
||||
|
||||
public GokusOutterShirt( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[Flipable( 0x279B, 0x27E6 )]
|
||||
public class GokusPants : BasePants
|
||||
{
|
||||
[Constructable]
|
||||
public GokusPants() : this( 0 )
|
||||
{
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public GokusPants( int hue ) : base( 0x279B, hue )
|
||||
{
|
||||
Weight = 2.0;
|
||||
Hue = 1255;
|
||||
Name = "Gokus Pants";
|
||||
LootType = LootType.Blessed;
|
||||
}
|
||||
|
||||
public GokusPants( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0x1efd, 0x1efe )]
|
||||
public class GokusUnderShirt : BaseShirt
|
||||
{
|
||||
[Constructable]
|
||||
public GokusUnderShirt() : this( 0 )
|
||||
{
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public GokusUnderShirt( int hue ) : base( 0x1EFD, hue )
|
||||
{
|
||||
Weight = 2.0;
|
||||
Name = "gokus under shirt";
|
||||
Hue = 1176;
|
||||
LootType = LootType.Blessed;
|
||||
}
|
||||
|
||||
public GokusUnderShirt( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
//////////////////////
|
||||
//Created By Kyleman//
|
||||
//////////////////////
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0xDF1, 0xDF0 )]
|
||||
public class PowerPole : BaseStaff
|
||||
{
|
||||
public override int ArtifactRarity{ get{ return 15; } }
|
||||
public override int InitMinHits{ get{ return 250; } }
|
||||
public override int InitMaxHits{ get{ return 255; } }
|
||||
|
||||
public override int DefMaxRange{ get{ return 3; } }
|
||||
|
||||
public override WeaponAbility PrimaryAbility{ get{ return WeaponAbility.WhirlwindAttack; } }
|
||||
public override WeaponAbility SecondaryAbility{ get{ return WeaponAbility.ParalyzingBlow; } }
|
||||
|
||||
public override int AosStrengthReq{ get{ return 35; } }
|
||||
public override int AosMinDamage{ get{ return 15; } }
|
||||
public override int AosMaxDamage{ get{ return 19; } }
|
||||
public override int AosSpeed{ get{ return 45; } }
|
||||
|
||||
|
||||
[Constructable]
|
||||
public PowerPole() : base( 0xDF0 )
|
||||
{
|
||||
Name = "gokus power pole";
|
||||
Hue = 142;
|
||||
Attributes.SpellChanneling = 1;
|
||||
Attributes.BonusStr = 15;
|
||||
Attributes.BonusHits = 15;
|
||||
Attributes.RegenHits = 10;
|
||||
WeaponAttributes.HitLeechHits = 50;
|
||||
Attributes.AttackChance = 50;
|
||||
Attributes.WeaponDamage = 50;
|
||||
Attributes.WeaponSpeed = 30;
|
||||
WeaponAttributes.HitFireArea = 50;
|
||||
WeaponAttributes.ResistFireBonus = 15;
|
||||
WeaponAttributes.ResistEnergyBonus = 5;
|
||||
WeaponAttributes.SelfRepair = 20;
|
||||
WeaponAttributes.HitFireball = 75;
|
||||
LootType = LootType.Blessed;
|
||||
}
|
||||
|
||||
public PowerPole(Serial serial) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
//////////////////////
|
||||
//Created By Kyleman//
|
||||
//////////////////////
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
[FlipableAttribute( 0xDF1, 0xDF0 )]
|
||||
public class PowerPoleUnblessed : BaseStaff
|
||||
{
|
||||
public override int ArtifactRarity{ get{ return 15; } }
|
||||
public override int InitMinHits{ get{ return 250; } }
|
||||
public override int InitMaxHits{ get{ return 255; } }
|
||||
|
||||
public override int DefMaxRange{ get{ return 3; } }
|
||||
|
||||
public override WeaponAbility PrimaryAbility{ get{ return WeaponAbility.WhirlwindAttack; } }
|
||||
public override WeaponAbility SecondaryAbility{ get{ return WeaponAbility.ParalyzingBlow; } }
|
||||
|
||||
public override int AosStrengthReq{ get{ return 35; } }
|
||||
public override int AosMinDamage{ get{ return 15; } }
|
||||
public override int AosMaxDamage{ get{ return 19; } }
|
||||
public override int AosSpeed{ get{ return 45; } }
|
||||
|
||||
|
||||
[Constructable]
|
||||
public PowerPoleUnblessed() : base( 0xDF0 )
|
||||
{
|
||||
Name = "gokus power pole";
|
||||
Hue = 142;
|
||||
Attributes.SpellChanneling = 1;
|
||||
Attributes.BonusStr = 15;
|
||||
Attributes.BonusHits = 15;
|
||||
Attributes.RegenHits = 10;
|
||||
WeaponAttributes.HitLeechHits = 50;
|
||||
Attributes.AttackChance = 50;
|
||||
Attributes.WeaponDamage = 50;
|
||||
Attributes.WeaponSpeed = 30;
|
||||
WeaponAttributes.HitFireArea = 50;
|
||||
WeaponAttributes.ResistFireBonus = 15;
|
||||
WeaponAttributes.ResistEnergyBonus = 5;
|
||||
WeaponAttributes.SelfRepair = 20;
|
||||
WeaponAttributes.HitFireball = 75;
|
||||
}
|
||||
|
||||
public PowerPoleUnblessed(Serial serial) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user