You last visited: Today at 15:03
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.
02/16/2010, 23:47
#1
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
45860971.jpg
(398.5 KB, 158 views)
45855575.jpg
(473.4 KB, 153 views)
02/17/2010, 00:06
#2
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
Can you make it so PM's can drop things?
02/17/2010, 00:07
#3
elite*gold: 0
Join Date: Oct 2009
Posts: 8,791
Received Thanks: 5,310
Quote:
Originally Posted by
_Decker
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.
02/17/2010, 00:26
#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)
02/17/2010, 00:29
#5
elite*gold: 0
Join Date: Oct 2009
Posts: 8,791
Received Thanks: 5,310
Quote:
Originally Posted by
killerbee
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.
02/17/2010, 00:59
#6
elite*gold: 0
Join Date: Mar 2008
Posts: 83
Received Thanks: 10
Thanksss!!!!!
02/17/2010, 01:22
#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
02/17/2010, 01:36
#8
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
Thanks Acro.
02/17/2010, 01:44
#9
elite*gold: 0
Join Date: Feb 2010
Posts: 180
Received Thanks: 82
Great release +k
02/17/2010, 03:45
#10
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
I get 62 errors :S
02/17/2010, 03:46
#11
elite*gold: 0
Join Date: Oct 2009
Posts: 8,791
Received Thanks: 5,310
Quote:
Originally Posted by
_Decker
I get 62 errors :S
Cause you probably added it wrong.
What did you do?
02/17/2010, 03:51
#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)
02/17/2010, 03:52
#13
elite*gold: 0
Join Date: Oct 2009
Posts: 8,791
Received Thanks: 5,310
Quote:
Originally Posted by
jitus2
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.
02/17/2010, 03:55
#14
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
02/17/2010, 03:59
#15
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
Quote:
Originally Posted by
.Arco
Cause you probably added it wrong.
What did you do?
I did everything you said.
I replaced the first code with the second code.
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 .