Register for your free account! | Forgot your password?

You last visited: Today at 17:26

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

Advertisement



[Release]Fixed AddStallItem packet

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

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
[Release]Fixed AddStallItem packet

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:

Code:
        public static COPacket AddStallItem(Game.Item I, Features.PersonalShops.ItemValue Val, uint StallID)
replace the packet with :

Code:
public static COPacket AddStallItem(Game.Item I, Features.PersonalShops.ItemValue Val, uint StallID)
        {
            byte[] Packet = new byte[8 + 56];
            COPacket P = new COPacket(Packet);
            P.WriteInt16((ushort)(Packet.Length - 8));
            P.WriteInt16((ushort)0x454);            
            P.WriteInt32(I.UID);
            P.WriteInt32(StallID);
            P.WriteInt32(Val.Value);
            P.WriteInt32(I.ID);
            P.WriteInt16(I.CurDur);
            P.WriteInt16(I.MaxDur);
            P.WriteInt32(Val.MoneyType);
            P.WriteInt32(0);
            P.WriteByte((byte)I.Soc1);
            P.WriteByte((byte)I.Soc2);
            P.WriteInt16((ushort)I.Effect);
            P.WriteByte(I.Plus);
            P.WriteInt16(I.Bless);
            P.WriteByte(I.Enchant);
            P.WriteInt32(I.TalismanProgress);
            P.Move(4);
            P.WriteInt32((uint)I.Color);
            P.WriteInt32(I.Progress);   

            return P;
        }
+Thanks to me for this fix
ryuchetval is offline  
Thanks
3 Users
Old 09/13/2010, 12:11   #2
 
elite*gold: 0
Join Date: Aug 2010
Posts: 452
Received Thanks: 75
oh so u released it anyway.

Anyways this is useful.
dowhatuwant is offline  
Old 09/13/2010, 16:08   #3
 
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
hope this is helpfull...it's been a long time and nobody fixed it (i think)

btw this is for 5165 ini source (Tanel's)
ryuchetval is offline  
Old 09/13/2010, 17:41   #4
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,785
Received Thanks: 5,304
So you ask for help, and when someone gives you the answer you release it?
Und also, instead of P.WriteInt32(0); you can just do P.Move(4);
Arcо is offline  
Old 09/13/2010, 18:20   #5
 
elite*gold: 0
Join Date: Feb 2009
Posts: 262
Received Thanks: 161
work 100%
Code:
        public static byte[] AddStallItem(Game.Item I, Features.PersonalShops.ItemValue Val, uint StallID)
        {
            byte[] Packet = new byte[8 + 56];
            COPacket P = new COPacket(Packet);
            P.WriteUshortAddPos2((ushort)(Packet.Length - 8));
            P.WriteUshortAddPos2((ushort)0x454);
            P.WriteUintAddPos4(I.UID);
            P.WriteUintAddPos4(StallID);
            P.WriteUintAddPos4(Val.Value);
            P.WriteUintAddPos4(I.ID);
            P.WriteUshortAddPos2(I.CurDur);
            P.WriteUshortAddPos2(I.MaxDur);
            P.WriteUintAddPos4(Val.MoneyType);
            P.WriteUintAddPos4(0);
            P.WriteByteAddPos1((byte)I.Soc1);
            P.WriteByteAddPos1((byte)I.Soc2);
            P.WriteUshortAddPos2((ushort)I.Effect);
            P.WriteByteAddPos1(I.Plus);
            P.WriteByteAddPos1(I.Bless);
            if (I.FreeItem)
                P.WriteByteAddPos1(1);
            else
                P.WriteByteAddPos1(0);
            P.WriteByteAddPos1(I.Enchant);
            P.WriteUintAddPos4(I.TalismanProgress);
            P.WriteUshortAddPos2(0);
            P.WriteUintAddPos4(0);
            if (I.Locked == 1)
                P.WriteUshortAddPos2(1);
            else if (I.Locked == 2)
                P.WriteUshortAddPos2(1);
            else
                P.WriteUshortAddPos2(0);
            P.WriteUintAddPos4((uint)I.Color);
            P.WriteUintAddPos4(I.Progress);

            return P.AddTQServer8Byte();
        }
teroareboss1 is offline  
Thanks
4 Users
Old 09/13/2010, 19:01   #6
 
elite*gold: 0
Join Date: Aug 2010
Posts: 452
Received Thanks: 75
Quote:
Originally Posted by Аrco View Post
So you ask for help, and when someone gives you the answer you release it?
Und also, instead of P.WriteInt32(0); you can just do P.Move(4);
korvacs asked him to release it, else korvacs would do it.
so i think it dosnt matter
dowhatuwant is offline  
Old 09/13/2010, 19:42   #7
 
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
Quote:
Originally Posted by teroareboss1 View Post
work 100%
Code:
        public static byte[] AddStallItem(Game.Item I, Features.PersonalShops.ItemValue Val, uint StallID)
        {
            byte[] Packet = new byte[8 + 56];
            COPacket P = new COPacket(Packet);
            P.WriteUshortAddPos2((ushort)(Packet.Length - 8));
            P.WriteUshortAddPos2((ushort)0x454);
            P.WriteUintAddPos4(I.UID);
            P.WriteUintAddPos4(StallID);
            P.WriteUintAddPos4(Val.Value);
            P.WriteUintAddPos4(I.ID);
            P.WriteUshortAddPos2(I.CurDur);
            P.WriteUshortAddPos2(I.MaxDur);
            P.WriteUintAddPos4(Val.MoneyType);
            P.WriteUintAddPos4(0);
            P.WriteByteAddPos1((byte)I.Soc1);
            P.WriteByteAddPos1((byte)I.Soc2);
            P.WriteUshortAddPos2((ushort)I.Effect);
            P.WriteByteAddPos1(I.Plus);
            P.WriteByteAddPos1(I.Bless);
            if (I.FreeItem)
                P.WriteByteAddPos1(1);
            else
                P.WriteByteAddPos1(0);
            P.WriteByteAddPos1(I.Enchant);
            P.WriteUintAddPos4(I.TalismanProgress);
            P.WriteUshortAddPos2(0);
            P.WriteUintAddPos4(0);
            if (I.Locked == 1)
                P.WriteUshortAddPos2(1);
            else if (I.Locked == 2)
                P.WriteUshortAddPos2(1);
            else
                P.WriteUshortAddPos2(0);
            P.WriteUintAddPos4((uint)I.Color);
            P.WriteUintAddPos4(I.Progress);

            return P.AddTQServer8Byte();
        }
You can't add a locked/free item in the stall...o.O are you crazy?

@Arco...the packet is the one from the source...the 3 modifications are made by me...Korvacs only tried to give ideeas (maybe he made me fix it or not)
ryuchetval 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 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 Trading Packet
02/18/2010 - CO2 PServer Guides & Releases - 29 Replies
Well there is a bug with the trading packet that resulted in this. http://www.elitepvpers.com/forum/co2-pserver-discu ssions-questions/435266-trading-bug.html I have fixed it. Go to packets.cs and search for public static COPacket TradeItem(Game.Item I) Replace that entire packet with this: public static COPacket TradeItem(Game.Item I) { byte Packet = new byte; COPacket P = new COPacket(Packet);
[Release]FIXED MARRIAGE
10/29/2008 - CO2 Private Server - 15 Replies
Sorry for my first post .This release may help you .. FIXED DIVORCE O.O' Ok , Let's go. Search in Client.cs for : if (CurrentNPC == 390) { if (MyChar.Spouse == "" || MyChar.Spouse == "None") {
[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:27.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.