Resource icon

Xantos Shrink System 1.0

No permission to download

Milva

Admin
Moderator
Mar 3, 2013
4,235
482
Donate
Donate money to this user
As Anon suggested maybe try at the very top of the scripts-just an idea -- using Xanthos.ShrinkSystem;
 

PigPen

Active Member
Jan 19, 2017
37
2
69
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

Well-Known Member
May 2, 2019
112
12
31
California
www.iceyou.org
Shard Name
Central USA
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

Active Member
Jan 19, 2017
37
2
69
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: