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!

Resource icon

Player Vendor Tile 0.0.2

No permission to download
Note: This requires edits to be placed in another script file.

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!

Now lets get started shall we?

Step 1.
Place the downloaded file into your /Customs/ folder.

Step 2.
Find and open the file Scripts\Items\Misc\PlayerVendorDeed.cs
Go to line 56, 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
            Sector sector = from.Map.GetSector(from.Location);
            foreach (Item i in sector.Items)
            {
                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
                Sector sector = from.Map.GetSector( from.Location );
                foreach(Item i in sector.Items)
                {
                    if (i is VendorTile)
                    {
                        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


Step 3.
Save, restart your server and start placing your tiles!
  • Like
Reactions: Felladrin
Author
Bittiez
Downloads
129
Views
407
First release
Last update
Rating
5.00 star(s) 3 ratings

More resources from Bittiez

Latest updates

  1. Player Vendor Tile

    Updates: Forgot to make the VendorTile not decay in the first release, sorry.

Latest reviews

very cool :D
Always wanted to let players put vendors in town shops, or at a public marketplace. This is sooooooo cool!
Great idea! Works like a charm!
Top