Register for your free account! | Forgot your password?

You last visited: Today at 15:39

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

Advertisement



[QUESTION] This code

Discussion on [QUESTION] This code within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 20
Join Date: May 2008
Posts: 1,103
Received Thanks: 254
[QUESTION] This code

Anyone see anything wrong with this code here?
HTML Code:
        public static void SurroundDroppedItems(Character Me, bool Check)
        {
            foreach (DictionaryEntry DE in DroppedItems.AllDroppedItems)
            {
                DroppedItem item = (DroppedItem)DE.Value;

                if (item.Map == Me.LocMap)
                    if (MyMath.CanSee(Me.LocX, Me.LocY, item.X, item.Y))
                        if (!MyMath.CanSee(Me.PrevX, Me.PrevY, item.X, item.Y) || Check == false)
                        {
                            Me.MyClient.SendPacket(General.MyPackets.ItemDrop(item.UID, item.ItemId, item.X, item.Y));
                        }
            }
        }
Pete1990 is offline  
Old 07/14/2009, 18:40   #2
 
danielachraf's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 958
Received Thanks: 494
nothing wrong
danielachraf is offline  
Old 07/14/2009, 18:41   #3
 
elite*gold: 20
Join Date: May 2008
Posts: 1,103
Received Thanks: 254
on my source i keep geting an error im upload the error when i find it again
Pete1990 is offline  
Old 07/14/2009, 18:50   #4
 
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
Maybe its where you have it
f0am is offline  
Old 07/14/2009, 18:52   #5
 
danielachraf's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 958
Received Thanks: 494
Quote:
Originally Posted by f0am View Post
Maybe its where you have it
World.cs
danielachraf is offline  
Old 07/16/2009, 12:31   #6
 
elite*gold: 0
Join Date: May 2009
Posts: 56
Received Thanks: 4
uhmmm.. pete did you code your source? or not really the whole of it?
pajar22 is offline  
Old 07/16/2009, 15:07   #7
 
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
Quote:
Originally Posted by pajar22 View Post
uhmmm.. pete did you code your source? or not really the whole of it?
Its LOTF his coders just edited it, i already spoke with his coders lol.
f0am is offline  
Old 07/17/2009, 08:23   #8
 
elite*gold: 0
Join Date: May 2009
Posts: 56
Received Thanks: 4
ohhh ok.. lol. well it seems like there are lots of bug in his source now.. foam are you in his team? do you have your own pserver? i want a good 5017 to play lol..
pajar22 is offline  
Old 07/17/2009, 08:31   #9
 
elite*gold: 0
Join Date: Jul 2009
Posts: 548
Received Thanks: 52
Ehh,, for the last and final time everyone

IM IN NANOCO team. and my private own.

I'm not in petes, acros, legends, or anyone elses.. I AM IN NanoCO and my own private one
f0am is offline  
Old 07/17/2009, 08:35   #10
 
elite*gold: 0
Join Date: May 2009
Posts: 56
Received Thanks: 4
is it 5017 or coemu? can you give me your site? i want to join lol
pajar22 is offline  
Old 07/17/2009, 08:40   #11
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
It's not thread safe.

If another thread is modifying that hashtable(IE: Adding/Removing something to/from it) while you're looping through it on that thread, you're going to get ****-****** by .NET.

Have fun fixing that, as I know (most likely) no one has or will fix that on LOTF.

Either that or there's other ****** code in there, which is likely.
Dump the error here and I'll tell you if it's because it's not thread-safe.
_tao4229_ is offline  
Old 07/18/2009, 05:56   #12
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Quote:
Originally Posted by f0am View Post
Ehh,, for the last and final time everyone

IM IN NANOCO team. and my private own.

I'm not in petes, acros, legends, or anyone elses.. I AM IN NanoCO and my own private one
who are you 0.0
hunterman01 is offline  
Old 07/18/2009, 06:38   #13
 
elite*gold: 20
Join Date: May 2008
Posts: 1,103
Received Thanks: 254
that would be fail lol
Pete1990 is offline  
Reply


Similar Threads Similar Threads
Question about a code (5165)
08/23/2010 - CO2 Private Server - 3 Replies
SERVER 5165 LOTF Well, what this npc is suppose to do in order is: Check if you have 50k cps or more, check if you are level 130 or more, check if you are level 137 or less (so check if your between level 130-137 and also checks if you have 50k or more cps). If true, the npc takes away 50k cps from your inventory, and adds a level and broadcasts that you bought a lvl. Otherwise, it gives an error message. But I'm getting 2 errors on the line where "else" is which are "Invalid Expression...
Question how is this Color Code
06/22/2010 - Cabal Online - 17 Replies
Hey @ all i hope anyone can help me i search the $...# Color code from this picture: http://img3.imagebanana.com/img/08ihe4dq/Colorhmm .png Garamiles
[question]mob code IDs
03/27/2010 - CO2 Private Server - 11 Replies
i know it sounds real nubbish, but does anyone have a mob code list? i used to have one, but not anymore. i used #search, couldn't find it either.
[Question] code for HeavenBlessing??
12/10/2008 - CO2 Private Server - 2 Replies
hi someone have the code or a link for HeavenBlessing`??



All times are GMT +2. The time now is 15:39.


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.