Try using the player's objectID, or just don't set any.
Im testing the NotificationPacket shit but cant get it to work since I dont really know what its the ObjectId i should provide.
That seems to not work..Code:foreach (var i in RealmManager.Clients.Values.ToArray()) { i.SendPacket(new NotificationPacket() { Color = new ARGB(0xffff00ff), ObjectId = ??, Text = "test" }); }
If someone can give me any tip...
Thanks
Last edited by alvaritos; 07-24-2013 at 03:49 PM.
its the objectId which shows the notification.
so it can be any object of the game..
I've tried this
But no success.Code:i.SendPacket(new NotificationPacket() { Color = new ARGB(0xffff00ff), Text = "test", });
- The color is a signed integer which represents an RGB value.
- The objectId tells the client where it should show the notification; if you want it above your head use our own objectId, but it can be an enemy, a bag or any object of the game.
- The text must be a JSON with a valid key.
The color is probably wrong, you did not specify an objectId and your text is invalid. What do you expect to happen?