[request]CoEmu help

07/10/2009 00:58 taylor2846#1
OK i dont no how to us what you got so it will tarn my armor black.. but it will not stay black if i drop it on the ground it will go back normail color or if i relogin it will go back to its normail color

here is the code i am using
Quote:
case 723584://BlackTulip
{
if (CSocket.Client.Equipment.ContainsKey(3))
{
Struct.ItemInfo itm = CSocket.Client.Equipment[3];
CSocket.Send(ConquerPacket.ItemInfo(itm.UID,itm.It emID, itm.Plus, itm.Bless, itm.Enchant, itm.Soc1, itm.Soc2, itm.Dura, itm.MaxDura, itm.Position, 2));
Database.Database.UpdateItem(Item);
CSocket.Send(ConquerPacket.ItemUsage(itm.ItemID, 255, Struct.ItemUsage.RemoveItem));
CSocket.Send(ConquerPacket.ItemInfo(itm.UID, itm.ItemID, itm.Plus, itm.Bless, itm.Enchant, itm.Soc1, itm.Soc2, itm.Dura, itm.MaxDura, itm.Position, 2));
ItemUpdate(itm.UID, itm.ItemID, itm.Plus, itm.Bless, itm.Enchant, itm.Soc1, itm.Soc2, itm.Dura, itm.MaxDura, 3, 2);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "Your Armor is now black!", Struct.ChatType.Top));
}
else
{
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "you Do not have armor on!", Struct.ChatType.Top));
Delete = false;
}
break;
}
a lil bit of random stuff in in it from my trying to get it to work :( plz help me
07/10/2009 01:40 n0mansland#2
Like change what the sockets, bla, bla without unequipping?

No probably not but you may be able to do it in MySQL...

Why anyway?
07/10/2009 01:45 taylor2846#3
for BlackTulip need to edit item color to 2 so it will tarn armor black
07/10/2009 01:47 n0mansland#4
If you need to just change the color then in the command

Code:
/item BLA 9 2 12 7 255 [B]3[/B]
Change the 3 to a different number and the color will be changed

Sorry didn't understand what you were asking until you changed first post..
07/10/2009 01:52 taylor2846#5
i no that!! i want to add BlackTulip if i find out how il post it in my put it [r]item forms
07/10/2009 01:59 kinshi88#6
Send the Item Info packet, with subtype 3.

Code:
        public static byte[] ItemUpdate(int UID, int itemid, int Plus, int Minus, int Enchant, int soc1, int soc2, int currentdura, int maxdura, int Location, int Color, int Effect, int Free, int Progress, int Suspicious, int Locked)
        {
            PacketBuilder Packet = new PacketBuilder(1008, 48);
            Packet.Long(UID);
            Packet.Long(itemid);
            Packet.Int(1);
            Packet.Int(1);
            Packet.Int(1);
            Packet.Int(1);
            Packet.Short(3); // [B]SUBTYPE[/B]
            Packet.Int(Location);
            Packet.Long(0);
            Packet.Int(Effect);
            Packet.Int(soc1);
            Packet.Int(soc2);
            Packet.Short(2);
            Packet.Int(Plus);
            Packet.Int(Minus);
            Packet.Int(Free);
            Packet.Long(Enchant);
            Packet.Int(0);
            Packet.Short(Suspicious);
            Packet.Short(Locked);
            Packet.Long(Color);
            Packet.Long(Progress);
            return Packet.getFinal();
        }
07/10/2009 17:12 taylor2846#7
::Edit::