Need help with this pls...

12/21/2010 05:57 marlyandedsel#1
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.
12/21/2010 11:48 Korvacs#2
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.
12/21/2010 13:56 marlyandedsel#3
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