[Question] Is There A Way To Have /eqhigh?

07/30/2010 08:51 Escapex#1
ok i didnt know this /eqlow command makes your item to a lower level take note that this is not a release

/eqlow
so anyway to make it /eqhigh?
08/01/2010 05:00 Fish*#2
can u try
Code:
if (Cmd[0] == "/eqlow")
{
for (byte i = 1; i < 9; i++)
if (i != 7)
{
Game.Item I = GC.MyChar.Equips.Get(i);
if (I.ID != 0)
{
Game.ItemIDManipulation IDM = new NewestCOServer.Game.ItemIDManipulation(I.ID);
IDM.HighestLevel(i);//try write IDM. only and find the exactly statement for it
I.ID = IDM.ToID();
GC.AddSend(Packets.AddItem(I, i));
}
}
}
edit:
Code:
                    if (Cmd[0] == "/eqlow")
                    {
                        for (byte i = 1; i < 9; i++)
                            if (i != 7)
                            {
                                Game.Item I = GC.MyChar.Equips.Get(i);
                                if (I.ID != 0)
                                {
                                    Game.ItemIDManipulation IDM = new NewestCOServer.Game.ItemIDManipulation(I.ID);
                                    IDM.IncreaseLevel();
                                    I.ID = IDM.ToID();
                                    GC.AddSend(Packets.AddItem(I, i));
                                }
                            }
                    }
08/01/2010 07:35 pro4never#3
Wow... i wrote a bunch on this lastnight but my cell hates me.


Basicly up the level/id using a while loop (checking that level and itemtype are proper) then once done remove/change the existing item with the new max level one

Quite simple really
08/01/2010 09:06 Fish*#4
The 2nd i wrote, worked :)