ITLongwell / mondains-legacy

Automatically exported from code.google.com/p/mondains-legacy
0 stars 0 forks source link

Player Statue Maker #57

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
- Player can add player statue maker with casted Animal Form
- Sometimes players have client crash if see statue

Original issue reported on code.google.com by pziemc...@gmail.com on 28 Nov 2008 at 2:00

GoogleCodeExporter commented 8 years ago
That was Fixed a few months ago.

Original comment by uorevolu...@gmail.com on 29 Nov 2008 at 2:17

GoogleCodeExporter commented 8 years ago
Hmm, yes. Ok! Sorry for bad issue

Original comment by pziemc...@gmail.com on 29 Nov 2008 at 2:21

GoogleCodeExporter commented 8 years ago
Wtf its not fixed. I Already testing this and my client crashing if im on giant
serpent form (animal form ninjitsu).

Original comment by pziemc...@gmail.com on 29 Nov 2008 at 3:33

GoogleCodeExporter commented 8 years ago
Was Fixed on SVN 23.

Original comment by uorevolu...@gmail.com on 29 Nov 2008 at 10:29

GoogleCodeExporter commented 8 years ago
Not fixed, check this.
Use Player Statue Maker on animal form (giant serpent)

Original comment by pziemc...@gmail.com on 29 Nov 2008 at 7:54

GoogleCodeExporter commented 8 years ago
Like i said its fixed on SVN 23 tested all that and will tell me you cant 
peform in
that status form so you didnt update something good luck.

Original comment by uorevolu...@gmail.com on 29 Nov 2008 at 8:41

GoogleCodeExporter commented 8 years ago
The error has to do with the Deed portion of the CharacterStatue.cs
You need to add the !from.IsBodyMod section to the script in the OnDoubleClick( 
Mobile m )*** posted below. It is the same code that was added to the character 
statue maker on dbl click section. This will prevent them from using the deed 
with a 
body mod and crashing the client :]

[code]      

public override void OnDoubleClick( Mobile from )
        {
            Account acct = from.Account as Account;

            if ( acct != null && from.AccessLevel == AccessLevel.Player )
            {   
                TimeSpan time = TimeSpan.FromDays( 
RewardSystem.RewardInterval.TotalDays * 6 ) - ( DateTime.Now - acct.Created );

                if ( time > TimeSpan.Zero )
                {
                    from.SendLocalizedMessage( 1008126, true, 
Math.Ceiling( time.TotalDays / RewardSystem.RewardInterval.TotalDays ).ToString
() ); // Your account is not old enough to use this item. Months until you can 
use 
this item : 
                    return;
                }
            }

            if ( IsChildOf( from.Backpack ) )
            {
                if ( !from.IsBodyMod )
                {
                from.SendLocalizedMessage( 1076194 ); // Select a 
place where you would like to put your statue.
                from.Target = new CharacterStatueTarget( this, 
StatueType );
                }
                else
                    from.SendLocalizedMessage( 1073648 ); // You 
may only proceed while in your original state...
            }
            else
                from.SendLocalizedMessage( 1042001 ); // That must 
be in your pack for you to use it.
        }
[/code]     

Original comment by ShazzySh...@gmail.com on 1 Dec 2008 at 2:47

GoogleCodeExporter commented 8 years ago
Thank you very mutch ShazzyShard

Original comment by pziemc...@gmail.com on 1 Dec 2008 at 3:24

GoogleCodeExporter commented 8 years ago
Fixed in version 1.04.

Original comment by gje...@gmail.com on 5 Dec 2008 at 4:53