diff --git a/Data/Config/Regions.xml b/Data/Config/Regions.xml index 44018eb..2df5166 100644 --- a/Data/Config/Regions.xml +++ b/Data/Config/Regions.xml @@ -992,6 +992,10 @@ + + + + // -------------------------------- MOONGATES ---------------------------------------- diff --git a/Info/Reagent_IDs.txt b/Info/Reagent_IDs.txt new file mode 100644 index 0000000..7a68436 --- /dev/null +++ b/Info/Reagent_IDs.txt @@ -0,0 +1,8 @@ +BlackPearl - 0x3FFF +Bloodmoss - 0x3FFE +Garlic - 0x3FFD +Ginseng - 0x3FFC +MandrakeRoot - 0x3FFB +Nightshade - 0x3FFA +SpidersSilk - 0x3FF9 +SulfurousAsh - 0x3FF8 diff --git a/Scripts/Items/Farming/FarmableBlackPearl.cs b/Scripts/Items/Farming/FarmableBlackPearl.cs new file mode 100644 index 0000000..2620270 --- /dev/null +++ b/Scripts/Items/Farming/FarmableBlackPearl.cs @@ -0,0 +1,48 @@ +using System; +using Server; +using Server.Network; + +namespace Server.Items +{ + public class FarmableBlackPearl : FarmableCrop + { + public static int GetCropID() + { + return 0x3FFC; + } + + public override Item GetCropObject() + { + Item item = new BlackPearl(); + item.Amount = 3; + return item; + } + + public override int GetPickedID() + { + return 0xCB5; + } + + [Constructable] + public FarmableBlackPearl() : base( GetCropID() ) + { + Name = "black pearl"; + } + + public FarmableBlackPearl( Serial serial ) : base( serial ) + { + } + + public override void Serialize( GenericWriter writer ) + { + base.Serialize( writer ); + writer.WriteEncodedInt( 0 ); // version + } + + public override void Deserialize( GenericReader reader ) + { + base.Deserialize( reader ); + int version = reader.ReadEncodedInt(); + } + } +} diff --git a/Scripts/Items/Farming/FarmableBloodmoss.cs b/Scripts/Items/Farming/FarmableBloodmoss.cs new file mode 100644 index 0000000..c6e9ede --- /dev/null +++ b/Scripts/Items/Farming/FarmableBloodmoss.cs @@ -0,0 +1,48 @@ +using System; +using Server; +using Server.Network; + +namespace Server.Items +{ + public class FarmableBloodmoss : FarmableCrop + { + public static int GetCropID() + { + return 0x3FFE; + } + + public override Item GetCropObject() + { + Item item = new Bloodmoss(); + item.Amount = 3; + return item; + } + + public override int GetPickedID() + { + return 0xCB5; + } + + [Constructable] + public FarmableBloodmoss() : base( GetCropID() ) + { + Name = "ginseng"; + } + + public FarmableBloodmoss( Serial serial ) : base( serial ) + { + } + + public override void Serialize( GenericWriter writer ) + { + base.Serialize( writer ); + writer.WriteEncodedInt( 0 ); // version + } + + public override void Deserialize( GenericReader reader ) + { + base.Deserialize( reader ); + int version = reader.ReadEncodedInt(); + } + } +} diff --git a/Scripts/Items/Farming/FarmableGarlic.cs b/Scripts/Items/Farming/FarmableGarlic.cs index 6cc1a17..cff7936 100644 --- a/Scripts/Items/Farming/FarmableGarlic.cs +++ b/Scripts/Items/Farming/FarmableGarlic.cs @@ -8,7 +8,7 @@ namespace Server.Items { public static int GetCropID() { - return 0x18E1; + return 0x3FFD; } public override Item GetCropObject() @@ -45,4 +45,4 @@ namespace Server.Items int version = reader.ReadEncodedInt(); } } -} \ No newline at end of file +} diff --git a/Scripts/Items/Farming/FarmableGinseng.cs b/Scripts/Items/Farming/FarmableGinseng.cs index 3618bae..dc13967 100644 --- a/Scripts/Items/Farming/FarmableGinseng.cs +++ b/Scripts/Items/Farming/FarmableGinseng.cs @@ -8,13 +8,13 @@ namespace Server.Items { public static int GetCropID() { - return Utility.RandomList( 0x18E9, 0x18EA ); + return 0x3FFC; } public override Item GetCropObject() { Item item = new Ginseng(); - item.Amount = 1; + item.Amount = 3; return item; } @@ -45,4 +45,4 @@ namespace Server.Items int version = reader.ReadEncodedInt(); } } -} \ No newline at end of file +} diff --git a/Scripts/Items/Farming/FarmableMandrakeRoot.cs b/Scripts/Items/Farming/FarmableMandrakeRoot.cs index 42e472f..c5489dc 100644 --- a/Scripts/Items/Farming/FarmableMandrakeRoot.cs +++ b/Scripts/Items/Farming/FarmableMandrakeRoot.cs @@ -8,13 +8,13 @@ namespace Server.Items { public static int GetCropID() { - return Utility.RandomList( 0x18DF, 0x18E0 ); + return 0x3FFB; } public override Item GetCropObject() { Item item = new MandrakeRoot(); - item.Amount = 1; + item.Amount = 3; return item; } @@ -45,4 +45,4 @@ namespace Server.Items int version = reader.ReadEncodedInt(); } } -} \ No newline at end of file +} diff --git a/Scripts/Items/Farming/FarmableNightshade.cs b/Scripts/Items/Farming/FarmableNightshade.cs index 783a751..1880df2 100644 --- a/Scripts/Items/Farming/FarmableNightshade.cs +++ b/Scripts/Items/Farming/FarmableNightshade.cs @@ -8,13 +8,13 @@ namespace Server.Items { public static int GetCropID() { - return Utility.RandomList( 0x18E5, 0x18E6 ); + return 0x3FFA; } public override Item GetCropObject() { Item item = new Nightshade(); - item.Amount = 1; + item.Amount = 3; return item; } @@ -45,4 +45,4 @@ namespace Server.Items int version = reader.ReadEncodedInt(); } } -} \ No newline at end of file +} diff --git a/Scripts/Items/Farming/FarmableSpidersSilk.cs b/Scripts/Items/Farming/FarmableSpidersSilk.cs new file mode 100644 index 0000000..e49bec1 --- /dev/null +++ b/Scripts/Items/Farming/FarmableSpidersSilk.cs @@ -0,0 +1,48 @@ +using System; +using Server; +using Server.Network; + +namespace Server.Items +{ + public class FarmableSpidersSilk : FarmableCrop + { + public static int GetCropID() + { + return 0x3FF9; + } + + public override Item GetCropObject() + { + Item item = new SpidersSilk(); + item.Amount = 3; + return item; + } + + public override int GetPickedID() + { + return 0xCB5; + } + + [Constructable] + public FarmableSpidersSilk() : base( GetCropID() ) + { + Name = "ginseng"; + } + + public FarmableSpidersSilk( Serial serial ) : base( serial ) + { + } + + public override void Serialize( GenericWriter writer ) + { + base.Serialize( writer ); + writer.WriteEncodedInt( 0 ); // version + } + + public override void Deserialize( GenericReader reader ) + { + base.Deserialize( reader ); + int version = reader.ReadEncodedInt(); + } + } +} diff --git a/Scripts/Items/Farming/FarmableSulfurousAsh.cs b/Scripts/Items/Farming/FarmableSulfurousAsh.cs new file mode 100644 index 0000000..57c8fa8 --- /dev/null +++ b/Scripts/Items/Farming/FarmableSulfurousAsh.cs @@ -0,0 +1,48 @@ +using System; +using Server; +using Server.Network; + +namespace Server.Items +{ + public class FarmableSulfurousAsh : FarmableCrop + { + public static int GetCropID() + { + return 0x3FF8; + } + + public override Item GetCropObject() + { + Item item = new SulfurousAsh(); + item.Amount = 3; + return item; + } + + public override int GetPickedID() + { + return 0xCB5; + } + + [Constructable] + public FarmableSulfurousAsh() : base( GetCropID() ) + { + Name = "ginseng"; + } + + public FarmableSulfurousAsh( Serial serial ) : base( serial ) + { + } + + public override void Serialize( GenericWriter writer ) + { + base.Serialize( writer ); + writer.WriteEncodedInt( 0 ); // version + } + + public override void Deserialize( GenericReader reader ) + { + base.Deserialize( reader ); + int version = reader.ReadEncodedInt(); + } + } +}