help wuxing oven

02/06/2010 02:40 jitus2#1
Hi everyone,

So, here I have an annoying problem on my server when I use the oven for wuxing composition, after mounting the item with the stone, the stone does not disappear from my bag, so the stones can be reused to infinity

Help me please, I use the source published 5165.

If someone with this problem, it could make a copy / paste are coding please.

Thank you very much.

Sorry for my bad English.
02/06/2010 02:48 pro4never#2
Try looking at one of the modified CoEmu sources. They have composition fully working and would provide a very good reference on how to code it properly for lotf.

SwordCo would be a nice example to try.
02/06/2010 02:50 hunterman01#3
Quote:
Originally Posted by pro4never View Post
Try looking at one of the modified CoEmu sources. They have composition fully working and would provide a very good reference on how to code it properly for lotf.

SwordCo would be a nice example to try.
read my mind
02/06/2010 02:52 xSynthesis#4
This is not my work. Its Arco's. Couldn't find the thread so i decide to post it here. D=
And Don't thank me! Rofl. Give thank to Arco.


Go to compose.cs and search for

PHP Code:
if (MainI.ID != && MinorI.ID != && MainI.Plus <= 8
Replace the entire void with this

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

                
GC.MyChar.RemoveItem(MinorI);
                
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);
            } 
Then go to database.cs and search for

PHP Code:
public static ushort[] ComposePts = new ushort[12] { 202080240720216064801944058320270055009000 }; 
And replace that with
PHP Code:
public static ushort[] ComposePts = new ushort[13] { 20208024072021606480194405832027005500900029160 }; 
02/06/2010 02:52 jitus2#5
Pro4never, thx very much,
I think to compare, but I must look into what? composition.cs?

Edit: xSynthesis, I'll try, thank you so much to arco

I have one last question time as a beginner, to add a npc via a release, I am in npcdialog.cs, and I must copy and paste exactly?

Because I try to add this on my server: [Only registered and activated users can see links. Click Here To Register...]
02/06/2010 03:07 xSynthesis#6
Basicly you only have to do is Copy/Paste on that release. Just Copy/Paste everything exactly like it says but the problem on that release is Mobs won't moves. So after you done copy and pasting on that release move to this one. [Only registered and activated users can see links. Click Here To Register...] And do everything what exactly says again. Then Mobs starts to move.
02/06/2010 03:23 jitus2#7
xSynthesis, thank you for your help, but my concern is mostly that I can not add a npc, I must go npcdialog.cs, but after the copy / paste or do I?

Because before you make your fix, I must first pass, the other release.

Can you show me where I need to copy and paste if you please:
[Only registered and activated users can see links. Click Here To Register...]

Anyway thank you for you're support.
02/06/2010 03:32 xSynthesis#8

Just paste the codes under the boxes.

[Only registered and activated users can see links. Click Here To Register...]

Did you see the red line on the picture?
Paste the codes right there
02/06/2010 03:42 jitus2#9
xSynthesis, It's very nice of you for several days I could not, I do not know anyone around me who knows about coding, so I am only to start, thank you.

For cons, the composition of the stones do not always disappear after you put in the object> <