Compare commits
1 Commits
default
...
custom-sys
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9cfde37097 |
5
.github/FUNDING.yml
vendored
@@ -1,5 +0,0 @@
|
|||||||
# These are supported funding model platforms
|
|
||||||
|
|
||||||
github: [ UnstableKitsune ]
|
|
||||||
patreon: KitsunicTinkering
|
|
||||||
tidelift: nuget/abysmal-isle
|
|
||||||
38
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -1,38 +0,0 @@
|
|||||||
---
|
|
||||||
name: Bug report
|
|
||||||
about: Create a report to help us improve
|
|
||||||
title: "[BUG] - "
|
|
||||||
labels: bug
|
|
||||||
assignees: UnstableKitsune
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**Describe the bug**
|
|
||||||
A clear and concise description of what the bug is.
|
|
||||||
|
|
||||||
**To Reproduce**
|
|
||||||
Steps to reproduce the behavior:
|
|
||||||
1. Go to '...'
|
|
||||||
2. Click on '....'
|
|
||||||
3. Scroll down to '....'
|
|
||||||
4. See error
|
|
||||||
|
|
||||||
**Expected behavior**
|
|
||||||
A clear and concise description of what you expected to happen.
|
|
||||||
|
|
||||||
**Screenshots**
|
|
||||||
If applicable, add screenshots to help explain your problem.
|
|
||||||
|
|
||||||
**Desktop (please complete the following information):**
|
|
||||||
- OS: [e.g. iOS]
|
|
||||||
- Browser [e.g. chrome, safari]
|
|
||||||
- Version [e.g. 22]
|
|
||||||
|
|
||||||
**Smartphone (please complete the following information):**
|
|
||||||
- Device: [e.g. iPhone6]
|
|
||||||
- OS: [e.g. iOS8.1]
|
|
||||||
- Browser [e.g. stock browser, safari]
|
|
||||||
- Version [e.g. 22]
|
|
||||||
|
|
||||||
**Additional context**
|
|
||||||
Add any other context about the problem here.
|
|
||||||
27
.github/ISSUE_TEMPLATE/custom.md
vendored
@@ -1,27 +0,0 @@
|
|||||||
---
|
|
||||||
name: Custom issue template
|
|
||||||
about: Describe this issue template's purpose here.
|
|
||||||
title: "[Custom] - "
|
|
||||||
labels: ''
|
|
||||||
assignees: UnstableKitsune
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**Describe the Issue**
|
|
||||||
A clear and concise description of what the issue is.
|
|
||||||
|
|
||||||
**To Reproduce**
|
|
||||||
Steps to reproduce the behavior:
|
|
||||||
1. Go to '...'
|
|
||||||
2. Click on '....'
|
|
||||||
3. Scroll down to '....'
|
|
||||||
4. See error
|
|
||||||
|
|
||||||
**Expected behavior**
|
|
||||||
A clear and concise description of what you expected to happen.
|
|
||||||
|
|
||||||
**Screenshots**
|
|
||||||
If applicable, add screenshots to help explain your problem.
|
|
||||||
|
|
||||||
**Additional context**
|
|
||||||
Add any other context about the problem here.
|
|
||||||
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
@@ -1,20 +0,0 @@
|
|||||||
---
|
|
||||||
name: Feature request
|
|
||||||
about: Suggest an idea for this project
|
|
||||||
title: ''
|
|
||||||
labels: ''
|
|
||||||
assignees: ''
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**Is your feature request related to a problem? Please describe.**
|
|
||||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
||||||
|
|
||||||
**Describe the solution you'd like**
|
|
||||||
A clear and concise description of what you want to happen.
|
|
||||||
|
|
||||||
**Describe alternatives you've considered**
|
|
||||||
A clear and concise description of any alternative solutions or features you've considered.
|
|
||||||
|
|
||||||
**Additional context**
|
|
||||||
Add any other context or screenshots about the feature request here.
|
|
||||||
8
.gitignore
vendored
@@ -41,9 +41,7 @@
|
|||||||
|
|
||||||
!/Data/*
|
!/Data/*
|
||||||
!/bin/rosyln/*
|
!/bin/rosyln/*
|
||||||
|
|
||||||
*.zip
|
*.zip
|
||||||
|
*.csproj
|
||||||
Scripts/SubSystem/Kitsune Scripts/KitsunesShapeShifting/Gate&Talismans.zip
|
*.csproj
|
||||||
Scripts/SubSystem/Kitsune Scripts/KitsunicCustomSystem.zip
|
Scripts/Scripts.csproj
|
||||||
Scripts/Scripts-master.zip
|
|
||||||
|
|||||||
@@ -1,31 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
Air Elemental = 2593
|
|
||||||
Angel = 2064
|
|
||||||
Deamon = 1644
|
|
||||||
Drow = 962
|
|
||||||
Dwarven = 748
|
|
||||||
Earth Element = 2017
|
|
||||||
Elven = 1169
|
|
||||||
Fey = 2637
|
|
||||||
Goblin = 1005
|
|
||||||
Gremlin = 1001
|
|
||||||
Hiryu = 100
|
|
||||||
Imp = 1453
|
|
||||||
Kirin = 2501
|
|
||||||
Kitsune = 1161
|
|
||||||
Orc = 558
|
|
||||||
Rapter = 2212
|
|
||||||
Ratman = 2213
|
|
||||||
Ridgeback = 26
|
|
||||||
TreeEnt = 2514
|
|
||||||
Troll = 2579
|
|
||||||
Wolven = 705
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 99 KiB |
|
Before Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 91 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 99 KiB |
|
Before Width: | Height: | Size: 102 KiB |
|
Before Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 93 KiB |
|
Before Width: | Height: | Size: 100 KiB |
|
Before Width: | Height: | Size: 96 KiB |
|
Before Width: | Height: | Size: 100 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 642 KiB |
|
Before Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 100 KiB |
|
Before Width: | Height: | Size: 99 KiB |
|
Before Width: | Height: | Size: 102 KiB |
|
Before Width: | Height: | Size: 97 KiB |
@@ -1,62 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class RaceTileBag : Bag
|
|
||||||
{
|
|
||||||
public override bool IsArtifact { get { return false; } }
|
|
||||||
public override string DefaultName
|
|
||||||
{
|
|
||||||
get { return "Race Tiles Bag"; }
|
|
||||||
}
|
|
||||||
|
|
||||||
[Constructable]
|
|
||||||
public RaceTileBag()
|
|
||||||
{
|
|
||||||
Hue = 0x0;
|
|
||||||
|
|
||||||
DropItem( new AirElementalRaceTile() );
|
|
||||||
DropItem( new AngelRaceTile() );
|
|
||||||
DropItem( new DeamonRaceTile() );
|
|
||||||
DropItem( new DrowRaceTile() );
|
|
||||||
DropItem( new DwarvenRaceTile() );
|
|
||||||
DropItem( new EarthElementalRaceTile() );
|
|
||||||
DropItem( new ElvenRaceTile() );
|
|
||||||
DropItem( new ExampleRaceTile() );
|
|
||||||
DropItem( new FeyRaceTile() );
|
|
||||||
DropItem( new GoblinRaceTile() );
|
|
||||||
DropItem( new GremlinRaceTile() );
|
|
||||||
DropItem( new HiryuRaceTile() );
|
|
||||||
DropItem( new ImpRaceTile() );
|
|
||||||
DropItem( new KirinRaceTile() );
|
|
||||||
DropItem( new KitsuneRaceTile() );
|
|
||||||
DropItem( new OrcRaceTile() );
|
|
||||||
DropItem( new RaptorRaceTile() );
|
|
||||||
DropItem( new RatmanRaceTile() );
|
|
||||||
DropItem( new RidgebackRaceTile() );
|
|
||||||
DropItem( new TreeEntRaceTile() );
|
|
||||||
DropItem( new TrollRaceTile() );
|
|
||||||
DropItem( new WolvenRaceTile() );
|
|
||||||
}
|
|
||||||
|
|
||||||
public RaceTileBag( 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();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,62 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class ShiftOrbBag : Bag
|
|
||||||
{
|
|
||||||
public override bool IsArtifact { get { return false; } }
|
|
||||||
public override string DefaultName
|
|
||||||
{
|
|
||||||
get { return "Shift Orb Bag"; }
|
|
||||||
}
|
|
||||||
|
|
||||||
[Constructable]
|
|
||||||
public ShiftOrbBag()
|
|
||||||
{
|
|
||||||
Hue = 0x0;
|
|
||||||
|
|
||||||
DropItem( new AirElementalShiftOrb() );
|
|
||||||
DropItem( new AngelShiftOrb() );
|
|
||||||
DropItem( new DeamonShiftOrb() );
|
|
||||||
DropItem( new DrowShiftOrb() );
|
|
||||||
DropItem( new DwarvenShiftOrb() );
|
|
||||||
DropItem( new EarthElementalShiftOrb() );
|
|
||||||
DropItem( new ExampleShiftOrb() );
|
|
||||||
DropItem( new ElvenShiftOrb() );
|
|
||||||
DropItem( new FeyShiftOrb() );
|
|
||||||
DropItem( new GoblinShiftOrb() );
|
|
||||||
DropItem( new GremlinShiftOrb() );
|
|
||||||
DropItem( new HiryuShiftOrb() );
|
|
||||||
DropItem( new ImpShiftOrb() );
|
|
||||||
DropItem( new KirinShiftOrb() );
|
|
||||||
DropItem( new KitsuneShiftOrb() );
|
|
||||||
DropItem( new OrcShiftOrb() );
|
|
||||||
DropItem( new RaptorShiftOrb() );
|
|
||||||
DropItem( new RatmanShiftOrb() );
|
|
||||||
DropItem( new RidgebackShiftOrb() );
|
|
||||||
DropItem( new TreeEntShiftOrb() );
|
|
||||||
DropItem( new TrollShiftOrb() );
|
|
||||||
DropItem( new WolvenShiftOrb() );
|
|
||||||
}
|
|
||||||
|
|
||||||
public ShiftOrbBag( 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();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class ExampleRaceTile : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public ExampleRaceTile() : base(6178)
|
|
||||||
{
|
|
||||||
Movable = false;
|
|
||||||
Light = LightType.Circle300;
|
|
||||||
Hue = 0;
|
|
||||||
Name = "Example Race Tile";
|
|
||||||
}
|
|
||||||
|
|
||||||
public ExampleRaceTile(Serial serial) : base(serial)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Serialize(GenericWriter writer)
|
|
||||||
{
|
|
||||||
base.Serialize(writer);
|
|
||||||
|
|
||||||
writer.Write((int) 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnMoveOver( Mobile m )
|
|
||||||
{
|
|
||||||
m.SendMessage( "Example Message" );
|
|
||||||
m.Hue = 1453;
|
|
||||||
m.Title = "Example Title";
|
|
||||||
m.Location = new Point3D(1455, 1568, 30);
|
|
||||||
m.AddToBackpack( new ExampleShiftOrb() );
|
|
||||||
World.Broadcast( 0x35, true, "Example Message" );
|
|
||||||
return false; //Changed this to false
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Deserialize(GenericReader reader)
|
|
||||||
{
|
|
||||||
base.Deserialize(reader);
|
|
||||||
|
|
||||||
int version = reader.ReadInt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class ExampleShiftOrb : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public ExampleShiftOrb() : base( 22334 )
|
|
||||||
{
|
|
||||||
Movable = true;
|
|
||||||
Hue = 0;
|
|
||||||
Name = "A Example Shapeshift Orb";
|
|
||||||
LootType = LootType.Blessed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public ExampleShiftOrb( 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 )
|
|
||||||
{
|
|
||||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.Mounted == true )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 1042561 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
|
||||||
{
|
|
||||||
from.BodyMod = 58;
|
|
||||||
from.HueMod = 0x0;
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (from.Female == true )
|
|
||||||
{
|
|
||||||
from.BodyMod = 401;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
from.BodyMod = 400;
|
|
||||||
from.HueMod = -1;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class AirElementalRaceTile : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public AirElementalRaceTile() : base(6178)
|
|
||||||
{
|
|
||||||
Movable = false;
|
|
||||||
Light = LightType.Circle300;
|
|
||||||
Hue = 2593;
|
|
||||||
Name = "Air Elemental Race Tile";
|
|
||||||
}
|
|
||||||
|
|
||||||
public AirElementalRaceTile(Serial serial) : base(serial)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Serialize(GenericWriter writer)
|
|
||||||
{
|
|
||||||
base.Serialize(writer);
|
|
||||||
|
|
||||||
writer.Write((int) 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnMoveOver( Mobile m )
|
|
||||||
{
|
|
||||||
m.SendMessage( "You are Now a Air Elemental" );
|
|
||||||
m.Hue = 1453;
|
|
||||||
m.Title = "The Elements";
|
|
||||||
m.Location = new Point3D(1455, 1568, 30);
|
|
||||||
m.AddToBackpack( new AirElementalShiftOrb() );
|
|
||||||
World.Broadcast( 0x35, true, "Another gust blows in, Another elemental of air has joined!" );
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Deserialize(GenericReader reader)
|
|
||||||
{
|
|
||||||
base.Deserialize(reader);
|
|
||||||
|
|
||||||
int version = reader.ReadInt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class AngelRaceTile : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public AngelRaceTile() : base(6178)
|
|
||||||
{
|
|
||||||
Movable = false;
|
|
||||||
Light = LightType.Circle300;
|
|
||||||
Hue = 2064;
|
|
||||||
Name = "Angel Race Tile";
|
|
||||||
}
|
|
||||||
|
|
||||||
public AngelRaceTile(Serial serial) : base(serial)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Serialize(GenericWriter writer)
|
|
||||||
{
|
|
||||||
base.Serialize(writer);
|
|
||||||
|
|
||||||
writer.Write((int) 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnMoveOver( Mobile m )
|
|
||||||
{
|
|
||||||
m.SendMessage( "You are Now an Angel" );
|
|
||||||
m.Hue = 1150;
|
|
||||||
m.Title = "The Angel";
|
|
||||||
m.AddToBackpack( new AngelShiftOrb() );
|
|
||||||
m.Location = new Point3D(1455, 1568, 30);
|
|
||||||
World.Broadcast( 0x35, true, "Another Angel has blessed us with their presence!" );
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Deserialize(GenericReader reader)
|
|
||||||
{
|
|
||||||
base.Deserialize(reader);
|
|
||||||
|
|
||||||
int version = reader.ReadInt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class DeamonRaceTile : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public DeamonRaceTile() : base(6178)
|
|
||||||
{
|
|
||||||
Movable = false;
|
|
||||||
Light = LightType.Circle300;
|
|
||||||
Hue = 1644;
|
|
||||||
Name = "Deamon Race Tile";
|
|
||||||
}
|
|
||||||
|
|
||||||
public DeamonRaceTile(Serial serial) : base(serial)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Serialize(GenericWriter writer)
|
|
||||||
{
|
|
||||||
base.Serialize(writer);
|
|
||||||
|
|
||||||
writer.Write((int) 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnMoveOver( Mobile m )
|
|
||||||
{
|
|
||||||
m.SendMessage( "You are Now Deamonic" );
|
|
||||||
m.Hue = 434;
|
|
||||||
m.Title = "The Deamon";
|
|
||||||
m.Location = new Point3D(1455, 1568, 30);
|
|
||||||
m.AddToBackpack( new DeamonShiftOrb() );
|
|
||||||
World.Broadcast( 0x35, true, "Another walks the Path of the Deamon!" );
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Deserialize(GenericReader reader)
|
|
||||||
{
|
|
||||||
base.Deserialize(reader);
|
|
||||||
|
|
||||||
int version = reader.ReadInt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class DrowRaceTile : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public DrowRaceTile() : base(6178)
|
|
||||||
{
|
|
||||||
Movable = false;
|
|
||||||
Light = LightType.Circle300;
|
|
||||||
Hue = 962;
|
|
||||||
Name = "Drow Race Tile";
|
|
||||||
}
|
|
||||||
|
|
||||||
public DrowRaceTile(Serial serial) : base(serial)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Serialize(GenericWriter writer)
|
|
||||||
{
|
|
||||||
base.Serialize(writer);
|
|
||||||
|
|
||||||
writer.Write((int) 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnMoveOver( Mobile m )
|
|
||||||
{
|
|
||||||
m.SendMessage( "You are Now Drow" );
|
|
||||||
m.Hue = 2406;
|
|
||||||
m.Title = "The Drow";
|
|
||||||
m.AddToBackpack( new DrowShiftOrb() );
|
|
||||||
m.Location = new Point3D(1455, 1568, 30);
|
|
||||||
World.Broadcast( 0x35, true, "Another feels the Dark as they walk with the Drow!" );
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Deserialize(GenericReader reader)
|
|
||||||
{
|
|
||||||
base.Deserialize(reader);
|
|
||||||
|
|
||||||
int version = reader.ReadInt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class DwarvenRaceTile : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public DwarvenRaceTile() : base(6178)
|
|
||||||
{
|
|
||||||
Movable = false;
|
|
||||||
Light = LightType.Circle300;
|
|
||||||
Hue = 748;
|
|
||||||
Name = "Dwarven Race Tile";
|
|
||||||
}
|
|
||||||
|
|
||||||
public DwarvenRaceTile(Serial serial) : base(serial)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Serialize(GenericWriter writer)
|
|
||||||
{
|
|
||||||
base.Serialize(writer);
|
|
||||||
|
|
||||||
writer.Write((int) 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnMoveOver( Mobile m )
|
|
||||||
{
|
|
||||||
m.SendMessage( "You are Now Dwarven" );
|
|
||||||
m.Hue = 748;
|
|
||||||
m.Title = "The Dwarf";
|
|
||||||
m.Location = new Point3D(1455, 1568, 30);
|
|
||||||
m.AddToBackpack( new DwarvenShiftOrb() );
|
|
||||||
World.Broadcast( 0x35, true, "The Dwarves have added another to their Ranks..." );
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Deserialize(GenericReader reader)
|
|
||||||
{
|
|
||||||
base.Deserialize(reader);
|
|
||||||
|
|
||||||
int version = reader.ReadInt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class EarthElementalRaceTile : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public EarthElementalRaceTile() : base(6178)
|
|
||||||
{
|
|
||||||
Movable = false;
|
|
||||||
Light = LightType.Circle300;
|
|
||||||
Hue = 2017;
|
|
||||||
Name = "Earth Elemental Race Tile";
|
|
||||||
}
|
|
||||||
|
|
||||||
public EarthElementalRaceTile(Serial serial) : base(serial)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Serialize(GenericWriter writer)
|
|
||||||
{
|
|
||||||
base.Serialize(writer);
|
|
||||||
|
|
||||||
writer.Write((int) 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnMoveOver( Mobile m )
|
|
||||||
{
|
|
||||||
m.SendMessage( "You are Now a Earth Elemental" );
|
|
||||||
m.Hue = 1453;
|
|
||||||
m.Title = "The Elements";
|
|
||||||
m.Location = new Point3D(1455, 1568, 30);
|
|
||||||
m.AddToBackpack( new EarthElementalShiftOrb() );
|
|
||||||
World.Broadcast( 0x35, true, "Another bolder rolls in. Another elemental of earth has joined!" );
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Deserialize(GenericReader reader)
|
|
||||||
{
|
|
||||||
base.Deserialize(reader);
|
|
||||||
|
|
||||||
int version = reader.ReadInt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class ElvenRaceTile : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public ElvenRaceTile() : base(6178)
|
|
||||||
{
|
|
||||||
Movable = false;
|
|
||||||
Light = LightType.Circle300;
|
|
||||||
Hue = 1169;
|
|
||||||
Name = "Elven Race Tile";
|
|
||||||
}
|
|
||||||
|
|
||||||
public ElvenRaceTile(Serial serial) : base(serial)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Serialize(GenericWriter writer)
|
|
||||||
{
|
|
||||||
base.Serialize(writer);
|
|
||||||
|
|
||||||
writer.Write((int) 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnMoveOver( Mobile m )
|
|
||||||
{
|
|
||||||
m.SendMessage( "You are Now Elven" );
|
|
||||||
m.Hue = 1410;
|
|
||||||
m.Title = "The Elf";
|
|
||||||
m.Location = new Point3D(1455, 1568, 30);
|
|
||||||
m.AddToBackpack( new ElvenShiftOrb() );
|
|
||||||
World.Broadcast( 0x35, true, "Another Elf has Joined the community!" );
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Deserialize(GenericReader reader)
|
|
||||||
{
|
|
||||||
base.Deserialize(reader);
|
|
||||||
|
|
||||||
int version = reader.ReadInt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
//Created By Cassius for Order of The Red Dragon
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class FeyRaceTile : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public FeyRaceTile() : base(6178)
|
|
||||||
{
|
|
||||||
Movable = false;
|
|
||||||
Light = LightType.Circle300;
|
|
||||||
Hue = 2637;
|
|
||||||
Name = "Fey Race Tile";
|
|
||||||
}
|
|
||||||
|
|
||||||
public FeyRaceTile(Serial serial) : base(serial)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Serialize(GenericWriter writer)
|
|
||||||
{
|
|
||||||
base.Serialize(writer);
|
|
||||||
|
|
||||||
writer.Write((int) 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnMoveOver( Mobile m )
|
|
||||||
{
|
|
||||||
m.SendMessage( "You are Now Fey" );
|
|
||||||
m.Hue = 2637;
|
|
||||||
m.Title = "The Fey";
|
|
||||||
m.Location = new Point3D(1455, 1568, 30);
|
|
||||||
m.AddToBackpack( new FeyShiftOrb() );
|
|
||||||
World.Broadcast( 0x35, true, "Another feels the magic as they join the Fey..." );
|
|
||||||
return false; //Changed this to false
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Deserialize(GenericReader reader)
|
|
||||||
{
|
|
||||||
base.Deserialize(reader);
|
|
||||||
|
|
||||||
int version = reader.ReadInt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class GoblinRaceTile : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public GoblinRaceTile() : base(6178)
|
|
||||||
{
|
|
||||||
Movable = false;
|
|
||||||
Light = LightType.Circle300;
|
|
||||||
Hue = 1005;
|
|
||||||
Name = "Goblin Race Orb";
|
|
||||||
}
|
|
||||||
|
|
||||||
public GoblinRaceTile(Serial serial) : base(serial)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Serialize(GenericWriter writer)
|
|
||||||
{
|
|
||||||
base.Serialize(writer);
|
|
||||||
|
|
||||||
writer.Write((int) 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnMoveOver( Mobile m )
|
|
||||||
{
|
|
||||||
m.SendMessage( "You are Now a part a Goblin" );
|
|
||||||
m.Hue = 1453;
|
|
||||||
m.Title = "The Goblin";
|
|
||||||
m.Location = new Point3D(1455, 1568, 30);
|
|
||||||
m.AddToBackpack( new GremlinShiftOrb() );
|
|
||||||
World.Broadcast( 0x35, true, "Another goblin has joined! Watch your coins!" );
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Deserialize(GenericReader reader)
|
|
||||||
{
|
|
||||||
base.Deserialize(reader);
|
|
||||||
|
|
||||||
int version = reader.ReadInt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
//Created By Cassius for Order of The Red Dragon
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class GremlinRaceTile : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public GremlinRaceTile() : base(6178)
|
|
||||||
{
|
|
||||||
Movable = false;
|
|
||||||
Light = LightType.Circle300;
|
|
||||||
Hue = 1001;
|
|
||||||
Name = "Gremlin Race Tile";
|
|
||||||
}
|
|
||||||
|
|
||||||
public GremlinRaceTile(Serial serial) : base(serial)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Serialize(GenericWriter writer)
|
|
||||||
{
|
|
||||||
base.Serialize(writer);
|
|
||||||
|
|
||||||
writer.Write((int) 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnMoveOver( Mobile m )
|
|
||||||
{
|
|
||||||
m.SendMessage( "You are Now a part a Gremlin" );
|
|
||||||
m.Hue = 1453;
|
|
||||||
m.Title = "The Gremlin";
|
|
||||||
m.Location = new Point3D(1455, 1568, 30);
|
|
||||||
m.AddToBackpack( new GremlinShiftOrb() );
|
|
||||||
World.Broadcast( 0x35, true, "Another gremlin has joined! Watch your backpacks!" );
|
|
||||||
return false; //Changed this to false
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Deserialize(GenericReader reader)
|
|
||||||
{
|
|
||||||
base.Deserialize(reader);
|
|
||||||
|
|
||||||
int version = reader.ReadInt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
//Created By Cassius for Order of The Red Dragon
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class HiryuRaceTile : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public HiryuRaceTile() : base(6178)
|
|
||||||
{
|
|
||||||
Movable = false;
|
|
||||||
Light = LightType.Circle300;
|
|
||||||
Hue = 100;
|
|
||||||
Name = "Hiryu Race Tile";
|
|
||||||
}
|
|
||||||
|
|
||||||
public HiryuRaceTile(Serial serial) : base(serial)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Serialize(GenericWriter writer)
|
|
||||||
{
|
|
||||||
base.Serialize(writer);
|
|
||||||
|
|
||||||
writer.Write((int) 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnMoveOver( Mobile m )
|
|
||||||
{
|
|
||||||
m.SendMessage( "You are Now a part of Hiryu" );
|
|
||||||
m.Hue = 1453;
|
|
||||||
m.Title = "The Hiryu";
|
|
||||||
m.Location = new Point3D(1455, 1568, 30);
|
|
||||||
m.AddToBackpack( new HiryuShiftOrb() );
|
|
||||||
World.Broadcast( 0x35, true, "Another Hiryu of legend has joined!" );
|
|
||||||
return false; //Changed this to false
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Deserialize(GenericReader reader)
|
|
||||||
{
|
|
||||||
base.Deserialize(reader);
|
|
||||||
|
|
||||||
int version = reader.ReadInt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class ImpRaceTile : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public ImpRaceTile() : base(6178)
|
|
||||||
{
|
|
||||||
Movable = false;
|
|
||||||
Light = LightType.Circle300;
|
|
||||||
Hue = 1453;
|
|
||||||
Name = "Imp Race Tile";
|
|
||||||
}
|
|
||||||
|
|
||||||
public ImpRaceTile(Serial serial) : base(serial)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Serialize(GenericWriter writer)
|
|
||||||
{
|
|
||||||
base.Serialize(writer);
|
|
||||||
|
|
||||||
writer.Write((int) 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnMoveOver( Mobile m )
|
|
||||||
{
|
|
||||||
m.SendMessage( "You are now part Imp" );
|
|
||||||
m.Hue = 1453;
|
|
||||||
m.Title = "The Imp";
|
|
||||||
m.Location = new Point3D(1455, 1568, 30);
|
|
||||||
m.AddToBackpack( new ImpShiftOrb() );
|
|
||||||
World.Broadcast( 0x35, true, "I wonder what this Imp could be up to!?" );
|
|
||||||
return false; //Changed this to false
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Deserialize(GenericReader reader)
|
|
||||||
{
|
|
||||||
base.Deserialize(reader);
|
|
||||||
|
|
||||||
int version = reader.ReadInt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class KirinRaceTile : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public KirinRaceTile() : base(6178)
|
|
||||||
{
|
|
||||||
Movable = false;
|
|
||||||
Light = LightType.Circle300;
|
|
||||||
Hue = 2501;
|
|
||||||
Name = "Kirin Race Tile";
|
|
||||||
}
|
|
||||||
|
|
||||||
public KirinRaceTile(Serial serial) : base(serial)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Serialize(GenericWriter writer)
|
|
||||||
{
|
|
||||||
base.Serialize(writer);
|
|
||||||
|
|
||||||
writer.Write((int) 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnMoveOver( Mobile m )
|
|
||||||
{
|
|
||||||
m.SendMessage( "You are now part Kirin" );
|
|
||||||
m.Hue = 1453;
|
|
||||||
m.Title = "The Kirin";
|
|
||||||
m.Location = new Point3D(1455, 1568, 30);
|
|
||||||
m.AddToBackpack( new KirinShiftOrb() );
|
|
||||||
World.Broadcast( 0x35, true, "Where did that Kirin come from?!" );
|
|
||||||
return false; //Changed this to false
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Deserialize(GenericReader reader)
|
|
||||||
{
|
|
||||||
base.Deserialize(reader);
|
|
||||||
|
|
||||||
int version = reader.ReadInt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class KitsuneRaceTile : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public KitsuneRaceTile() : base(6178)
|
|
||||||
{
|
|
||||||
Movable = false;
|
|
||||||
Light = LightType.Circle300;
|
|
||||||
Hue = 1161;
|
|
||||||
Name = "Kitsune Race Tile";
|
|
||||||
}
|
|
||||||
|
|
||||||
public KitsuneRaceTile(Serial serial) : base(serial)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Serialize(GenericWriter writer)
|
|
||||||
{
|
|
||||||
base.Serialize(writer);
|
|
||||||
|
|
||||||
writer.Write((int) 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnMoveOver( Mobile m )
|
|
||||||
{
|
|
||||||
m.SendMessage( "You are Now an Kitsune" );
|
|
||||||
m.Hue = 1150;
|
|
||||||
m.Title = "The Kitsune";
|
|
||||||
m.AddToBackpack( new KitsuneShiftOrb() );
|
|
||||||
m.Location = new Point3D(1455, 1568, 30);
|
|
||||||
World.Broadcast( 0x35, true, "Another Kitsune has blessed us with their presence!" );
|
|
||||||
return false; //Changed this to false
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Deserialize(GenericReader reader)
|
|
||||||
{
|
|
||||||
base.Deserialize(reader);
|
|
||||||
|
|
||||||
int version = reader.ReadInt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
//Created By Cassius for Order of The Red Dragon
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class OrcRaceTile : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public OrcRaceTile() : base(6178)
|
|
||||||
{
|
|
||||||
Movable = false;
|
|
||||||
Light = LightType.Circle300;
|
|
||||||
Hue = 558;
|
|
||||||
Name = "Orc Race Tile";
|
|
||||||
}
|
|
||||||
|
|
||||||
public OrcRaceTile(Serial serial) : base(serial)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Serialize(GenericWriter writer)
|
|
||||||
{
|
|
||||||
base.Serialize(writer);
|
|
||||||
|
|
||||||
writer.Write((int) 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnMoveOver( Mobile m )
|
|
||||||
{
|
|
||||||
m.SendMessage( "You are Now Orcish" );
|
|
||||||
m.Hue = 2212;
|
|
||||||
m.Title = "The Orc";
|
|
||||||
m.AddToBackpack( new OrcShiftOrb() );
|
|
||||||
m.Location = new Point3D(1455, 1568, 30);
|
|
||||||
World.Broadcast( 0x35, true, "The Orcs have Claimed another to their ranks!" );
|
|
||||||
return false; //Changed this to false
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Deserialize(GenericReader reader)
|
|
||||||
{
|
|
||||||
base.Deserialize(reader);
|
|
||||||
|
|
||||||
int version = reader.ReadInt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class RaptorRaceTile : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public RaptorRaceTile() : base(6178)
|
|
||||||
{
|
|
||||||
Movable = false;
|
|
||||||
Light = LightType.Circle300;
|
|
||||||
Hue = 2212;
|
|
||||||
Name = "Raptor Race Tile";
|
|
||||||
}
|
|
||||||
|
|
||||||
public RaptorRaceTile(Serial serial) : base(serial)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Serialize(GenericWriter writer)
|
|
||||||
{
|
|
||||||
base.Serialize(writer);
|
|
||||||
|
|
||||||
writer.Write((int) 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnMoveOver( Mobile m )
|
|
||||||
{
|
|
||||||
m.SendMessage( "You are now part Raptor" );
|
|
||||||
m.Hue = 1453;
|
|
||||||
m.Title = "The Raptor";
|
|
||||||
m.Location = new Point3D(1455, 1568, 30);
|
|
||||||
m.AddToBackpack( new RaptorShiftOrb() );
|
|
||||||
World.Broadcast( 0x35, true, "WHAT?! did i just see a Raptor walk by??" );
|
|
||||||
return false; //Changed this to false
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Deserialize(GenericReader reader)
|
|
||||||
{
|
|
||||||
base.Deserialize(reader);
|
|
||||||
|
|
||||||
int version = reader.ReadInt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class RatmanRaceTile : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public RatmanRaceTile() : base(6178)
|
|
||||||
{
|
|
||||||
Movable = false;
|
|
||||||
Light = LightType.Circle300;
|
|
||||||
Hue = 2213;
|
|
||||||
Name = "Ratman Race Tile";
|
|
||||||
}
|
|
||||||
|
|
||||||
public RatmanRaceTile(Serial serial) : base(serial)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Serialize(GenericWriter writer)
|
|
||||||
{
|
|
||||||
base.Serialize(writer);
|
|
||||||
|
|
||||||
writer.Write((int) 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnMoveOver( Mobile m )
|
|
||||||
{
|
|
||||||
m.SendMessage( "You are now part of the Ratmen" );
|
|
||||||
m.Hue = 1453;
|
|
||||||
m.Title = "The Ratman";
|
|
||||||
m.Location = new Point3D(1455, 1568, 30);
|
|
||||||
m.AddToBackpack( new RatmanShiftOrb() );
|
|
||||||
World.Broadcast( 0x35, true, "I hope its friendly!" );
|
|
||||||
return false; //Changed this to false
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Deserialize(GenericReader reader)
|
|
||||||
{
|
|
||||||
base.Deserialize(reader);
|
|
||||||
|
|
||||||
int version = reader.ReadInt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class RidgebackRaceTile : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public RidgebackRaceTile() : base(6178)
|
|
||||||
{
|
|
||||||
Movable = false;
|
|
||||||
Light = LightType.Circle300;
|
|
||||||
Hue = 26;
|
|
||||||
Name = "Ridgeback Race Tile";
|
|
||||||
}
|
|
||||||
|
|
||||||
public RidgebackRaceTile(Serial serial) : base(serial)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Serialize(GenericWriter writer)
|
|
||||||
{
|
|
||||||
base.Serialize(writer);
|
|
||||||
|
|
||||||
writer.Write((int) 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnMoveOver( Mobile m )
|
|
||||||
{
|
|
||||||
m.SendMessage( "You are now part Ridgeback" );
|
|
||||||
m.Hue = 1453;
|
|
||||||
m.Title = "The Ridgeback";
|
|
||||||
m.Location = new Point3D(1455, 1568, 30);
|
|
||||||
m.AddToBackpack( new RidgebackShiftOrb() );
|
|
||||||
World.Broadcast( 0x35, true, "WHAT?! why would you become a mount?" );
|
|
||||||
return false; //Changed this to false
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Deserialize(GenericReader reader)
|
|
||||||
{
|
|
||||||
base.Deserialize(reader);
|
|
||||||
|
|
||||||
int version = reader.ReadInt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
//Created By Cassius for Order of The Red Dragon
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class TreeEntRaceTile : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public TreeEntRaceTile() : base(6178)
|
|
||||||
{
|
|
||||||
Movable = false;
|
|
||||||
Light = LightType.Circle300;
|
|
||||||
Hue = 2514;
|
|
||||||
Name = "Tree Ent Race Tile";
|
|
||||||
}
|
|
||||||
|
|
||||||
public TreeEntRaceTile(Serial serial) : base(serial)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Serialize(GenericWriter writer)
|
|
||||||
{
|
|
||||||
base.Serialize(writer);
|
|
||||||
|
|
||||||
writer.Write((int) 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnMoveOver( Mobile m )
|
|
||||||
{
|
|
||||||
m.SendMessage( "You are Now part of the Ents" );
|
|
||||||
m.Hue = 1410;
|
|
||||||
m.Title = "The Ents";
|
|
||||||
m.Location = new Point3D(1455, 1568, 30);
|
|
||||||
m.AddToBackpack( new TreeEntShiftOrb() );
|
|
||||||
World.Broadcast( 0x35, true, "Another Ent has Joined the community!" );
|
|
||||||
return false; //Changed this to false
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Deserialize(GenericReader reader)
|
|
||||||
{
|
|
||||||
base.Deserialize(reader);
|
|
||||||
|
|
||||||
int version = reader.ReadInt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class TrollRaceTile : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public TrollRaceTile() : base(6178)
|
|
||||||
{
|
|
||||||
Movable = false;
|
|
||||||
Light = LightType.Circle300;
|
|
||||||
Hue = 2579;
|
|
||||||
Name = "Troll Race Tile";
|
|
||||||
}
|
|
||||||
|
|
||||||
public TrollRaceTile(Serial serial) : base(serial)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Serialize(GenericWriter writer)
|
|
||||||
{
|
|
||||||
base.Serialize(writer);
|
|
||||||
|
|
||||||
writer.Write((int) 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnMoveOver( Mobile m )
|
|
||||||
{
|
|
||||||
m.SendMessage( "You are now part of the Trolls" );
|
|
||||||
m.Hue = 1453;
|
|
||||||
m.Title = "The Troll";
|
|
||||||
m.Location = new Point3D(1455, 1568, 30);
|
|
||||||
m.AddToBackpack( new TrollShiftOrb() );
|
|
||||||
World.Broadcast( 0x35, true, "I hope its friendly!" );
|
|
||||||
return false; //Changed this to false
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Deserialize(GenericReader reader)
|
|
||||||
{
|
|
||||||
base.Deserialize(reader);
|
|
||||||
|
|
||||||
int version = reader.ReadInt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
//Created By Cassius for Order of The Red Dragon
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class WolvenRaceTile : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public WolvenRaceTile() : base(6178)
|
|
||||||
{
|
|
||||||
Movable = false;
|
|
||||||
Light = LightType.Circle300;
|
|
||||||
Hue = 705;
|
|
||||||
Name = "Wolven Race Tile";
|
|
||||||
}
|
|
||||||
|
|
||||||
public WolvenRaceTile(Serial serial) : base(serial)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Serialize(GenericWriter writer)
|
|
||||||
{
|
|
||||||
base.Serialize(writer);
|
|
||||||
|
|
||||||
writer.Write((int) 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override bool OnMoveOver( Mobile m )
|
|
||||||
{
|
|
||||||
m.SendMessage( "You are Now Wolven" );
|
|
||||||
m.Hue = 1453;
|
|
||||||
m.Title = "The Wolven";
|
|
||||||
m.Location = new Point3D(1455, 1568, 30);
|
|
||||||
m.AddToBackpack( new WolvenShiftOrb() );
|
|
||||||
World.Broadcast( 0x35, true, "Another Howls at the moon as the walk with the Pack of the Wolven!" );
|
|
||||||
return false; //Changed this to false
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Deserialize(GenericReader reader)
|
|
||||||
{
|
|
||||||
base.Deserialize(reader);
|
|
||||||
|
|
||||||
int version = reader.ReadInt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class AirElementalShiftOrb : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public AirElementalShiftOrb() : base( 22334 )
|
|
||||||
{
|
|
||||||
Movable = true;
|
|
||||||
Hue = 2593;
|
|
||||||
Name = "A Air Elemental Shapeshift Orb";
|
|
||||||
LootType = LootType.Blessed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public AirElementalShiftOrb( 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 )
|
|
||||||
{
|
|
||||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.Mounted == true )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 1042561 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
|
||||||
{
|
|
||||||
from.BodyMod = 13;
|
|
||||||
from.HueMod = 0x4001;
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (from.Female == true )
|
|
||||||
{
|
|
||||||
from.BodyMod = 401;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
from.BodyMod = 400;
|
|
||||||
from.HueMod = -1;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class AngelShiftOrb : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public AngelShiftOrb() : base( 22334 )
|
|
||||||
{
|
|
||||||
Movable = true;
|
|
||||||
Hue = 2064;
|
|
||||||
Name = "An Angel Shapeshift Orb";
|
|
||||||
LootType = LootType.Blessed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public AngelShiftOrb( 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 )
|
|
||||||
{
|
|
||||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.Mounted == true )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 1042561 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
|
||||||
{
|
|
||||||
from.BodyMod = 123;
|
|
||||||
from.HueMod = 0x0;
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (from.Female == true )
|
|
||||||
{
|
|
||||||
from.BodyMod = 401;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
from.BodyMod = 400;
|
|
||||||
from.HueMod = -1;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class DeamonShiftOrb : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public DeamonShiftOrb() : base( 22334 )
|
|
||||||
{
|
|
||||||
Movable = true;
|
|
||||||
Hue = 1644;
|
|
||||||
Name = "A Deamon Shapeshift Orb";
|
|
||||||
LootType = LootType.Blessed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public DeamonShiftOrb( 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 )
|
|
||||||
{
|
|
||||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.Mounted == true )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 1042561 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
|
||||||
{
|
|
||||||
from.BodyMod = 10;
|
|
||||||
from.HueMod = 0x0;
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (from.Female == true )
|
|
||||||
{
|
|
||||||
from.BodyMod = 401;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
from.BodyMod = 400;
|
|
||||||
from.HueMod = -1;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class DrowShiftOrb : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public DrowShiftOrb() : base( 22334 )
|
|
||||||
{
|
|
||||||
Movable = true;
|
|
||||||
Hue = 962;
|
|
||||||
Name = "A Drow Shapeshift Orb";
|
|
||||||
LootType = LootType.Blessed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public DrowShiftOrb( 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 )
|
|
||||||
{
|
|
||||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.Mounted == true )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 1042561 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
|
||||||
{
|
|
||||||
from.BodyMod = 11;
|
|
||||||
from.HueMod = 0x0;
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (from.Female == true )
|
|
||||||
{
|
|
||||||
from.BodyMod = 401;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
from.BodyMod = 400;
|
|
||||||
from.HueMod = -1;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class DwarvenShiftOrb : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public DwarvenShiftOrb() : base( 22334 )
|
|
||||||
{
|
|
||||||
Movable = true;
|
|
||||||
Hue = 558;
|
|
||||||
Name = "A Dwarven Shapeshift Orb";
|
|
||||||
LootType = LootType.Blessed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public DwarvenShiftOrb( 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 )
|
|
||||||
{
|
|
||||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.Mounted == true )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 1042561 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
|
||||||
{
|
|
||||||
from.BodyMod = 101;
|
|
||||||
from.HueMod = 0x0;
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (from.Female == true )
|
|
||||||
{
|
|
||||||
from.BodyMod = 401;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
from.BodyMod = 400;
|
|
||||||
from.HueMod = -1;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class EarthElementalShiftOrb : BaseTalisman
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public EarthElementalShiftOrb() : base( 22334 )
|
|
||||||
{
|
|
||||||
Movable = true;
|
|
||||||
Hue = 2017;
|
|
||||||
Name = "A Earth Elemental Shapeshift Orb";
|
|
||||||
LootType = LootType.Blessed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public EarthElementalShiftOrb( 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 )
|
|
||||||
{
|
|
||||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.Mounted == true )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 1042561 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
|
||||||
{
|
|
||||||
from.BodyMod = 14;
|
|
||||||
from.HueMod = 0x0;
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (from.Female == true )
|
|
||||||
{
|
|
||||||
from.BodyMod = 401;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
from.BodyMod = 400;
|
|
||||||
from.HueMod = -1;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class ElvenShiftOrb : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public ElvenShiftOrb() : base( 22334 )
|
|
||||||
{
|
|
||||||
Movable = true;
|
|
||||||
Hue = 1169;
|
|
||||||
Name = "An Elven Shapeshift Orb";
|
|
||||||
LootType = LootType.Blessed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public ElvenShiftOrb( 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 )
|
|
||||||
{
|
|
||||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.Mounted == true )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 1042561 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
|
||||||
{
|
|
||||||
from.BodyMod = 264;
|
|
||||||
from.HueMod = 0x0;
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (from.Female == true )
|
|
||||||
{
|
|
||||||
from.BodyMod = 401;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
from.BodyMod = 400;
|
|
||||||
from.HueMod = -1;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class FeyShiftOrb : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public FeyShiftOrb() : base( 22334 )
|
|
||||||
{
|
|
||||||
Movable = true;
|
|
||||||
Hue = 2637;
|
|
||||||
Name = "A Fey Shapeshift Orb";
|
|
||||||
LootType = LootType.Blessed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public FeyShiftOrb( 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 )
|
|
||||||
{
|
|
||||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.Mounted == true )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 1042561 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
|
||||||
{
|
|
||||||
from.BodyMod = 176;
|
|
||||||
from.HueMod = 0x0;
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (from.Female == true )
|
|
||||||
{
|
|
||||||
from.BodyMod = 401;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
from.BodyMod = 400;
|
|
||||||
from.HueMod = -1;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class GoblinShiftOrb : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public GoblinShiftOrb() : base( 22334 )
|
|
||||||
{
|
|
||||||
Movable = true;
|
|
||||||
Hue = 1005;
|
|
||||||
Name = "A Goblin Shapeshift Orb";
|
|
||||||
LootType = LootType.Blessed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public GoblinShiftOrb( 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 )
|
|
||||||
{
|
|
||||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.Mounted == true )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 1042561 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
|
||||||
{
|
|
||||||
from.BodyMod = 723;
|
|
||||||
from.HueMod = 0x0;
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (from.Female == true )
|
|
||||||
{
|
|
||||||
from.BodyMod = 401;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
from.BodyMod = 400;
|
|
||||||
from.HueMod = -1;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class GremlinShiftOrb : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public GremlinShiftOrb() : base( 22334 )
|
|
||||||
{
|
|
||||||
Movable = true;
|
|
||||||
Hue = 1001;
|
|
||||||
Name = "A Gremlin Shapeshift Orb";
|
|
||||||
LootType = LootType.Blessed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public GremlinShiftOrb( 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 )
|
|
||||||
{
|
|
||||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.Mounted == true )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 1042561 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
|
||||||
{
|
|
||||||
from.BodyMod = 724;
|
|
||||||
from.HueMod = 0x0;
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (from.Female == true )
|
|
||||||
{
|
|
||||||
from.BodyMod = 401;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
from.BodyMod = 400;
|
|
||||||
from.HueMod = -1;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class HiryuShiftOrb : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public HiryuShiftOrb() : base( 22334 )
|
|
||||||
{
|
|
||||||
Movable = true;
|
|
||||||
Hue = 100;
|
|
||||||
Name = "A Hiryu Shapeshift Orb";
|
|
||||||
LootType = LootType.Blessed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public HiryuShiftOrb( 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 )
|
|
||||||
{
|
|
||||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.Mounted == true )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 1042561 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
|
||||||
{
|
|
||||||
from.BodyMod = 243;
|
|
||||||
from.HueMod = 0x0;
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (from.Female == true )
|
|
||||||
{
|
|
||||||
from.BodyMod = 401;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
from.BodyMod = 400;
|
|
||||||
from.HueMod = -1;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class ImpShiftOrb : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public ImpShiftOrb() : base( 22334 )
|
|
||||||
{
|
|
||||||
Movable = true;
|
|
||||||
Hue = 1453;
|
|
||||||
Name = "A Imp Shapeshift Orb";
|
|
||||||
LootType = LootType.Blessed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public ImpShiftOrb( 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 )
|
|
||||||
{
|
|
||||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.Mounted == true )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 1042561 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
|
||||||
{
|
|
||||||
from.BodyMod = 74;
|
|
||||||
from.HueMod = 0x0;
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (from.Female == true )
|
|
||||||
{
|
|
||||||
from.BodyMod = 401;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
from.BodyMod = 400;
|
|
||||||
from.HueMod = -1;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class KirinShiftOrb : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public KirinShiftOrb() : base( 22334 )
|
|
||||||
{
|
|
||||||
Movable = true;
|
|
||||||
Hue = 2501;
|
|
||||||
Name = "A Kirin Shapeshift Orb";
|
|
||||||
LootType = LootType.Blessed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public KirinShiftOrb( 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 )
|
|
||||||
{
|
|
||||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.Mounted == true )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 1042561 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
|
||||||
{
|
|
||||||
from.BodyMod = 132;
|
|
||||||
from.HueMod = 0x0;
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (from.Female == true )
|
|
||||||
{
|
|
||||||
from.BodyMod = 401;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
from.BodyMod = 400;
|
|
||||||
from.HueMod = -1;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class KitsuneShiftOrb : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public KitsuneShiftOrb() : base( 22334 )
|
|
||||||
{
|
|
||||||
Movable = true;
|
|
||||||
Hue = 1161;
|
|
||||||
Name = "An Kitsune Shapeshift Orb";
|
|
||||||
LootType = LootType.Blessed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public KitsuneShiftOrb( 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 )
|
|
||||||
{
|
|
||||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.Mounted == true )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 1042561 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
|
||||||
{
|
|
||||||
from.BodyMod = 246;
|
|
||||||
from.HueMod = 0x0;
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (from.Female == true )
|
|
||||||
{
|
|
||||||
from.BodyMod = 401;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
from.BodyMod = 400;
|
|
||||||
from.HueMod = -1;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class OrcShiftOrb : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public OrcShiftOrb() : base( 22334 )
|
|
||||||
{
|
|
||||||
Movable = true;
|
|
||||||
Hue = 558;
|
|
||||||
Name = "An Orcish Shapeshift Orb";
|
|
||||||
LootType = LootType.Blessed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public OrcShiftOrb( 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 )
|
|
||||||
{
|
|
||||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.Mounted == true )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 1042561 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
|
||||||
{
|
|
||||||
from.BodyMod = 140;
|
|
||||||
from.HueMod = 0x0;
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (from.Female == true )
|
|
||||||
{
|
|
||||||
from.BodyMod = 401;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
from.BodyMod = 400;
|
|
||||||
from.HueMod = -1;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class RaptorShiftOrb : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public RaptorShiftOrb() : base( 22334 )
|
|
||||||
{
|
|
||||||
Movable = true;
|
|
||||||
Hue = 2212;
|
|
||||||
Name = "A Raptor Shapeshift Orb";
|
|
||||||
LootType = LootType.Blessed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public RaptorShiftOrb( 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 )
|
|
||||||
{
|
|
||||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.Mounted == true )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 1042561 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
|
||||||
{
|
|
||||||
from.BodyMod = 730;
|
|
||||||
from.HueMod = 0x0;
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (from.Female == true )
|
|
||||||
{
|
|
||||||
from.BodyMod = 401;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
from.BodyMod = 400;
|
|
||||||
from.HueMod = -1;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class RatmanShiftOrb : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public RatmanShiftOrb() : base( 22334 )
|
|
||||||
{
|
|
||||||
Movable = true;
|
|
||||||
Hue = 2213;
|
|
||||||
Name = "A Ratman Shapeshift Orb";
|
|
||||||
LootType = LootType.Blessed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public RatmanShiftOrb( 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 )
|
|
||||||
{
|
|
||||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.Mounted == true )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 1042561 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
|
||||||
{
|
|
||||||
from.BodyMod = 42;
|
|
||||||
from.HueMod = 0x0;
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (from.Female == true )
|
|
||||||
{
|
|
||||||
from.BodyMod = 401;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
from.BodyMod = 400;
|
|
||||||
from.HueMod = -1;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class RidgebackShiftOrb : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public RidgebackShiftOrb() : base( 22334 )
|
|
||||||
{
|
|
||||||
Movable = true;
|
|
||||||
Hue = 26;
|
|
||||||
Name = "A Ridgeback Shapeshift Orb";
|
|
||||||
LootType = LootType.Blessed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public RidgebackShiftOrb( 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 )
|
|
||||||
{
|
|
||||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.Mounted == true )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 1042561 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
|
||||||
{
|
|
||||||
from.BodyMod = 187;
|
|
||||||
from.HueMod = 0x0;
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (from.Female == true )
|
|
||||||
{
|
|
||||||
from.BodyMod = 401;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
from.BodyMod = 400;
|
|
||||||
from.HueMod = -1;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class TreeEntShiftOrb : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public TreeEntShiftOrb() : base( 22334 )
|
|
||||||
{
|
|
||||||
Movable = true;
|
|
||||||
Hue = 2514;
|
|
||||||
Name = "An Tree Ent Shapeshift Orb";
|
|
||||||
LootType = LootType.Blessed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public TreeEntShiftOrb( 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 )
|
|
||||||
{
|
|
||||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.Mounted == true )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 1042561 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
|
||||||
{
|
|
||||||
from.BodyMod = 301;
|
|
||||||
from.HueMod = 0x0;
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (from.Female == true )
|
|
||||||
{
|
|
||||||
from.BodyMod = 401;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
from.BodyMod = 400;
|
|
||||||
from.HueMod = -1;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class TrollShiftOrb : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public TrollShiftOrb() : base( 22334 )
|
|
||||||
{
|
|
||||||
Movable = true;
|
|
||||||
Hue = 2579;
|
|
||||||
Name = "A Troll Shapeshift Orb";
|
|
||||||
LootType = LootType.Blessed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public TrollShiftOrb( 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 )
|
|
||||||
{
|
|
||||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.Mounted == true )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 1042561 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
|
||||||
{
|
|
||||||
from.BodyMod = 53;
|
|
||||||
from.HueMod = 0x0;
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (from.Female == true )
|
|
||||||
{
|
|
||||||
from.BodyMod = 401;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
from.BodyMod = 400;
|
|
||||||
from.HueMod = -1;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Server.Items;
|
|
||||||
|
|
||||||
namespace Server.Items
|
|
||||||
{
|
|
||||||
public class WolvenShiftOrb : Item
|
|
||||||
{
|
|
||||||
[Constructable]
|
|
||||||
public WolvenShiftOrb() : base( 22334 )
|
|
||||||
{
|
|
||||||
Movable = true;
|
|
||||||
Hue = 705;
|
|
||||||
Name = "A Wolven Shapeshift Orb";
|
|
||||||
LootType = LootType.Blessed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public WolvenShiftOrb( 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 )
|
|
||||||
{
|
|
||||||
if ( !from.InRange( GetWorldLocation(), 2 ) )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 500446 ); // That is too far away.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.Mounted == true )
|
|
||||||
{
|
|
||||||
from.SendLocalizedMessage( 1042561 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ( from.BodyValue == 0x190 || from.BodyValue == 0x191 )
|
|
||||||
{
|
|
||||||
from.BodyMod = 719;
|
|
||||||
from.HueMod = 0x0;
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (from.Female == true )
|
|
||||||
{
|
|
||||||
from.BodyMod = 401;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
from.BodyMod = 400;
|
|
||||||
from.HueMod = -1;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,204 @@
|
|||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Server;
|
||||||
|
|
||||||
|
namespace KCS
|
||||||
|
{
|
||||||
|
|
||||||
|
public partial class KCS
|
||||||
|
{
|
||||||
|
public static void Initialize()
|
||||||
|
{
|
||||||
|
EventSink.WorldSave += new WorldSaveEventHandler(Save);
|
||||||
|
Load();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private static Dictionary<string, bool> mRegSyst = new Dictionary<string, bool>();
|
||||||
|
public static Dictionary<string, bool> RegisteredSystem { get { return mRegSyst; } }
|
||||||
|
|
||||||
|
public static void RegisterSystem(string system)
|
||||||
|
{
|
||||||
|
if (mRegSyst.ContainsKey(system))
|
||||||
|
return;
|
||||||
|
|
||||||
|
Type type = Type.GetType(system);
|
||||||
|
if (type == null)
|
||||||
|
{
|
||||||
|
Console.WriteLine("Unauthorized Addon Detected: " + system);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
KCSSystem mSyst = (KCSSystem)Activator.CreateInstance(type);
|
||||||
|
if (mSyst != null)
|
||||||
|
{
|
||||||
|
mRegSyst.Add(system, true);
|
||||||
|
Console.WriteLine("Kitsunic System Registered:" + system);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static bool SystEnabled(string system)
|
||||||
|
{
|
||||||
|
return mRegSyst.ContainsKey(system) && (bool)mRegSyst[system];
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void SystDisabled(string system)
|
||||||
|
{
|
||||||
|
if (mRegSyst.ContainsKey(system))
|
||||||
|
{
|
||||||
|
Type type = ScriptCompiler.FindTypeByFullName(system);
|
||||||
|
if (type != null)
|
||||||
|
{
|
||||||
|
if (!Directory.Exists("Kitsunic"))
|
||||||
|
Directory.CreateDirectory("Kitsunic");
|
||||||
|
|
||||||
|
KCSSystem Syst = (KCSSystem)Activator.CreateInstance(type);
|
||||||
|
if (Syst != null)
|
||||||
|
{
|
||||||
|
Syst.StartSave("Kitsunic/");
|
||||||
|
Syst.Disable();
|
||||||
|
}
|
||||||
|
mRegSyst[system] = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
Console.WriteLine("Unauthorized System - {0} - Disabling is Impossible" + system);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void EnableSystem(string system)
|
||||||
|
{
|
||||||
|
if (mRegSyst.ContainsKey(system))
|
||||||
|
{
|
||||||
|
Type type = ScriptCompiler.FindTypeByFullName(system);
|
||||||
|
if (type != null)
|
||||||
|
{
|
||||||
|
if (!Directory.Exists("Kitsunic"))
|
||||||
|
Directory.CreateDirectory("Kitsunic");
|
||||||
|
|
||||||
|
KCSSystem Syst = (KCSSystem)Activator.CreateInstance(type);
|
||||||
|
if (Syst != null)
|
||||||
|
{
|
||||||
|
Syst.StartLoad("Kitsunic/");
|
||||||
|
Syst.Enable();
|
||||||
|
}
|
||||||
|
mRegSyst[system] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
Console.WriteLine("Unauthorized System - {0} - Enabling is Impossible" + system);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void Save(WorldSaveEventArgs mArgs)
|
||||||
|
{
|
||||||
|
if (!Directory.Exists("Saves/Kitsunic"))
|
||||||
|
Directory.CreateDirectory("Saves/Kitsunic");
|
||||||
|
|
||||||
|
string filename = "Kitsunic.sav";
|
||||||
|
string path = @"Saves/Kitsunic/";
|
||||||
|
string pfilename = path + filename;
|
||||||
|
DateTime start = DateTime.Now;
|
||||||
|
|
||||||
|
Console.WriteLine();
|
||||||
|
Console.WriteLine();
|
||||||
|
Console.WriteLine(". . . . . . . . .");
|
||||||
|
Console.WriteLine("Brewing Kitsunic Potions. . .");
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
using (FileStream mFileStream = new FileStream(pfilename, FileMode.OpenOrCreate, FileAccess.Write))
|
||||||
|
{
|
||||||
|
BinaryFileWriter writer = new BinaryFileWriter(mFileStream, true);
|
||||||
|
|
||||||
|
writer.Write((int)mRegSyst.Count);
|
||||||
|
foreach ( KeyValuePair<string,bool> keyValuePair in mRegSyst )
|
||||||
|
{
|
||||||
|
Type type = ScriptCompiler.FindTypeByFullName(keyValuePair.Key);
|
||||||
|
if(type != null)
|
||||||
|
{
|
||||||
|
writer.Write(keyValuePair.Key);
|
||||||
|
writer.Write(keyValuePair.Value);
|
||||||
|
|
||||||
|
if(keyValuePair.Value)
|
||||||
|
{
|
||||||
|
KCSSystem system = (KCSSystem)Activator.CreateInstance(type);
|
||||||
|
if (system != null)
|
||||||
|
system.StartSave(path);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
writer.Close();
|
||||||
|
mFileStream.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
Console.WriteLine("Completing in {0:F1} Seconds.", (DateTime.Now - start).TotalSeconds);
|
||||||
|
Console.WriteLine(". . . . . . .");
|
||||||
|
Console.WriteLine();
|
||||||
|
}
|
||||||
|
catch (Exception err)
|
||||||
|
{
|
||||||
|
Console.WriteLine("Saving Failed. Reason:" + err);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void Load()
|
||||||
|
{
|
||||||
|
if (!Directory.Exists("Saves/Kitsunic"))
|
||||||
|
return;
|
||||||
|
|
||||||
|
string filename = "Kitsunic.sav";
|
||||||
|
string path = @"Saves/Kitsunic/";
|
||||||
|
string pfilename = path + filename;
|
||||||
|
DateTime start = DateTime.Now;
|
||||||
|
|
||||||
|
Console.WriteLine();
|
||||||
|
Console.WriteLine(". . . . . . . . .");
|
||||||
|
Console.WriteLine("Brewing Kitsunic Toxins. . .");
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
using (FileStream mFileStream = new FileStream(pfilename, FileMode.Open, FileAccess.Read))
|
||||||
|
{
|
||||||
|
BinaryReader mBinaryReader = new BinaryReader(mFileStream);
|
||||||
|
BinaryFileReader reader = new BinaryFileReader(mBinaryReader);
|
||||||
|
|
||||||
|
if (mRegSyst == null)
|
||||||
|
mRegSyst = new Dictionary<string, bool>();
|
||||||
|
|
||||||
|
int Count = reader.ReadInt();
|
||||||
|
for(int i = 0; i < Count; i++)
|
||||||
|
{
|
||||||
|
string system = reader.ReadString();
|
||||||
|
Type type = ScriptCompiler.FindTypeByFullName(system);
|
||||||
|
bool enabled = reader.ReadBool();
|
||||||
|
|
||||||
|
if( type != null )
|
||||||
|
{
|
||||||
|
mRegSyst[system] = enabled;
|
||||||
|
|
||||||
|
if (mRegSyst[system])
|
||||||
|
{
|
||||||
|
KCSSystem mSyst = (KCSSystem)Activator.CreateInstance(type);
|
||||||
|
if (mSyst != null)
|
||||||
|
mSyst.StartLoad(path);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
reader.Close();
|
||||||
|
mFileStream.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
Console.WriteLine("Completed in {0:F1} seconds.", (DateTime.Now - start).TotalSeconds);
|
||||||
|
Console.WriteLine(". . . . . . . . .");
|
||||||
|
Console.WriteLine();
|
||||||
|
}
|
||||||
|
catch(Exception err )
|
||||||
|
{
|
||||||
|
Console.WriteLine("Loading Failed. Reason:" + err);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
|
||||||
|
namespace KCS
|
||||||
|
{
|
||||||
|
public class KCSParams
|
||||||
|
{
|
||||||
|
public KCSParams()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,96 @@
|
|||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using Server;
|
||||||
|
using Server.Gumps;
|
||||||
|
using Server.Network;
|
||||||
|
|
||||||
|
namespace KCS
|
||||||
|
{
|
||||||
|
public abstract class KCSSystem
|
||||||
|
{
|
||||||
|
public abstract string Name();
|
||||||
|
|
||||||
|
public abstract void Enable();
|
||||||
|
public abstract void Disable();
|
||||||
|
|
||||||
|
public abstract void Save(GenericWriter kcs, GenericWriter kitsunic, GenericWriter writer);
|
||||||
|
public abstract void Load(BinaryReader kcs, BinaryReader kitsunic, BinaryReader reader);
|
||||||
|
|
||||||
|
public abstract void Gump(Mobile from, Gump gump, KCSParams subParams);
|
||||||
|
|
||||||
|
public abstract void Help(Mobile from, Gump gump);
|
||||||
|
|
||||||
|
public abstract void OnResponse(NetState state, RelayInfo info, KCSParams subParams);
|
||||||
|
|
||||||
|
public bool Enabled { get { return KCS.SystEnabled(this.ToString()); } }
|
||||||
|
|
||||||
|
public void StartSave(string path)
|
||||||
|
{
|
||||||
|
path += Name() + "/";
|
||||||
|
|
||||||
|
if(!Directory.Exists(path))
|
||||||
|
Directory.CreateDirectory(path);
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
GenericWriter kcs = new BinaryFileWriter(path + Name() + ".kcs", false);
|
||||||
|
GenericWriter kitsunic = new BinaryFileWriter(path + Name() + ".sunic", false);
|
||||||
|
GenericWriter bin = new BinaryFileWriter(path + Name() + ".bin", true);
|
||||||
|
|
||||||
|
Console.Write("Brewing {0}...", Name());
|
||||||
|
Save(kcs, kitsunic, bin);
|
||||||
|
|
||||||
|
kcs.Close();
|
||||||
|
kitsunic.Close();
|
||||||
|
bin.Close();
|
||||||
|
|
||||||
|
Console.WriteLine("Brewing Complete");
|
||||||
|
}
|
||||||
|
catch(Exception exception)
|
||||||
|
{
|
||||||
|
Console.WriteLine(exception.Message);
|
||||||
|
}
|
||||||
|
}//StartSave
|
||||||
|
|
||||||
|
public void StartLoad(string path)
|
||||||
|
{
|
||||||
|
path += Name() + "/";
|
||||||
|
|
||||||
|
string kcsPath = path + Name() + ".kcs";
|
||||||
|
string kitsunicPath = path + Name() + ".kitsunic";
|
||||||
|
string binPath = path + Name() + ".bin";
|
||||||
|
|
||||||
|
if(!Directory.Exists(path))
|
||||||
|
Directory.CreateDirectory(path);
|
||||||
|
|
||||||
|
if(File.Exists(kcsPath)&&File.Exists(kitsunicPath)&&File.Exists(binPath))
|
||||||
|
{
|
||||||
|
using (FileStream kcs = new FileStream(kcsPath, FileMode.Open, FileAccess.Read, FileShare.Read))
|
||||||
|
{
|
||||||
|
using(FileStream kitsunic = new FileStream(kitsunicPath, FileMode.Open, FileAccess.Read, FileShare.Read))
|
||||||
|
{
|
||||||
|
using(FileStream bin = new FileStream(binPath, FileMode.Open, FileAccess.Read, FileShare.Read))
|
||||||
|
{
|
||||||
|
BinaryReader binReader = new BinaryReader(bin);
|
||||||
|
BinaryReader kitsunicReader = new BinaryReader(kitsunic);
|
||||||
|
BinaryReader kcsReader = new BinaryReader(kcs);
|
||||||
|
|
||||||
|
Console.Write("Pouring {0}", Name());
|
||||||
|
Load(kcsReader, kitsunicReader, binReader);
|
||||||
|
|
||||||
|
kcsReader.Close();
|
||||||
|
kitsunicReader.Close();
|
||||||
|
binReader.Close();
|
||||||
|
|
||||||
|
kcs.Close();
|
||||||
|
kitsunic.Close();
|
||||||
|
bin.Close();
|
||||||
|
|
||||||
|
Console.WriteLine("Pouring Complete");
|
||||||
|
}//bin
|
||||||
|
}//kitsunic
|
||||||
|
}//kcs
|
||||||
|
}//threePaths
|
||||||
|
}//StartLoad
|
||||||
|
}//KCSSystem
|
||||||
|
} //KCS
|
||||||
@@ -0,0 +1,136 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Server;
|
||||||
|
using Server.Commands;
|
||||||
|
using Server.Gumps;
|
||||||
|
using Server.Network;
|
||||||
|
|
||||||
|
namespace KCS
|
||||||
|
{
|
||||||
|
public class KCSGump : Gump
|
||||||
|
{
|
||||||
|
public static void Initialize()
|
||||||
|
{
|
||||||
|
CommandSystem.Register("KCS", Permissions.GlobalAccessLevel, new CommandEventHandler(OnCommand));
|
||||||
|
}
|
||||||
|
|
||||||
|
[Usage("KSC")]
|
||||||
|
[Aliases("kcs")]
|
||||||
|
[Description( "Sends the KCS Gump" )]
|
||||||
|
private static void OnCommand( CommandEventArgs e )
|
||||||
|
{
|
||||||
|
e.Mobile.SendGump(new KCSGump(e.Mobile, null, null));
|
||||||
|
}
|
||||||
|
|
||||||
|
private List<string> mList;
|
||||||
|
private string mSystString;
|
||||||
|
private KCSSystem mSyst;
|
||||||
|
private KCSParams mSubp;
|
||||||
|
|
||||||
|
|
||||||
|
public KCSGump( Mobile from, string system, KCSParams subParams ) : base( 0,0 )
|
||||||
|
{
|
||||||
|
if (from.AccessLevel < Permissions.GlobalAccessLevel)
|
||||||
|
return;
|
||||||
|
|
||||||
|
mList = new List<string>();
|
||||||
|
mSystString = system;
|
||||||
|
//mSubp = subParams;
|
||||||
|
|
||||||
|
foreach (KeyValuePair<string, bool> keyValuePair in KCS.RegisteredSystem)
|
||||||
|
{
|
||||||
|
mList.Add( keyValuePair.Key );
|
||||||
|
}
|
||||||
|
|
||||||
|
Closable = true;
|
||||||
|
Disposable = true;
|
||||||
|
Dragable = true;
|
||||||
|
Resizable = true;
|
||||||
|
|
||||||
|
AddPage(0);
|
||||||
|
|
||||||
|
AddBackground(0, 0, 630, 360, 5120); //Top BackGround
|
||||||
|
AddBackground(0, 360, 630, 113, 5120); //Bottom Background
|
||||||
|
AddImageTiled(0, 446, 620, 50, 10452); //Bottom
|
||||||
|
|
||||||
|
if( system == null )
|
||||||
|
{
|
||||||
|
AddHtml(175, 40, 375, 30, "<basefont size=7 color=#33CC33><center>Kitsunic Custom System </center></basefont>", false, false);
|
||||||
|
AddHtml(175, 80, 420, 256, "<basefont size=4 color=white>Thank you for Choosing to Test Kitsunic Custom System</basefont>", false, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
for( int i = 0; i < mList.Count; i++ )
|
||||||
|
{
|
||||||
|
Type type = Type.GetType(mList[i]);
|
||||||
|
if (type == null)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
KCSSystem mSystem = (KCSSystem)Activator.CreateInstance ( type );
|
||||||
|
if ( mSystem == null )
|
||||||
|
continue;
|
||||||
|
|
||||||
|
AddButton(i < 3 ? 35 : (i < 6 ? 255 : 415), (i % 3 == 0 ? 372 : (i % 3 == 1 ? 397 : 442)), 1122, 1124, i + 1, GumpButtonType.Reply, 0);
|
||||||
|
AddHtml((i < 3 ? 35 : (i < 6 ? 255 : 415)), (i % 3 == 0 ? 370 : (i % 3 == 1 ?395:420)), 184, 20, String.Format("<basefont color=white><center>{0}</center></basefont>", mSystem.Name()), false, false);
|
||||||
|
|
||||||
|
if (system != mList[i])
|
||||||
|
mSyst = mSystem;
|
||||||
|
}
|
||||||
|
|
||||||
|
if( mSyst != null )
|
||||||
|
{
|
||||||
|
AddButton(560, 0, 1417, 1417, 10, GumpButtonType.Reply, 0);
|
||||||
|
if (mSyst.Enabled)
|
||||||
|
AddLabel(592, 45, 66, "On");
|
||||||
|
else
|
||||||
|
AddLabel(588, 45, 36, "Off");
|
||||||
|
|
||||||
|
AddButton(15,340,22153,22155,11,GumpButtonType.Reply, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
AddImage(0, 0, 9002);
|
||||||
|
AddImage(580, 350, 10410);
|
||||||
|
|
||||||
|
if(mSyst != null)
|
||||||
|
{
|
||||||
|
AddPage(1);
|
||||||
|
mSyst.Gump(from, this, subParams);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void OnResponse(NetState sender, RelayInfo info)
|
||||||
|
{
|
||||||
|
if (info.ButtonID == 0 || sender.Mobile.AccessLevel < Permissions.GlobalAccessLevel)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if(info.ButtonID >= 1 && info.ButtonID < 10)
|
||||||
|
{
|
||||||
|
int page = info.ButtonID - 1;
|
||||||
|
if (mSystString == mList[page])
|
||||||
|
sender.Mobile.SendGump(new KCSGump(sender.Mobile, null, null));
|
||||||
|
else if(page >= 0 && page <= mList.Count)
|
||||||
|
sender.Mobile.SendGump(new KCSGump(sender.Mobile, mList[page], null));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(info.ButtonID == 10 && mSyst != null)
|
||||||
|
{
|
||||||
|
sender.Mobile.SendMessage("{0} {1}", (mSyst.Enabled ? "Disabling" : "Enabling"), mSyst.Name());
|
||||||
|
if(mSyst.Enabled)
|
||||||
|
KCS.SystDisabled(mSyst.ToString() );
|
||||||
|
else
|
||||||
|
KCS.EnableSystem(mSyst.ToString() );
|
||||||
|
|
||||||
|
sender.Mobile.SendGump(new KCSGump(sender.Mobile, mSystString, mSubp));
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(info.ButtonID == 11 && mSyst != null)
|
||||||
|
{
|
||||||
|
//mSyst.Help(sender, info);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mSyst != null)
|
||||||
|
mSyst.OnResponse(sender, info, mSubp);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Server;
|
||||||
|
|
||||||
|
namespace KCS
|
||||||
|
{
|
||||||
|
internal class Permissions
|
||||||
|
{
|
||||||
|
public static AccessLevel GlobalAccessLevel = AccessLevel.Administrator;
|
||||||
|
public static AccessLevel SupporterAccessLevel = AccessLevel.VIP;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,142 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Reflection;
|
||||||
|
using Server;
|
||||||
|
using Server.Gumps;
|
||||||
|
using Server.Network;
|
||||||
|
|
||||||
|
|
||||||
|
namespace KCS.Cortex
|
||||||
|
{
|
||||||
|
public enum Pages
|
||||||
|
{
|
||||||
|
Home,
|
||||||
|
Mobiles,
|
||||||
|
Items,
|
||||||
|
Modules
|
||||||
|
};
|
||||||
|
|
||||||
|
public class CortexParams : KCSParams
|
||||||
|
{
|
||||||
|
public Pages PageName;
|
||||||
|
public Serial serial;
|
||||||
|
public int PageIndex;
|
||||||
|
|
||||||
|
public CortexParams()
|
||||||
|
: base()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public partial class Cortexual : KCSSystem
|
||||||
|
{
|
||||||
|
internal static List<Type> mType = new List<Type>();
|
||||||
|
private static Dictionary<serial, mList> mDictionary = new Dictionary<serial, mList>();
|
||||||
|
public static Dictionary<serial, mList> GetDictionary
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return mDictionary;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void Configure()
|
||||||
|
{
|
||||||
|
KCS.RegisterSystem("KCS.Cortex")
|
||||||
|
}
|
||||||
|
|
||||||
|
public static bool Running
|
||||||
|
{
|
||||||
|
get { return KCS.SystEnabled("KCS.Cortex"); }
|
||||||
|
}
|
||||||
|
|
||||||
|
public override string Name()
|
||||||
|
{
|
||||||
|
return "Cortex";
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Enable()
|
||||||
|
{
|
||||||
|
Console.WriteLine("Brewing {0}...", Name());
|
||||||
|
Console.WriteLine("..............", Name());
|
||||||
|
Console.WriteLine("....Brewed {0}", Name());
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Disable()
|
||||||
|
{
|
||||||
|
Console.WriteLine("Pouring {0}...", Name());
|
||||||
|
Console.WriteLine("..............", Name());
|
||||||
|
Console.WriteLine("....Poured {0}", Name());
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void Flush()
|
||||||
|
{
|
||||||
|
List<serial> RList = new List<serial>();
|
||||||
|
|
||||||
|
foreach (Serial serial in mDictionary.Keys)
|
||||||
|
{
|
||||||
|
if(serial.IsItem)
|
||||||
|
{
|
||||||
|
Item item = World.FindItem(serial);
|
||||||
|
if(item != null||item.Deleted)
|
||||||
|
RemoveList.Add(serial);
|
||||||
|
}
|
||||||
|
else if (serial.IsMobile)
|
||||||
|
{
|
||||||
|
Mobile mobile = World.FindMobile(serial);
|
||||||
|
if (mobile != null || mobile.Deleted)
|
||||||
|
RemoveList.Add(serial);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mDictionary[serial].Count == 0)
|
||||||
|
RemoveList.Add(serial);
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach(Serial serial in RemoveList)
|
||||||
|
{
|
||||||
|
Remove(serial);
|
||||||
|
}
|
||||||
|
|
||||||
|
RemoveList.Clear();
|
||||||
|
Console.Write("Flitered & Flushed")
|
||||||
|
}
|
||||||
|
|
||||||
|
public static bool Contains(Serial serial)
|
||||||
|
{
|
||||||
|
return mDictionary.ContainsKey(serial);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static bool ContainsModule(Serial serial, Type type)
|
||||||
|
{
|
||||||
|
if (Contains(serial))
|
||||||
|
{
|
||||||
|
if(mDictionary.ContainsKey[serial] != null)
|
||||||
|
return mDictionary[serial].Contains(type);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void Add(Serial serial)
|
||||||
|
{
|
||||||
|
if (Contains(serial))
|
||||||
|
return;
|
||||||
|
mDictionary.Add(serial, new ModuleList(serial);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void Add(Serial serial, ModuleList moduleList)
|
||||||
|
{
|
||||||
|
mDictionary[serial] = moduleList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void AddModule(Module module)
|
||||||
|
{
|
||||||
|
if (!mDictionary.ContainsKey(module.Owner))
|
||||||
|
Add(module.Owner);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}//Cortexual
|
||||||
|
}//Cortex
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#region Header
|
#region Header
|
||||||
// _,-'/-'/
|
// _,-'/-'/
|
||||||
// . __,-; ,'( '/
|
// . __,-; ,'( '/
|
||||||
// \. `-.__`-._`:_,-._ _ , . ``
|
// \. `-.__`-._`:_,-._ _ , . ``
|
||||||
@@ -16,7 +16,6 @@ using System.Drawing;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
using Server;
|
using Server;
|
||||||
using Server.Commands;
|
|
||||||
using Server.Gumps;
|
using Server.Gumps;
|
||||||
using Server.Network;
|
using Server.Network;
|
||||||
|
|
||||||
|
|||||||