Resource icon

Xantos Shrink System 1.0

No permission to download

Milva

Admin
Moderator
Mar 3, 2013
4,536
596
113
Donate
Donate money to this user
Maybe check security settings on that script? just a thought
 

Falkor

Squire
Apr 11, 2018
436
176
43
wpshard.com
Shard Name
Whispering Pines
It sounds like ShrinkConfig.xml isn't opening in a text editor. I think the default Windows option makes it open in a web browser.

Right-click the file and choose "Open with" and pick a text editor there. Then you should be able to change the ShrinkCharges variable and save the file.

Or, if that just won't work, just edit the petleash.cs and hitchingpost.cs files directly to change
Code:
private int m_Charges = ShrinkConfig.ShrinkCharges;
to

Code:
private int m_Charges = 1;
and enjoy. After all, you aren't going to be changing these options frequently!
 

Kahn

Citizen
Jul 9, 2016
33
2
8
63
It sounds like ShrinkConfig.xml isn't opening in a text editor. I think the default Windows option makes it open in a web browser.

Right-click the file and choose "Open with" and pick a text editor there. Then you should be able to change the ShrinkCharges variable and save the file.

Or, if that just won't work, just edit the petleash.cs and hitchingpost.cs files directly to change
Code:
private int m_Charges = ShrinkConfig.ShrinkCharges;
to

Code:
private int m_Charges = 1;
and enjoy. After all, you aren't going to be changing these options frequently!
I opened it with a text editor.......worked great......Thanks sooooo much for all the help!
 

PigPen

Rookie
Jan 19, 2017
54
8
8
70
You should be able to use a text editor to open and change the .xml file unless you computer has changed the 'Permissions' on the file or the folder it is in.
 

JaxStraw

Rookie
Feb 20, 2018
62
3
8
40
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.
How did you get it to name as pet leash?

I did this and see the errors below

C#:
// HitchingPost
            
            index = AddCraft(typeof(HitchingPostEastAddon), 1011173, "Hitching Post (east)", 100.0, 120.0, typeof(IronIngot), 1044036, 100, 1044253);
            AddRes(index, typeof(SmallPieceofBlackrock), 1150016, 10, 1044253);
            AddRes(index, typeof(Board), 1044041, 50, 1044351);
            AddSkill(index, SkillName.Carpentry, 70.0, 100.0);
            
            index = AddCraft(typeof(HitchingPostSouth), 1011173, "Hitching Post (south)", 100.0, 120.0, typeof(IronIngot), 1044036, 100, 1044253);
            AddSkill(index, SkillName.Carpentry, 70.0, 100.0);
            AddRes(index, typeof(SmallPieceofBlackrock), 1150016, 10, 1044253);
            AddRes(index, typeof(Board), 1044041, 50, 1044351);
            
            
            // Pet Leash
            index = AddCraft(typeof(PetLeash), 1011173, "Pet Leash", 100.0, 120.0, typeof(Leather), 1044462, 10, 1044463);
            AddSkill(index, SkillName.Tailoring, 70.0, 100.0);
            AddRes(index, typeof(Cloth), 1044455, 30, 1044287);
            AddRes(index, typeof(SmallPieceofBlackrock), 1150016, 10, 1044253);
My Errors:
Errors:
 + Services/Craft/DefBlacksmithy.cs:
    CS0246: Line 812: The type or namespace name `HitchingPostSouthDeed' could not be found. Are you missing `Xanthos.ShrinkSystem' using directive?
    CS0246: Line 817: The type or namespace name `HitchingPostEastDeed' could not be found. Are you missing `Xanthos.ShrinkSystem' using directive?
    CS0246: Line 824: The type or namespace name `PetLeash' could not be found. Are you missing `Xanthos.ShrinkSystem' using directive?
Scripts: One or more scripts failed to compile or no script files were found.
 

JaxStraw

Rookie
Feb 20, 2018
62
3
8
40
So, I am having issues where the shrunken pets will not bless. I have it set to ALL but this is still not blessing the statue of the pet. Here is what I have below

ShrinkConfig.cs section lines 23-39:
public class ShrinkConfig
    {
        public enum BlessStatus
        {
            All,        // All shrink items are blessed
            BondedOnly,    // Only shrink items for bonded pets are blessed
            None        // No shrink items are blessed
        }

        public static bool PetAsStatuette = true;        // Deed or statuette form
        public static bool AllowLocking = false;        // Allow players to lock the shrunken pet or not
        public static bool ShowPetDetails = true;        // Show stats and skills on the properties of the shrunken pet
        public static double ShrunkenWeight = 10.0;
        public static bool BlessedLeash = true;
        public static BlessStatus LootStatus = BlessStatus.All;    // How the shruken pet should be as loot
        public static double TamingRequired = 0;        // set to zero for no skill requirement to use shrink tools
        public static int ShrinkCharges = -1;            // set to -1 for infinite uses
not sure why this commit will not allow "Blessed"
 

PigPen

Rookie
Jan 19, 2017
54
8
8
70
I don't know if you solved this or even if the following will help but I checked over my Shrink Files for 'Blessed' and found it in four places. You might want to look at yours.

FIRST - In ShrinkCommand.cs . . look under the section:
protected override void OnTarget( Mobile from, object target )

and look for something like this:
*********************************
Code:
else if ( !(target is BaseEvo || target is BaseEvoMount) )
    from.SendMessage( "You can only use this on Evolution creatures!" );
else
{
    pet.Loyalty = BaseCreature.MaxLoyalty;
    pet.Blessed = true;

SECOND - In ShrinkItem.cs . . look under the section:
private void ShrinkPet( BaseCreature pet )

and look for something like this:
*********************************
Code:
            if ( ShrinkConfig.LootStatus == ShrinkConfig.BlessStatus.All
                || ( m_Pet.IsBonded && ShrinkConfig.LootStatus == ShrinkConfig.BlessStatus.BondedOnly ))
                LootType = LootType.Blessed;
            else
                LootType = LootType.Regular;

            m_Pet.Internalize();
            m_Pet.SetControlMaster( null );
            m_Pet.ControlOrder = OrderType.Stay;
            m_Pet.SummonMaster = null;
            m_Pet.IsStabled = true;
THIRD - In ShrinkCinfig.cs . . look under the section:
public class ShrinkConfig

and look for something like this:
*********************************
Code:
        public enum BlessStatus
        {
            All,        // All shrink items are blessed
            BondedOnly,    // Only shrink items for bonded pets are blessed
            None        // No shrink items are blessed
        }
Fourth (and final) . . In your Data folder in ShrinkConfig.xml . .

and look for something like this:
*********************************
Code:
        <LootStatus>BlessStatus.BondedOnly</LootStatus>
It is possible you overlooked the ShrinkConfig.xml in your Data folder.

I hope this helps.