Register for your free account! | Forgot your password?

You last visited: Today at 17:25

  • 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 02/17/2010, 04:00   #16
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by _Decker View Post
I did everything you said.
I replaced the first code with the second code.

Read the directions.
Actually read them, don't skim through it.
Arcо is offline  
Old 02/17/2010, 04:03   #17
 
elite*gold: 0
Join Date: Jan 2010
Posts: 54
Received Thanks: 6
Again thank you arco.

I still have a small display bug for certain items:



This is not very annoying, and the bug occurs only for a few rare items.
jitus2 is offline  
Old 02/17/2010, 04:06   #18
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
That's probably your client, make sure you have an itemminicon for that item.
Arcо is offline  
Thanks
2 Users
Old 02/17/2010, 04:10   #19
 
elite*gold: 0
Join Date: Jan 2010
Posts: 54
Received Thanks: 6
Agree =)
thx
I take this opportunity to ask a small question which I have great need, how can I do to change the name of an npc?
jitus2 is offline  
Old 02/17/2010, 04:34   #20
 
xScott's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 322
Received Thanks: 63
great release
xScott is offline  
Old 02/17/2010, 05:01   #21
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Good Job, SON!

jk jk, But Good release
-Shunsui- is offline  
Old 02/17/2010, 13:53   #22
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
the erro i see in my packet is

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);
            [COLOR="Red"]P.Move(2);[/COLOR]            
            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;
        }
to that

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);
            [COLOR="Red"]P.Move(0);[/COLOR]            
            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;
        }
ty and great release
ramix is offline  
Old 02/18/2010, 20:34   #23


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Code:
P.Move(0);
This can be removed completely, its meant to move the write position in the buffer forward a number of spaces, by setting it to 0 it doesnt move at all and your just giving your processor some work to do for no reason at all.
Korvacs is offline  
Old 02/18/2010, 20:41   #24
 
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
mind explaining what the bug with the original packet was?
copz1337 is offline  
Old 02/18/2010, 20:47   #25
 
elite*gold: 40
Join Date: Feb 2010
Posts: 78
Received Thanks: 17
Quote:
Originally Posted by copz1337 View Post
mind explaining what the bug with the original packet was?
The bug was that if you trade something full +12 it show it as just super not +12 or anything
ArtOfWar is offline  
Thanks
1 User
Old 02/18/2010, 22:03   #26
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
Thanks Arco, I got it working!
+k
Decker_ is offline  
Old 02/18/2010, 22:18   #27
 
elite*gold: 0
Join Date: Jul 2009
Posts: 91
Received Thanks: 28
Great Job ^^ Works perfectly!
darkdestiny54 is offline  
Old 02/18/2010, 22:36   #28
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by copz1337 View Post
mind explaining what the bug with the original packet was?
Click the link in my first post, you will see.
Arcо is offline  
Thanks
1 User
Old 02/18/2010, 22:58   #29
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
Quote:
Originally Posted by copz1337 View Post
mind explaining what the bug with the original packet was?
Example:
Let's say you trade a Super bow +12 2soc sdg, and they put it on the trade list, the other person see's it only as a super bow, not as a super +12 2soc sdg bow.

I hope I helped!
Decker_ is offline  
Old 02/18/2010, 23:19   #30
 
elite*gold: 40
Join Date: Feb 2010
Posts: 78
Received Thanks: 17
Yeah this fixed the trading perfectly thanks .Arco
ArtOfWar 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 17:26.


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.