Register for your free account! | Forgot your password?

You last visited: Today at 20:29

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[request]CoEmu help

Discussion on [request]CoEmu help within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
taylor2846's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 469
Received Thanks: 94
[request]CoEmu help

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
taylor2846 is offline  
Old 07/10/2009, 01:40   #2
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
Like change what the sockets, bla, bla without unequipping?

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

Why anyway?
n0mansland is offline  
Old 07/10/2009, 01:45   #3
 
taylor2846's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 469
Received Thanks: 94
for BlackTulip need to edit item color to 2 so it will tarn armor black
taylor2846 is offline  
Old 07/10/2009, 01:47   #4
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
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..
n0mansland is offline  
Old 07/10/2009, 01:52   #5
 
taylor2846's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 469
Received Thanks: 94
i no that!! i want to add BlackTulip if i find out how il post it in my put it [r]item forms
taylor2846 is offline  
Old 07/10/2009, 01:59   #6
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 912
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();
        }
kinshi88 is offline  
Thanks
2 Users
Old 07/10/2009, 17:12   #7
 
taylor2846's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 469
Received Thanks: 94
::Edit::
taylor2846 is offline  
Reply


Similar Threads Similar Threads
[Request]CoEmu v2
09/11/2009 - CO2 Private Server - 5 Replies
hy can anyone post here a coemu v2 source that has the xp skills on it and some npc's so that all of us can download it. I know it's a hard work to code them but many people don't know how to code ;)
[Request] CoEmu V2
07/22/2009 - CO2 Private Server - 2 Replies
can anyone give me a source of coemu v2 that have some npcs done,not sources was posted....a source that have wuxing oven,..and more because when i try to use releases i have to much erors,private message me please! I want to change items,i can do most items to works for npcs,private message me!
[request]CoEmu..Help
07/12/2009 - CO2 Private Server - 9 Replies
can someone give me the Definitions for these Calculation.GetItem Calculation.DeleteItem and help me with blacktolip. here is what i got on it case 723584://BlackTulip
[request]help {CoEmu}
07/09/2009 - CO2 Private Server - 2 Replies
ok how would i add status in on CoEmu so when you level you get the status like i no it gives the i got a ini file like lotf has with all the stat points for all classes up to level 120 but i dont no how to make CoEmu read it and give the player that much status. or is a ini file even the best way to do it if not tell me a batter way to do it and help me out with it kk.. plz help me and ty if you do
[Help/Request] CoEmu 2 FB exp level
06/17/2009 - CO2 Private Server - 3 Replies
anyone can start with on how to level the exp of FB... it'll be a reference to some of the skills exp coding... thanks



All times are GMT +2. The time now is 20:29.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.