Resource icon

Player Vendor Tile 1.1.0

No permission to download
Requirements
This requires edits to core script files

What Is This?

Do you have or want a public area for player vendors? Now you can have one that is completely player ran.

All you have to do is place these tiles anywhere you wish to allow a player to place a vendor, and the player can place the their vendor there!

1677104371055.png


Installation and ServUO version


Unzip the file to /Scripts/Custom/

Find and open the file Scripts\Items\Consumables\PlayerVendorDeed.cs

Go to line 58, you should see the following:
C#:
else
            {
                BaseHouse house = BaseHouse.FindHouseAt( from );
Directly under this line
C#:
BaseHouse house = BaseHouse.FindHouseAt( from );
Add the following:
C#:
 #region VendorTile
				foreach (Mobile m in from.GetMobilesInRange(0))
				{
					if (m is PlayerVendor)
					{
						from.SendMessage("There is someone in the way!");
						return;
					}
				}
				foreach (Item i in from.GetItemsInRange(0))
				{
					if (i is VendorTile && i.Location.X == from.Location.X && i.Location.Y == from.Location.Y)
					{
						Mobile v = new PlayerVendor(from, house);

						v.Direction = from.Direction & Direction.Mask;
						v.MoveToWorld(from.Location, from.Map);

						v.SayTo(from, 503246); // Ah! it feels good to be working again.

						this.Delete();
						return;
					}
				}
				#endregion

Now it should look like this:
C#:
			else
			{
				BaseHouse house = BaseHouse.FindHouseAt(from);

				#region VendorTile
				foreach (Mobile m in from.GetMobilesInRange(0))
				{
					if (m is PlayerVendor)
					{
						from.SendMessage("There is someone in the way!");
						return;
					}
				}
				foreach (Item i in from.GetItemsInRange(0))
				{
					if (i is VendorTile && i.Location.X == from.Location.X && i.Location.Y == from.Location.Y)
					{
						Mobile v = new PlayerVendor(from, house);

						v.Direction = from.Direction & Direction.Mask;
						v.MoveToWorld(from.Location, from.Map);

						v.SayTo(from, 503246); // Ah! it feels good to be working again.

						this.Delete();
						return;
					}
				}
				#endregion

Tested on publish 57

Usage:
Start placing tiles. [add VendorTile
Author
Bittiez
Downloads
152
Views
3,407
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Bittiez

Latest Updates

  1. Updated to pub 57

    Updated to publish 57
Back