Realy Need To know About this

01/20/2011 13:55 marlyandedsel#1
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.....
01/20/2011 17:34 pro4never#2
When you click the view gear in the whisper box it should be the exact same as if you did the normal view gears on a character thing...

The only thing you need to double check is that you are sending the correct uids in the packet... which at a glance it looks like you are.

Note

[ code ] text [ / code ] is your friend.
01/20/2011 18:18 marlyandedsel#3
Quote:
Originally Posted by pro4never View Post
When you click the view gear in the whisper box it should be the exact same as if you did the normal view gears on a character thing...

The only thing you need to double check is that you are sending the correct uids in the packet... which at a glance it looks like you are.

Note

[ code ] text [ / code ] is your friend.
I'm sorry I really dont get it please.... just....
01/20/2011 23:21 Lateralus#4
Quote:
Originally Posted by marlyandedsel View Post
I'm sorry I really dont get it please.... just....
Just do it all for you?
01/21/2011 08:05 marlyandedsel#5
I just dont know what to do

is it like this?

case [clicking the Details button in whisper box] <----- i really dont know this portion or is it wrong?
{
viewing gears of my chat
same in normal viewing things...
breal;
}