Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
326
Scripts/Services/City Loyalty System/Trading/Items/CityBooks.cs
Normal file
326
Scripts/Services/City Loyalty System/Trading/Items/CityBooks.cs
Normal file
@@ -0,0 +1,326 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Mobiles;
|
||||
using Server.Engines.CityLoyalty;
|
||||
using Server.Gumps;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public abstract class CityBook : Item
|
||||
{
|
||||
public abstract int Title { get; }
|
||||
public abstract int Content { get; }
|
||||
|
||||
public CityBook() : base(4030)
|
||||
{
|
||||
}
|
||||
|
||||
public override void GetProperties(ObjectPropertyList list)
|
||||
{
|
||||
base.GetProperties(list);
|
||||
|
||||
if(Title > 0)
|
||||
list.Add(Title);
|
||||
|
||||
list.Add(1154760, "Adamu Edom"); // By: ~1_NAME~
|
||||
}
|
||||
|
||||
public override void OnDoubleClick(Mobile m)
|
||||
{
|
||||
if (IsChildOf(m.Backpack))
|
||||
{
|
||||
Gump g = new Gump(150, 150);
|
||||
g.AddImage(0, 0, 30236);
|
||||
g.AddHtmlLocalized(110, 30, 350, 630, Content, false, false);
|
||||
|
||||
m.SendGump(g);
|
||||
}
|
||||
}
|
||||
|
||||
public static CityBook GetRandom()
|
||||
{
|
||||
switch (Utility.Random(9))
|
||||
{
|
||||
default:
|
||||
case 0: return new LoyaltyBookBritain();
|
||||
case 1: return new LoyaltyBookYew();
|
||||
case 2: return new LoyaltyBookMoonglow();
|
||||
case 3: return new LoyaltyBookNewMagincia();
|
||||
case 4: return new LoyaltyBookVesper();
|
||||
case 5: return new LoyaltyBookSkaraBrae();
|
||||
case 6: return new LoyaltyBookJhelom();
|
||||
case 7: return new LoyaltyBookMinoc();
|
||||
case 8: return new LoyaltyBookTrinsic();
|
||||
}
|
||||
}
|
||||
|
||||
public CityBook(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
|
||||
public class LoyaltyBookYew : CityBook
|
||||
{
|
||||
public override int Title { get { return 1153933; } }
|
||||
public override int Content { get { return 1152698; } }
|
||||
|
||||
[Constructable]
|
||||
public LoyaltyBookYew()
|
||||
{
|
||||
}
|
||||
|
||||
public LoyaltyBookYew(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
|
||||
public class LoyaltyBookJhelom : CityBook
|
||||
{
|
||||
public override int Title { get { return 1153934; } }
|
||||
public override int Content { get { return 1153436; } }
|
||||
|
||||
[Constructable]
|
||||
public LoyaltyBookJhelom()
|
||||
{
|
||||
}
|
||||
|
||||
public LoyaltyBookJhelom(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
|
||||
public class LoyaltyBookMoonglow : CityBook
|
||||
{
|
||||
public override int Title { get { return 1153935; } }
|
||||
public override int Content { get { return 1153437; } }
|
||||
|
||||
[Constructable]
|
||||
public LoyaltyBookMoonglow()
|
||||
{
|
||||
}
|
||||
|
||||
public LoyaltyBookMoonglow(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
|
||||
public class LoyaltyBookTrinsic : CityBook
|
||||
{
|
||||
public override int Title { get { return 1153727; } }
|
||||
public override int Content { get { return 1151755; } }
|
||||
|
||||
[Constructable]
|
||||
public LoyaltyBookTrinsic()
|
||||
{
|
||||
}
|
||||
|
||||
public LoyaltyBookTrinsic(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
|
||||
public class LoyaltyBookMinoc : CityBook
|
||||
{
|
||||
public override int Title { get { return 1153728; } }
|
||||
public override int Content { get { return 1152317; } }
|
||||
|
||||
[Constructable]
|
||||
public LoyaltyBookMinoc()
|
||||
{
|
||||
}
|
||||
|
||||
public LoyaltyBookMinoc(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
|
||||
public class LoyaltyBookNewMagincia : CityBook
|
||||
{
|
||||
public override int Title { get { return 1153008; } }
|
||||
public override int Content { get { return 1153723; } }
|
||||
|
||||
[Constructable]
|
||||
public LoyaltyBookNewMagincia()
|
||||
{
|
||||
}
|
||||
|
||||
public LoyaltyBookNewMagincia(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
|
||||
public class LoyaltyBookVesper : CityBook
|
||||
{
|
||||
public override int Title { get { return 1153012; } }
|
||||
public override int Content { get { return 1153724; } }
|
||||
|
||||
[Constructable]
|
||||
public LoyaltyBookVesper()
|
||||
{
|
||||
}
|
||||
|
||||
public LoyaltyBookVesper(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
|
||||
public class LoyaltyBookSkaraBrae : CityBook
|
||||
{
|
||||
public override int Title { get { return 0; } }
|
||||
public override int Content { get { return 1153725; } }
|
||||
|
||||
[Constructable]
|
||||
public LoyaltyBookSkaraBrae()
|
||||
{
|
||||
}
|
||||
|
||||
public LoyaltyBookSkaraBrae(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
|
||||
public class LoyaltyBookBritain : CityBook
|
||||
{
|
||||
public override int Title { get { return 1153726; } }
|
||||
public override int Content { get { return 1151754; } }
|
||||
|
||||
[Constructable]
|
||||
public LoyaltyBookBritain()
|
||||
{
|
||||
}
|
||||
|
||||
public LoyaltyBookBritain(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Mobiles;
|
||||
using Server.Engines.CityLoyalty;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class ExpiredVoucher : Item
|
||||
{
|
||||
public override int LabelNumber { get { return 1151749; } } // Expired Voucher for a Free Drink at the Fortune's Fire Casino
|
||||
|
||||
[Constructable]
|
||||
public ExpiredVoucher()
|
||||
: base(0x2831)
|
||||
{
|
||||
}
|
||||
|
||||
public ExpiredVoucher(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Mobiles;
|
||||
using Server.Engines.CityLoyalty;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class ForgedArtwork : Item
|
||||
{
|
||||
public override int LabelNumber { get { return 1151750; } } // Forged Artwork from King Blackthorn's Collection
|
||||
|
||||
[Constructable]
|
||||
public ForgedArtwork() : base(Utility.Random(0x1224, 5))
|
||||
{
|
||||
Weight = 10;
|
||||
}
|
||||
|
||||
public ForgedArtwork(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Mobiles;
|
||||
using Server.Engines.CityLoyalty;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class LittleBlackBook : Item
|
||||
{
|
||||
public override int LabelNumber { get { return 1151751; } } // Slim the Fence's little black book
|
||||
|
||||
[Constructable]
|
||||
public LittleBlackBook()
|
||||
: base(4030)
|
||||
{
|
||||
Hue = 1932;
|
||||
}
|
||||
|
||||
public LittleBlackBook(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Mobiles;
|
||||
using Server.Engines.CityLoyalty;
|
||||
using Server.Gumps;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class MysteriousNote : Item
|
||||
{
|
||||
public override int LabelNumber { get { return 1151753; } } // A Mysterious Note
|
||||
|
||||
[Constructable]
|
||||
public MysteriousNote()
|
||||
: base(0x14ED)
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
{
|
||||
Gump g = new Gump(100, 100);
|
||||
|
||||
g.AddBackground(0, 0, 404, 325, 9380);
|
||||
|
||||
/*You unfurl the parchment, it appears to be a handwritten note*<br><br>Taking up delivery of goods fer
|
||||
* the crown are ya? Well...maybe yer interested in a bit of something fer yerself? Look fer me in Felucca...
|
||||
* the taverns of Ocllo, Nujelm, & Serpent's Hold if ye want to fence yer goods.<br><br>-A Friend*/
|
||||
|
||||
g.AddHtmlLocalized(37, 50, 340, 225, 1151735, 0xC63, false, true);
|
||||
|
||||
from.SendGump(g);
|
||||
}
|
||||
|
||||
public MysteriousNote(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Mobiles;
|
||||
using Server.Engines.CityLoyalty;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class RewardSign : Sign, IEngravable
|
||||
{
|
||||
public string EngravedText { get; set; }
|
||||
|
||||
[Constructable]
|
||||
public RewardSign() : base((SignType)Utility.RandomMinMax(31, 58), Utility.RandomBool() ? SignFacing.North : SignFacing.West)
|
||||
{
|
||||
Movable = true;
|
||||
}
|
||||
|
||||
public override void GetProperties(ObjectPropertyList list)
|
||||
{
|
||||
base.GetProperties(list);
|
||||
|
||||
if (!String.IsNullOrEmpty(EngravedText))
|
||||
{
|
||||
list.Add(1072305, EngravedText); // Engraved: ~1_INSCRIPTION~
|
||||
}
|
||||
}
|
||||
|
||||
public RewardSign(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
|
||||
writer.Write(EngravedText);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
|
||||
EngravedText = reader.ReadString();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Mobiles;
|
||||
using Server.Engines.CityLoyalty;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class SlimsShadowVeil : LeatherMempo
|
||||
{
|
||||
public override int LabelNumber { get { return 1154906; } } // Slim's Shadow Veil
|
||||
|
||||
[Constructable]
|
||||
public SlimsShadowVeil()
|
||||
{
|
||||
Hue = 1932;
|
||||
Attributes.CastSpeed = 1;
|
||||
}
|
||||
|
||||
public SlimsShadowVeil(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user