Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 04:51

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

Advertisement



Help me in my C# 5533 Source

Discussion on Help me in my C# 5533 Source within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1
Received Thanks: 0
Help me in my C# 5533 Source

I've been trying to fix when red name drops gears when they get killed and blackname gets arrested
the redname player and blackname drops everything they wearing then i see lots of errors in my source window
tell me if i have something wrong in this

Quote:
Programe.cs
if (client.Entity.PKPoints > 29 && client.Entity.Dead == true)
{
foreach (var Item in client.Entity.Owner.Equipment.Objects)
{
if (Item != null)
{
//5 = LeftHand, 9 = Garment, 12 = Horse lol
if (Item.Position == 9
return;
if (Item.Position == 5)
if (Item.ID.ToString().StartsWith("105"))
return;
if (ServerBase.Kernel.Rate(35 + (int)(client.Entity.PKPoints > 99 ? 75 : 0)))
{
ushort x = client.Entity.X, y = client.Entity.Y;
Game.Map Map = ServerBase.Kernel.Maps[client.Entity.MapID];
if (Map.SelectCoordonates(ref x, ref y))
{
client.Entity.Owner.Equipment.RemoveToGround(Item.Position);
var infos = Database.ConquerItemInformation.BaseInformations[(uint)Item.ID];
Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true);
floorItem.Item = Item;
floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item;
floorItem.ItemID = (uint)Item.ID;
floorItem.MapID = client.Entity.MapID;
floorItem.MapObjType = Game.MapObjectType.Item;
floorItem.X = x;
floorItem.Y = y;
floorItem.Type = Network.GamePackets.FloorItem.DropDetain;
floorItem.OnFloor = Time32.Now;
floorItem.ItemColor = floorItem.Item.Color;
floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next;
while (Map.Npcs.ContainsKey(floorItem.UID))
floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next;
client.Entity.Owner.SendScreenSpawn(floorItem, true);
Database.DetainedItemTable.DetainItem(Item, client.Entity.Owner, client.Entity.Killer.Owner);
break;
}
}
}
}
}
if (PKPoints > 99)
{
if (client.Entity.Killer.Name != "")
ServerBase.Kernel.SendWorldMessage(new Network.GamePackets.Message(client.Entity.Name + " has been captured by " + client.Entity.Killer.Name + " and sent in jail! The world is now safer!", System.Drawing.Color.Red, Conquer_Online_Server.Network.GamePackets.Message.Talk), ServerBase.Kernel.GamePool.Values);
else
ServerBase.Kernel.SendWorldMessage(new Network.GamePackets.Message(client.Entity.Name + " has been captured and sent in jail! The world is now safer!", System.Drawing.Color.Red, Conquer_Online_Server.Network.GamePackets.Message.Talk), ServerBase.Kernel.GamePool.Values);
client.Entity.Teleport(6000, 30, 76);
}
mina1893192 is offline  
Old 04/01/2012, 02:58   #2
 
elite*gold: 20
Join Date: Jul 2007
Posts: 613
Received Thanks: 486
it must give you errors , i am sure it gives you collection modified error

you have two ways to fix this
1-Copy the Equipment items to another data holder and then do your work with it
2-make a uid list to save the uids for the items you wanna drop then foreach(uint I in uids) // drop them here
samehvan is offline  
Old 04/01/2012, 16:10   #3
 
elite*gold: 0
Join Date: Jan 2012
Posts: 164
Received Thanks: 22
that's a code not an errors , i wont be able to compile without the rest of the codes
but here
try to re-add the dlls at the source folder (this problem is so common in 5533)
if this works come back and lemme know that im awesome :P
injection illusion logic is offline  
Old 04/01/2012, 16:56   #4
 
BendOverForMe's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 18
Received Thanks: 0
im a noob in C# if you upload these files
program.cs Entity.cs and Handles.cs
im sure one of our great coders can help you

Thanks so much best regards
BendOverForMe is offline  
Reply


Similar Threads Similar Threads
Sell Source Binary v3.5, The Strongest Source in the world of private server
03/20/2011 - Conquer Online 2 Trading - 3 Replies
http://i797.photobucket.com/albums/yy253/aymanelkb er/vmwvhk.gif Wolves Private Server http://www.monsterup.com/upload/1258602276638.jpg Some Info About Source 2- Full Transalite 100% 3- Reborn ( 1 , 2 , 3 , 4) With Ninja Full work 100% 4- Plus ( +1 To +20 )
[WTS] Steam ACC - Counter Strike Source, Day of Defeat: Source und Half-Life 2: Death
12/12/2010 - Counter-Strike Trading - 1 Replies
Delete.
[Request]Black&White Source or other source for version 5065 or 5095
04/11/2009 - CO2 Private Server - 22 Replies
I need Source Black and White or from other server i wanna Start a server.. All who help me will got Pm or Gm on my server.. ________
[Release]How To Make Tq Source Work + Working Source + Server ByBass + Commands
12/08/2008 - CO2 PServer Guides & Releases - 15 Replies
1: How To Make The Server Work In fact, before other people did not just let ACC now with hi EACC Columbia landing on the settlement of the issue, and the rest is our own how to improve the content of those interested can improve the next. MY MY set and the same. INI MAP INI files and MAP with the client-to-date coverage of the account. server.dat ! And then as long as the client will be able to modify server.dat! 127.0.0.1 192.168.0.1 192.168.1.1 IP。 Please do generally use...



All times are GMT +2. The time now is 04:51.


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