hi all, i downloaded that source [Relese]Source CoEmu V2 For All now Have Some Npc Work , coz the original dont have the trade system, and im new to c#.. but, this trade system is ALMOST working, its accept, money, cps, close, but the itens dont trade it..... when i remove the /*.... /* from the part of the code whos make the trade done, 2 errors came...
got that errors:
Error 1 The best overloaded method match for 'CoEmu_v2_GameServer.Packets.ConquerPacket.TradeIt em(uint, string)' has some invalid arguments C:\Documents and Settings\Administrador\Desktop\CoEmu v2\CoEmu v2\CoEmu v2 GameServer\PacketProcessor.cs 1871 61 CoEmu v2 GameServer
Error 2 Argument '2': cannot convert from 'CoEmu_v2_GameServer.Structs.Struct.ItemInfo' to 'string' C:\Documents and Settings\Administrador\Desktop\CoEmu v2\CoEmu v2\CoEmu v2 GameServer\PacketProcessor.cs 1871 90 CoEmu v2 GameServer
if someone use that same source and alread fix that, can help me??
sry for my english, real sry
Code:
case 6://Add an item
{
ClientSocket Who = Nano.ClientPool[(int)CSocket.Client.TradingWith];
if (Who.Client.Inventory.Count + CSocket.Client.MyTradeSideCount < 40)
{
//string Item = CSocket.Client.FindItem(UID);
Struct.ItemInfo Item = CSocket.Client.Inventory[(int)UID];
Who.Send(ConquerPacket.TradeItem(UID, Item));
//Who.MyClient.SendPacket(General.MyPackets.TradeItem(UID, Item));
CSocket.Client.MyTradeSide.Add(UID);
CSocket.Client.MyTradeSideCount++;
}
else
{
CSocket.Send(ConquerPacket.TradePacket(CSocket.Client.ID, 11));
Who.Send(ConquerPacket.TradePacket(CSocket.Client.ID, 11));
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "[Trade]Your trade partner can't hold any more items.", Struct.ChatType.Top));
}
break;
}
Error 1 The best overloaded method match for 'CoEmu_v2_GameServer.Packets.ConquerPacket.TradeIt em(uint, string)' has some invalid arguments C:\Documents and Settings\Administrador\Desktop\CoEmu v2\CoEmu v2\CoEmu v2 GameServer\PacketProcessor.cs 1871 61 CoEmu v2 GameServer
Error 2 Argument '2': cannot convert from 'CoEmu_v2_GameServer.Structs.Struct.ItemInfo' to 'string' C:\Documents and Settings\Administrador\Desktop\CoEmu v2\CoEmu v2\CoEmu v2 GameServer\PacketProcessor.cs 1871 90 CoEmu v2 GameServer
if someone use that same source and alread fix that, can help me??
sry for my english, real sry