Resource icon

Xantos Shrink System 1.0

No permission to download

Milva

Administrator
Moderator
As Anon suggested maybe try at the very top of the scripts-just an idea -- using Xanthos.ShrinkSystem;
 

PigPen

Citizen
Can you post your exact Error Log please? It might also help if you post the script you have for the PetLeash.

I do not know anything about the 'uostore' but if you can add the PetLeash in game then you should be able to add it to a vendor. I suspect I am misunderstanding what you are trying to explain.
 

ParanoiaPhD

Gold Supporter
That didn't work. Still getting the same error... I'm simply adding PetLeash to SBProvisioner. I added the using Xanthos.Interfaces; to the top...

C#:
using System;
using System.Collections.Generic;
using Server.Guilds;
using Server.Items;
using Xanthos.Interfaces;

namespace Server.Mobiles
{
    public class SBProvisioner : SBInfo
    {
        private readonly List<GenericBuyInfo> m_BuyInfo = new InternalBuyInfo();
        private readonly IShopSellInfo m_SellInfo = new InternalSellInfo();

        public SBProvisioner()
        {
        }

        public override IShopSellInfo SellInfo
        {
            get
            {
                return m_SellInfo;
            }
        }
        public override List<GenericBuyInfo> BuyInfo
        {
            get
            {
                return m_BuyInfo;
            }
        }

        public class InternalBuyInfo : List<GenericBuyInfo>
        {
            public InternalBuyInfo()
            {
                //CUSTOM
                Add(new GenericBuyInfo(typeof(PetLeash), 1000000, 2000000, 0x1374, 0, true));

C#:
Scripts: Compiling C# scripts...Failed with: 1 errors, 0 warnings
Errors:
+ VendorInfo/SBProvisioner.cs:
    CS0246: Line 38: The type or namespace name 'PetLeash' could not be found (are you missing a using directive or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
Bellow is from PetLeash.cs and you can see the namespace is different so it's not working. Do I need Vita-Nex or something?
C#:
#region AuthorHeader
//
//    Shrink System version 2.1, by Xanthos
//
//
#endregion AuthorHeader
using System;
using Server;
using Server.Items;
using Server.Mobiles;
using Xanthos.Interfaces;

namespace Xanthos.ShrinkSystem
Post automatically merged:

I added
C#:
using Xanthos.Interfaces;
To the References in SBProvisioner.cs
I needed to use the namespace being used by the petleash! not the namespace of the namespace...
C#:
namespace Xanthos.ShrinkSystem
The namespace used by petleash. ^^^^^^^^
and so you turn the namespace of petleash into a reference and then it works.
C#:
using System;
using System.Collections.Generic;
using Server.Guilds;
using Server.Items;
using Xanthos.ShrinkSystem;

namespace Server.Mobiles
{
    public class SBProvisioner : SBInfo
    {
        private readonly List<GenericBuyInfo> m_BuyInfo = new InternalBuyInfo();
        private readonly IShopSellInfo m_SellInfo = new InternalSellInfo();

        public SBProvisioner()
        {
        }

        public override IShopSellInfo SellInfo
        {
            get
            {
                return m_SellInfo;
            }
        }
        public override List<GenericBuyInfo> BuyInfo
        {
            get
            {
                return m_BuyInfo;
            }
        }

        public class InternalBuyInfo : List<GenericBuyInfo>
        {
            public InternalBuyInfo()
            {
                //CUSTOM
                Add(new GenericBuyInfo(typeof(PetLeash), 1000000, 2000000, 0x1374, 0, true));
 
Last edited:

PigPen

Citizen
You also need to add using Xanthos.ShrinkSystem; at the top area of SBProvisioner


OOPS! sorry . . looks like you got it solved. As a side note I added the pet leash to the Tailor Craft menu so Tailors could make and sell them to other players.
 
Last edited:
Wanted to share this with anyone who is using Xantos Shrink System and VitaNex. I've updated the ObjectPropertyList to clean it up a little bit. I'm still a rookie but it looks much nicer. Thanks @Vorspire for explaining ExtendedOPL to me in discord.

THIS DOES REQUIRE VITANEX CORE

Just drag and drop "ShrinkItem.cs" and replace it inside of XantosShrink/Shrink System/

ORIGINAL
14140

NEW
14138
 

Attachments

  • ShrinkItem.cs
    11.4 KB · Views: 39
Anyone can help?

Scripts: Compiling C# scripts...Failed with: 1 errors, 0 warnings
Errors:
+ Custom/XantosShrink/Shrink System/HitchingPost.cs:
CS0117: Line 33: 'ObjectPropertyList' does not contain a definition for 'Enabled'
Scripts: One or more scripts failed to compile or no script files were found.
 

Falkor

Squire
Odds are that the current ServUO doesn't support anything except working OPL so the ability to enable/disable it has been removed as well. You should be able to just declare it true without any other issues.

Code:
        public override bool ForceShowProperties{ get{ return true; }}
 

Kahn

Citizen
I have tried to change in scripts and Data folder. It will not let me change the shrink charges. I am not understanding what I need to do to be able to change it. Seems everyone else is making changes as needed. How do I change it? Why can't I just change the 50 to 1.

to change the foo configuration from 50 to 100 one would change <foo type="int">50</foo> to <foo type="int">100</foo> -->
<ShrinkCharges type="int">50</ShrinkCharges>
 

Kahn

Citizen
It will not let me change it in the script.......I can't change the "50" to a "1". Like it's a read only file.
 

Falkor

Squire
ServUO scripts are just text files. Nothing is read-only.

Exactly what file are you trying to edit?
 

Kahn

Citizen
ServUO scripts are just text files. Nothing is read-only.

Exactly what file are you trying to edit?
ShrinkConfig.xml.....was going to change ShrinkConfig.cs but it says I need to change the ShrinkConfig.xml to change the amount of charges on the pet leash.
Post automatically merged:

I have never ran into any script I couldn't change until now.
Post automatically merged:

Below is the reason I was trying to change the ShrinkConfig.xml., but it won't let me.

// This file is for configuration of the Shrink System. It is advised
// that you DO NOT edit this file, instead place ShrinkConfig.xml in the
// RunUO/Data directory and modify the values there to configure the system
// without changing code. This allows you to take updates to the system
// without losing your specific configuration settings.