Resource icon

Xantos Shrink System 1.0

No permission to download

PigPen

Citizen
Jan 19, 2017
46
5
8
70
Just for some general information . .

I ran into this problem a couple years ago and after numerous posts and attempts no one on RunUO was able to solve it. We were losing shruken pets as well as Stabled pets. I changed the scripts to force 100% Loyalty when shrunk or stabled but this did not solve the problem.

Finally I disabled the Stable system completely. That was a sad day for me but at least now the Shrink system works with no more lost pets. Players have learned to use the Shrink system and not the Stables. I suspect there is some conflict between the Shrink system and the Stable system but I don't have the skills to fix it.

Maybe some people here can solve it.
 

Tasanar

Admin
ServUO Developer
Oct 16, 2014
4,679
188
63
33
trueuo.com
Shard Name
Heritage
Donate
Donate money to this user
Very interesting.

Now you were not losing pets from the stables right? Just only the shrunken ones?
[doublepost=1495849677][/doublepost]I think part of the problem is also Clean up
[doublepost=1495854358][/doublepost]Yup had it happen again. To the SAME player.
[doublepost=1495854498][/doublepost]Loyalty of pet was at 100% so that is def not it.
[doublepost=1495856327][/doublepost]It has to be something with the system.

Doubt it is clean up, it unlinked from the pet before a restart so clean up did not even delete it. I could find it in the internal map. Still a faulty system. Users beware.
 

PigPen

Citizen
Jan 19, 2017
46
5
8
70
********************
Very interesting.
Now you were not losing pets from the stables right? Just only the shrunken ones?
********************
No . . now we are not losing any shrunken ones . . but . . we had to close the stables so no player can use the Stable system. When you try to use the Stable on our shard the Stable Master gives a message saying they are not taking any more pets. Instead he:
1) will sell you an expensive Leash to shrink them or
2) tells you to do the Bedlam quest for a leash or
3) tells you to buy a leash from a Player Tailor or
4) tells you to use a Hitching Post which I placed near all stables.

To solve the problem of players wanting to stable/shrink the many old 'normal' (not Evo) pets, I made Evo versions of all the popular pets (they quickly evolve only two stages to their expected 'normal' strength. I then spawned the new ones in place of the old 'normal' ones. Yes it was a lot of work but it solved the problem and everyone seems happy (better than indiscriminate deletion in the stables).

A proper solution would have been nice but I could not find one and everything else I tried failed.
 
  • Like
Reactions: Milva

zerodowned

Moderator
ServUO Developer
Jun 28, 2014
1,825
248
63
********************
Very interesting.
Now you were not losing pets from the stables right? Just only the shrunken ones?
********************
No . . now we are not losing any shrunken ones . . but . . we had to close the stables so no player can use the Stable system. When you try to use the Stable on our shard the Stable Master gives a message saying they are not taking any more pets. Instead he:
1) will sell you an expensive Leash to shrink them or
2) tells you to do the Bedlam quest for a leash or
3) tells you to buy a leash from a Player Tailor or
4) tells you to use a Hitching Post which I placed near all stables.

To solve the problem of players wanting to stable/shrink the many old 'normal' (not Evo) pets, I made Evo versions of all the popular pets (they quickly evolve only two stages to their expected 'normal' strength. I then spawned the new ones in place of the old 'normal' ones. Yes it was a lot of work but it solved the problem and everyone seems happy (better than indiscriminate deletion in the stables).

A proper solution would have been nice but I could not find one and everything else I tried failed.
I believe it's because of the OwnerAbandonTime, not 100% certain but if you stop that timer then i think it should fix the issue.
 

AdamD

Rookie
Aug 19, 2014
86
5
8
40
Shard Name
The Dark Ages
Had the disappearing/lost pets on the shard I ran, never could figure it out (Way above my head to be honest)
So I disabled the shrink system and gave everyone a stable stone instead, never had a problem after that.
 

PigPen

Citizen
Jan 19, 2017
46
5
8
70
I believe it's because of the OwnerAbandonTime, not 100% certain but if you stop that timer then i think it should fix the issue.
That is interesting and potentially the problem. Thank you for new lead. I will try running some tests on it.
 

zerodowned

Moderator
ServUO Developer
Jun 28, 2014
1,825
248
63
If I recall there's two timers and either one runs depending on if it's stabled or not.

Since a shrunk pet is not considered Stabled, it runs the Owner Abandoned timer.
 

Tasanar

Admin
ServUO Developer
Oct 16, 2014
4,679
188
63
33
trueuo.com
Shard Name
Heritage
Donate
Donate money to this user
What is weird about that though is if you have 50 pets all shrunk at the same time, 49 will be okay and 1 will randomly delete.
 

Tasanar

Admin
ServUO Developer
Oct 16, 2014
4,679
188
63
33
trueuo.com
Shard Name
Heritage
Donate
Donate money to this user
I stopped using it about a year ago. Had about 500 shunk pets at the time. Random ones, over time, would just go null. The statues that is.
 

AdamD

Rookie
Aug 19, 2014
86
5
8
40
Shard Name
The Dark Ages
I stopped using it about a year ago. Had about 500 shunk pets at the time. Random ones, over time, would just go null. The statues that is.
Yea that's the issue I had, yet other pets the player owned who had been stored for the same amount of time, were ok,
Indeed some had statues locked down in their houses for months, and they weren't null. (Unless double clicking in your pack, updates the status)
 

zerodowned

Moderator
ServUO Developer
Jun 28, 2014
1,825
248
63
I can see a few issues but I'm not entirely sure how significant they are

here's the shrink item

Code:
public override void Serialize( GenericWriter writer )
        {
            base.Serialize( writer );

            writer.Write( (int)0 ); // version
            writer.Write( m_IsStatuette );
            writer.Write( m_Locked );
            writer.Write( (Mobile)m_Owner );
            writer.Write( (Mobile)m_Pet ); // should be (BaseCreature)m_Pet since it's BaseCreature everywhere else
        }

        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            switch ( reader.ReadInt() )
            {
                case 0:
                {
                    m_IsStatuette = reader.ReadBool();
                    m_Locked = reader.ReadBool();
                    m_Owner = (PlayerMobile)reader.ReadMobile();
                    m_Pet = (BaseCreature)reader.ReadMobile();

                    if (null != m_Pet ) // should be m_Pet != null ??
                        m_Pet.IsStabled = true;

                    break;
                }
            }
        }
 

eugenesa

Rookie
Jun 2, 2014
56
6
8
36
Shard Name
eugenesa shard
Donate
Donate money to this user
Add ShrinkPotion to the vendor

The namespace is incorrect when starting the server

I get an error ...

How do I change it?
 
Last edited:

Neshoba

Squire
Feb 1, 2016
325
18
18
post section giving error best I can understand is its gonna be a misspelling of the shrink potion

this is proper spelling for ShrinkPotion public class ShrinkPotion;
taken from the shrinkpotion script as posted on page 2 of this thread by Jeow
 
Last edited:

Fred1990

Rookie
Jan 23, 2019
77
2
8
30
Cool but I followed the infos inside, but seem not working,
"
Xantos Shrink System and the Utilities folder both go into your -Custom Folder

ShrinkConfig - goes into the Data Folder" (done)
but when I digit [shrink the command not works , I tried to but the shrinkcommand.cs on the commands folder but I get an error
 

ParanoiaPhD

Squire
May 2, 2019
161
17
18
32
California
www.iceyou.org
Shard Name
Central USA
I cant figure out how to put PetLeash onto a vendor or the uostore! ! ! lol so basically I'm getting the error that the leash isn't in the correct name space. Pet leash is under the... "namespace Xanthos.ShrinkSystem" While regular items from the store and vendors are under the... "namespace Server.Items" Please halp