Register for your free account! | Forgot your password?

Go Back   elitepvpers › MMORPGs › Conquer Online 2 › CO2 Private Server › CO2 PServer Guides & Releases
You last visited: Today at 15:03

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

Advertisement



[Release]Fixed Trading Packet

Discussion on [Release]Fixed Trading Packet within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,791
Received Thanks: 5,310
[Release]Fixed Trading Packet

Well there is a bug with the trading packet that resulted in this.

I have fixed it.
Go to packets.cs and search for
Code:
public static COPacket TradeItem(Game.Item I)
Replace that entire packet with this:
Code:
        public static COPacket TradeItem(Game.Item I)
        {
            byte[] Packet = new byte[8 + 48];
            COPacket P = new COPacket(Packet);
            P.WriteInt16((ushort)(Packet.Length - 8));
            P.WriteInt16((ushort)0x3f0);
            P.WriteInt32(I.UID);
            P.WriteInt32(I.ID);
            P.WriteInt16(I.CurDur);
            P.WriteInt16(I.MaxDur);
            P.WriteInt16(2);
            P.WriteInt16(0);
            P.WriteInt32(I.TalismanProgress);
            P.Move(0);            
            P.WriteByte((byte)I.Soc1);
            P.WriteByte((byte)I.Soc2);
            P.WriteInt16((ushort)I.Effect);
            P.WriteByte(I.Plus);
            P.WriteByte(I.Bless);
            if (I.FreeItem)
                P.WriteByte(1);
            else
                P.WriteByte(0);
            P.WriteByte(I.Enchant);
            P.Move(6);
            if (I.Locked)
                P.WriteInt16(3);
            else P.WriteInt16(0);
            P.WriteInt32((uint)I.Color);
            P.WriteInt32(I.Progress);

            return P;
        }
If you are using Immune's itemlock code than change it to this:
Code:
        public static COPacket TradeItem(Game.Item I)
        {
            byte[] Packet = new byte[8 + 48];
            COPacket P = new COPacket(Packet);
            P.WriteInt16((ushort)(Packet.Length - 8));
            P.WriteInt16((ushort)0x3f0);
            P.WriteInt32(I.UID);
            P.WriteInt32(I.ID);
            P.WriteInt16(I.CurDur);
            P.WriteInt16(I.MaxDur);
            P.WriteInt16(2);
            P.WriteInt16(0);
            P.WriteInt32(I.TalismanProgress);
            P.Move(0);            
            P.WriteByte((byte)I.Soc1);
            P.WriteByte((byte)I.Soc2);
            P.WriteInt16((ushort)I.Effect);
            P.WriteByte(I.Plus);
            P.WriteByte(I.Bless);
            if (I.FreeItem)
                P.WriteByte(1);
            else
                P.WriteByte(0);
            P.WriteByte(I.Enchant);
            P.Move(6);
            if (I.Locked == 1)
                P.WriteInt16(1);
            else P.WriteInt16(0); 
            P.WriteInt32((uint)I.Color);
            P.WriteInt32(I.Progress);

            return P;
        }
Hope this helps.
Attached Images
File Type: jpg 45860971.jpg (398.5 KB, 158 views)
File Type: jpg 45855575.jpg (473.4 KB, 153 views)
Arcо is offline  
Thanks
16 Users
Old   #2
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
Can you make it so PM's can drop things?
Decker_ is offline  
Old   #3
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,791
Received Thanks: 5,310
Quote:
Originally Posted by _Decker View Post
Can you make it so PM's can drop things?
Um, that has nothing to do with this thread, if you have a request pm it to me.
Arcо is offline  
Thanks
1 User
Old   #4
 
elite*gold: 0
Join Date: Nov 2006
Posts: 65
Received Thanks: 2
i have this error: if (I.Locked == 1)

Operator '==' cannot be applied to operands of type "bool" and "int"


#EDITED

got it to work. i changed: if (I.Locked == 1) back to if (I.Locked)
killerbee is offline  
Old   #5
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,791
Received Thanks: 5,310
Quote:
Originally Posted by killerbee View Post
i have this error: if (I.Locked == 1)

Operator '==' cannot be applied to operands of type "bool" and "int"
Please read the instructions on how to use this packet.
Arcо is offline  
Thanks
1 User
Old   #6
 
elite*gold: 0
Join Date: Mar 2008
Posts: 83
Received Thanks: 10
Thanksss!!!!!
dextercsar is offline  
Old   #7
 
elite*gold: 0
Join Date: Dec 2007
Posts: 1,326
Received Thanks: 539
another great release from a great person keep it up .Arco +k
[GM] is offline  
Old   #8
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
Thanks Acro.
~Yuki~ is offline  
Old   #9
 
StarEvaAfta!~'s Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 180
Received Thanks: 82
Great release +k
StarEvaAfta!~ is offline  
Old   #10
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
I get 62 errors :S
Decker_ is offline  
Old   #11
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,791
Received Thanks: 5,310
Quote:
Originally Posted by _Decker View Post
I get 62 errors :S
Cause you probably added it wrong.

What did you do?
Arcо is offline  
Thanks
1 User
Old   #12
 
elite*gold: 0
Join Date: Jan 2010
Posts: 54
Received Thanks: 6
Arco good work! he had the bug on my server .. it is correct thanks to you now, thank you!
(Sorry for my bad English)
jitus2 is offline  
Old   #13
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,791
Received Thanks: 5,310
Quote:
Originally Posted by jitus2 View Post
Arco good work! he had the bug on my server .. it is correct thanks to you now, thank you!
(Sorry for my bad English)
No problem.
Glad to help.
Arcо is offline  
Old   #14
 
salem rey's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 275
Received Thanks: 43
If this work i will give you a thanks, but all your works i think worked
salem rey is offline  
Old   #15
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
Quote:
Originally Posted by .Arco View Post
Cause you probably added it wrong.

What did you do?
I did everything you said.
I replaced the first code with the second code.
Decker_ is offline  
Reply


Similar Threads Similar Threads
[Release] Fixed Pet Heals
06/21/2013 - Mabinogi Hacks, Bots, Cheats & Exploits - 37 Replies
If your like me and live outside the US and as such have a higher ping time that stops your pets from effectively using all 5 charges of heal when they heal you then you might want to try these replacement AI scripts for the pets. http://www.yukitsuki.com/downloads/fixed_pet_heal s.zip Each pet's heal script has been changed from: to
[RELEASE]Fixed PKJailSystem
10/01/2010 - CO2 PServer Guides & Releases - 3 Replies
The previous PKJaiLSystem, was not working. Here is a fixed one. If you got the other use this: search for (in character.cs): public void Revive(bool Tele) remove:
[RELEASE]Fixed GW :P
10/01/2010 - CO2 PServer Guides & Releases - 6 Replies
Hello ElitePvpers I will release my gw npc, wich should work, so peoples cant keep claim the prize. This is for the 5165Source by Tanel. First replace your GWNPC with this: #region GWArenaNPC case 380: { if (Control == 0) {
[Release]Fixed AddStallItem packet
09/13/2010 - CO2 PServer Guides & Releases - 6 Replies
The bug is that you can't see the second socket of the item in any stall. (5165) The fix is: go to packets.cs and search for: public static COPacket AddStallItem(Game.Item I, Features.PersonalShops.ItemValue Val, uint StallID) replace the packet with :
[Fixed Release]EXP pot
10/25/2008 - CO2 Private Server - 9 Replies
*REMOVED* cuz keving15 asked me to O.O



All times are GMT +1. The time now is 15:04.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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