RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Trying to find some scripts

bazspeed

Sorceror
I have been trying to find some scripts that i want to add onto my shard. If anyone can give me the url to the scripts I would be most grateful.

  • Staff Stone - Changes player > Staff and back
 

Vorspire

Knight
You shouldn't really ask for scripts in this forum, but for the sake of anyone who see's this post, here's a cloak that will handle access levels like the staff stone.

Rich (BB code):
using Server;

namespace Server.Items
{
	public class AccessCloak : BaseCloak
	{
		protected AccessLevel InternalAccessTemp;
		protected AccessLevel InternalAccessMask;

		[CommandProperty(AccessLevel.GameMaster)]
		public AccessLevel AccessMask
		{
			get { return InternalAccessMask; }
			set
			{
				if (value <= InternalAccessTemp)
				{ InternalAccessMask = value; }
			}
		}

		public override bool DisplayLootType { get { return false; } }
		public override bool DisplayWeight { get { return false; } }

		[Constructable]
		public AccessCloak()
			: this(AccessLevel.Player)
		{ }

		public AccessCloak(AccessLevel mask)
			: base(0x1515)
		{
			InternalAccessMask = mask;

			Name = "Access Cloak";
			Hue = Utility.RandomDyedHue();
			LootType = LootType.Blessed;
			StrRequirement = 0;
			Weight = 0;
		}

		public override bool OnEquip(Mobile from)
		{
			if (BlessedFor == null)
			{
				BlessedFor = from;
				InternalAccessTemp = BlessedFor.AccessLevel;
			}

			if (BlessedFor != from)
			{
				from.SendMessage("That does not belong to you.");
				return false;
			}

			BlessedFor.AccessLevel = InternalAccessMask;

			return base.OnEquip(from);
		}

		public override void OnRemoved(object parent)
		{
			if (BlessedFor != null)
			{ BlessedFor.AccessLevel = InternalAccessTemp; }

			base.OnRemoved(parent);
		}

		public override void OnDelete()
		{
			if (BlessedFor != null)
			{ BlessedFor.AccessLevel = InternalAccessTemp; }

			base.OnDelete();
		}

		public override void AddNameProperty(ObjectPropertyList list)
		{
			base.AddNameProperty(list);

			list.Add("<basefont color=#{0:X6}>Cloak: {1} => {2}<basefont color=#FFFFFF>", System.Drawing.Color.Gold.ToArgb(), InternalAccessTemp, InternalAccessMask);
		}

		public AccessCloak(Serial serial)
			: base(serial)
		{ }

		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);

			const int version = 0;

			writer.Write(version);

			switch (version)
			{
				case 0:
					{
						writer.Write(BlessedFor);
						writer.Write((int)InternalAccessMask);
						writer.Write((int)InternalAccessTemp);
					} break;
			}
		}

		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			int version = reader.ReadInt();

			switch (version)
			{
				case 0:
					{
						BlessedFor = reader.ReadMobile();
						InternalAccessMask = (AccessLevel)reader.ReadInt();
						InternalAccessTemp = (AccessLevel)reader.ReadInt();
					} break;
			}
		}
	}
}
 

bazspeed

Sorceror
My apologes Vorspire. I have placed several questions in the scripting forum, but I never get a reply.
 

JEEG84

Sorceror
"AccessLevel Stone" is the script for you !, is a stone that when DoubleClick change Owner access Level to AccessLevel "Player" and reverse
 

Attachments

  • AccessLevelStone.cs
    3.3 KB · Views: 13

Obsidian Fire

Sorceror
I like the "Staff Orb".
/// <summary>
/// David O'Hara
/// 08-13-2004
/// Version 3.0
/// This orb allows staff to switch between a Player access level and their current staff level.
/// It also sets the mortality as appropriate for staff.
/// A home location can be set/used thru the context menu.
/// Will auto resurrect it's owner on death.
/// </summary>
 

Attachments

  • StaffOrb.cs
    5.5 KB · Views: 7
Top