Register for your free account! | Forgot your password?

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

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

Advertisement



Need help with this pls...

Discussion on Need help with this pls... within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
Need help with this pls...

foreach (Character Chaar in World.H_Chars.Values)
{
Chaar.MyClient.DialogNPC = 200005;
PacketHandling.NPCDialog.Handles(Chaar.MyClient, null, 200005, 0);
//Chaar.MyClient.EndSend();
}


the code above ganna call the DialogNPC case 200005: when activated
but the problem is all character online will see it maybe its because of
the foreach function/command, is there any other way that only
1 client can see if he will activate it? Thanks in advance.
marlyandedsel is offline  
Old 12/21/2010, 11:48   #2


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Maybe its because of the foreach function/command?

Ok lets break this down:

Foreach -> for each/for every/do for all/perform the following functions for all of these things

C# isnt an unfriendly language, most things do exactly what they say on the tin, so use your knowledge of the english language to your advantage.
Korvacs is offline  
Thanks
1 User
Old 12/21/2010, 13:56   #3
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
Quote:
Originally Posted by Korvacs View Post
Maybe its because of the foreach function/command?

Ok lets break this down:

Foreach -> for each/for every/do for all/perform the following functions for all of these things

C# isnt an unfriendly language, most things do exactly what they say on the tin, so use your knowledge of the english language to your advantage.


Thanks

problem solve herers the code


MyClient.DialogNPC = 200005;
PacketHandling.NPCDialog.Handles(MyClient, null, 200005, 0);

i just remove some of it
marlyandedsel is offline  
Reply




All times are GMT +2. The time now is 10:45.


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.