Compose problem in 5165

01/16/2010 04:45 ipwnudont#1
Ok on the server im currently Staff on we are having a problem with Composing such as when you make a +12 item at the Wuxing oven and then log out and log back in there will be 4 exact duplicates in your inventory...any ideas at all?
01/16/2010 05:01 -Shunsui-#2
I have no clue why its making Duplicates but check the code, Nor go to the Guides and Release section a Good working Wuxing over was released,
01/16/2010 05:09 ipwnudont#3
Thanks ill suggest it to the Coder and +karma for you
01/16/2010 06:13 Arcо#4
Quote:
Originally Posted by ipwnudont View Post
Thanks ill suggest it to the Coder and +karma for you

Go to o striides multi release thread, Iposted my fix for composition in there and it works 100%.
01/16/2010 13:30 ~Yuki~#5
Quote:
Originally Posted by Hepatitis C View Post

Go to o striides multi release thread, Iposted my fix for composition in there and it works 100%.
Wrong it didnt work actually coz u forgot a line, u said change to this:

PHP Code:
if (MainI.ID != && MinorI.ID != && MainI.Plus <= 11)
            {
                
uint Progress MainI.Progress;
                
Progress += Database.StonePts[MinorI.Plus];

                
GC.MyChar.RemoveItem(MainI);

                while (
Progress >= Database.ComposePts[MainI.Plus] && MainI.Plus <= 11)
                {
                    
Progress -= Database.ComposePts[MainI.Plus];
                    
MainI.Plus++;
                }

                if (
MainI.Plus == 12)
                    
Progress 0;
                
MainI.Progress = (ushort)Progress;
                
GC.MyChar.AddItem(MainI);
        }
    } 
instead of

PHP Code:
            if (MainI.ID != && MinorI.ID != && MainI.Plus <= 11)
            {
                
uint Progress MainI.Progress;
                
Progress += Database.StonePts[MinorI.Plus];

                
GC.MyChar.RemoveItem(MainI);

                while (
Progress >= Database.ComposePts[MainI.Plus] && MainI.Plus <= 11)
                {
                    
Progress -= Database.ComposePts[MainI.Plus];
                    
MainI.Plus++;
                }
                if (
MainI.Plus == 12)
{
                    
Progress 0;
                    
MainI.Progress = (ushort)Progress;
}
                    
GC.MyChar.AddItem(MainI);
                    
GC.MyChar.RemoveItem(MinorI);// Here what u forgot!
            

01/16/2010 17:03 Arcо#6
Quote:
Originally Posted by ~Yuki~ View Post
Wrong it didnt work actually coz u forgot a line, u said change to this:

PHP Code:
if (MainI.ID != && MinorI.ID != && MainI.Plus <= 11)
            {
                
uint Progress MainI.Progress;
                
Progress += Database.StonePts[MinorI.Plus];

                
GC.MyChar.RemoveItem(MainI);

                while (
Progress >= Database.ComposePts[MainI.Plus] && MainI.Plus <= 11)
                {
                    
Progress -= Database.ComposePts[MainI.Plus];
                    
MainI.Plus++;
                }

                if (
MainI.Plus == 12)
                    
Progress 0;
                
MainI.Progress = (ushort)Progress;
                
GC.MyChar.AddItem(MainI);
        }
    } 
instead of

PHP Code:
            if (MainI.ID != && MinorI.ID != && MainI.Plus <= 11)
            {
                
uint Progress MainI.Progress;
                
Progress += Database.StonePts[MinorI.Plus];

                
GC.MyChar.RemoveItem(MainI);

                while (
Progress >= Database.ComposePts[MainI.Plus] && MainI.Plus <= 11)
                {
                    
Progress -= Database.ComposePts[MainI.Plus];
                    
MainI.Plus++;
                }
                if (
MainI.Plus == 12)
{
                    
Progress 0;
                    
MainI.Progress = (ushort)Progress;
}
                    
GC.MyChar.AddItem(MainI);
                    
GC.MyChar.RemoveItem(MinorI);// Here what u forgot!
            


Um, no.
I've used that code ever since I started the 5165 and it worked perfectly.
01/16/2010 18:29 ~Yuki~#7
Mate if u dont add a line to remove the stone it will stay in inv.
01/16/2010 18:35 Arcо#8
Quote:
Originally Posted by ~Yuki~ View Post
Mate if u dont add a line to remove the stone it will stay in inv.

Well would you mind telling me why mine works perfectly without that line?
01/16/2010 19:06 Basser#9
Quote:
Originally Posted by Hepatitis C View Post

Well would you mind telling me why mine works perfectly without that line?
Because you are Hepatitis. Your a disease, remember?
Diseases can skip 1 line in every void, bool and struct because they are special. =)
01/16/2010 19:56 Arcо#10
Quote:
Originally Posted by Hepatitis X View Post
Because you are Hepatitis. Your a disease, remember?
Diseases can skip 1 line in every void, bool and struct because they are special. =)

Oh yeah, I forgot that I read that in the C# handbook!
01/16/2010 20:11 .Ryu#11
Here you go this is stigs thread for fixed compose...

[Only registered and activated users can see links. Click Here To Register...]
Goodluck
01/22/2010 09:53 ipwnudont#12
**EDIT
Problem fixed thanks to everyone

#request to close thread please