How To Install "Completely Customizable Vendor" Script

kenrobby

Citizen
Hey Guys. I'm trying to add this script to my Shard but I'm having issues and errors galore.
is there anyway someone can break down how to install this script?

or if anybody knows of an easier alternative as I'm trying to add some custom imbue items onto my vendor so that players can purchase them from them.
I thought it would also be a good gold sink for players to spend their "hard earned" gold on.

Thank you in advance!
 

Erad

Citizen
Well it's quite easy to add items to a vendor, or you could go with the style of a vendor stone instead, and pick your currency and what you want to sell, note if you want an imbued item pretty sure you'll need to script an item and make it have, the imbuing properties, also the script you are working with was probably made with a older or newer servuo vs the one that you have. Would recommend comparing and see if you notice any major difference from how the scripting was
 

kenrobby

Citizen
Thank you for your reply.
So How would I then Add A Vendor Style Stone? Which script would I use? I think that would make more sense.
Sorry I didn't explain it properly. I am looking to add Imbuing reagents. like EssenceOf..... etc...
 

kenrobby

Citizen
There is a custom script on here or Runuo, that is a gold/vendor stone, I think karmaggedon or Daat made

Vendor Stone not taking tokens from ledger take look around that.
Thank you for that!
So I found a vendor stone script and added it into the scripts folder. I compiled the server without any errors but I'm having trouble finding it in game (as admin) and adding it into the game.
This is the file
 

Attachments

  • VendorStone.cs
    42.5 KB · Views: 3

Erad

Citizen
Search for the public class in the add
Post automatically merged:

Try this Vendor Stone By Raelis, I already modified the OnSingleclick out
Post automatically merged:

just seach Vendor in the add menu
 

Attachments

  • VendorStone.cs
    461.6 KB · Views: 6
Last edited:

kenrobby

Citizen
Search for the public class in the add
Post automatically merged:

Try this Vendor Stone By Raelis, I already modified the OnSingleclick out
Post automatically merged:

just seach Vendor in the add menu
I added the script to the scripts folder and recompiled.
I logged on as admin, typed in "[add vendor" and only this shows up
Am I missing something?
I'm running the latest Servuo
 

Attachments

  • uo vendor.png
    uo vendor.png
    206 KB · Views: 6
Last edited:

Erad

Citizen
I added the script to the scripts folder and recompiled.
I logged on as admin, typed in "[add vendor" and only this shows up
Am I missing something?
I'm running the latest Servuo
did you recompiled the server actually or did you just hit the ServUO.exe?
 

kenrobby

Citizen
That's so strange so it must be something on my end then.
I'm using the 7.0.88.1
Latest Publish 57.
Do you have any other script emulators that you're using?
vita core etc??
 

Erad

Citizen
I am currently using 7.0.13.4 still actually for the client, I don't have any other Script Emulators just some Custom Scripts I am working on. I am also using a Custom Artwork Client, as well as using ClassicUO Instead of using Razor.
 

Skyfly

Citizen
Can you try adding the following in the script: (around line 26)
C#:
namespace Server.Items
{
    public class VendorBall : Item
    {
       //add this
        public static void Configure()
        {
            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.WriteLine("VendorBall");
            Console.ReadLine();
        }
        //

then recompile the server and start it, it should stop and look like this when after you started it (if it doesn't print the message in cyan to the console i would guess the compile process is skipping/ignoring the file for some reason):

1617838939464.png
 

kenrobby

Citizen
I am currently using 7.0.13.4 still actually for the client, I don't have any other Script Emulators just some Custom Scripts I am working on. I am also using a Custom Artwork Client, as well as using ClassicUO Instead of using Razor.
Same here I'm using the ClassicUo Launcher instead of Razor (hate razor -waay too laggy and jittery)
 

kenrobby

Citizen
Can you try adding the following in the script: (around line 26)
C#:
namespace Server.Items
{
    public class VendorBall : Item
    {
       //add this
        public static void Configure()
        {
            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.WriteLine("VendorBall");
            Console.ReadLine();
        }
        //

then recompile the server and start it, it should stop and look like this when after you started it (if it doesn't print the message in cyan to the console i would guess the compile process is skipping/ignoring the file for some reason):

View attachment 17861
Now I just get these errors
Post automatically merged:

can you show me the folder where you are adding the script at?
This is the folder that i am adding the script to
 

Attachments

  • script er.png
    script er.png
    200.7 KB · Views: 3
  • folder.png
    folder.png
    118.3 KB · Views: 3