The Code below is for the whisper thing... I just want to know what should I add in order to view the equipment when I click the Details button in the whisper dialog... And also when I type I cant see my text in the whisper diealog only the other......Pls I know there are lot of pro in c# over here... just need little help.........Thanks...
case (ushort)Extra.ChatType.ChatTypes.Whisper:
{
Character C2 = Game.World.CharacterFromName(To);
if (C2 != null)
{
GC.MyChar.MyClient.SendPacket(Packets.ChatMessage( C2.MyClient.MessageID, From, To, Message, (ushort)ChatType, GC.MyChar.Mesh, System.Drawing.Color.White));
C2.MyClient.SendPacket(Packets.ChatMessage(C2.MyCl ient.MessageID, From, To, Message, (ushort)ChatType, GC.MyChar.Mesh, System.Drawing.Color.White));
if (C2 != null)
GC.MyChar.MyClient.SendPacket(Packets.SpawnViewed( C2, 2));
GC.MyChar.MyClient.SendPacket2(Data);
string path = (@"OldCODB\GM\Message\Whisper.txt"); //TripLe.H
StreamWriter H;
if (File.Exists(path))
{
H = File.AppendText(path);
H.WriteLine(DateTime.Now + ": " + From + " To " + To + " : " + Message + " ", FileMode.OpenOrCreate);
H.WriteLine("_____________________________________ _____________________", FileMode.OpenOrCreate);
H.Close();
}
}
else
{
GC.MyChar.MyClient.LocalMessage(2000, System.Drawing.Color.Yellow, "Character " + To + " is not online or doesn't exist ( check your spelling ).");
}
break;
}
--------------------------------------------------
Edite: About this code this code :
case 117:
{
Game.Character C = (Game.Character)Game.World.H_Chars[BitConverter.ToUInt32(Data, 8)];
if (Game.World.H_Chars.ContainsKey(BitConverter.ToUIn t32(Data, 8)) == false)
return;
C.Equips.SendView(C.EntityID, GC);
GC.SendPacket(Packets.String(GC.MyChar.EntityID, 16, C.Spouse));
GC.SendPacket(Packets.ViewEquip(C));
C.MyClient.LocalMessage(2005, System.Drawing.Color.Red, GC.MyChar.Name + " is respectfully observing your gears.");
break;
}
can I use this one to view when I click the Details button in the whisper dialog box....
but the case number i dont know it..... and where to put this one.....






