Example #1
0
 private void method_42(RoomUser RoomUser_1, ThreeDCoord gstruct1_1, uint uint_2, double double_3)
 {
     ServerMessage Message = new ServerMessage();
     Message.Init(Outgoing.ObjectOnRoller); // Update
     Message.AppendInt32(RoomUser_1.X);
     Message.AppendInt32(RoomUser_1.Y);
     Message.AppendInt32(gstruct1_1.x);
     Message.AppendInt32(gstruct1_1.y);
     Message.AppendInt32(0);
     Message.AppendUInt(uint_2);
     //  Message.AppendString("J");
     Message.AppendInt32(2);
     Message.AppendInt32(RoomUser_1.VirtualId);
     Message.AppendStringWithBreak(RoomUser_1.double_0.ToString().Replace(',', '.'));
     Message.AppendStringWithBreak(double_3.ToString().Replace(',', '.'));
     //  Message.AppendInt32(0);
     this.SendMessage(Message, null);
     this.byte_0[RoomUser_1.X, RoomUser_1.Y] = 1;
     RoomUser_1.X = gstruct1_1.x;
     RoomUser_1.Y = gstruct1_1.y;
     RoomUser_1.double_0 = double_3;
     RoomUser_1.int_12 = gstruct1_1.x;
     RoomUser_1.int_13 = gstruct1_1.y;
     RoomUser_1.double_1 = double_3;
     RoomUser_1.int_9 = 2;
     this.byte_0[RoomUser_1.X, RoomUser_1.Y] = 0;
     this.method_87(RoomUser_1, false, true);
 }
Example #2
0
		public void SendNotification(string message, int int_0)
		{
            if (this != null && this.GetConnection() != null)
            {
                ServerMessage nMessage = new ServerMessage();
                switch (int_0)
                {
                    case 1:
                        nMessage.Init(Outgoing.BroadcastMessage);
                        nMessage.AppendStringWithBreak(message);
                        nMessage.AppendStringWithBreak("");
                        break;
                    case 2:
                        nMessage.Init(Outgoing.SetCommandsView);
                        nMessage.AppendUInt(1);
                        nMessage.AppendStringWithBreak(message);
                        break;
                    default:
                        nMessage.Init(Outgoing.BroadcastMessage);
                        nMessage.AppendStringWithBreak(message);
                        nMessage.AppendStringWithBreak("");
                        break;
                }
                this.GetConnection().SendMessage(nMessage);
            }
		}
Example #3
0
 internal void method_40(RoomItem RoomItem_0, int int_17, int int_18, uint uint_2, double double_3)
 {
     ServerMessage Message = new ServerMessage();
     Message.Init(Outgoing.ObjectOnRoller); // Update
     Message.AppendInt32(RoomItem_0.GetX);
     Message.AppendInt32(RoomItem_0.Int32_1);
     Message.AppendInt32(int_17);
     Message.AppendInt32(int_18);
     Message.AppendInt32(1);
     Message.AppendUInt(RoomItem_0.uint_0);
     Message.AppendStringWithBreak(RoomItem_0.Double_0.ToString().Replace(',', '.'));
     Message.AppendStringWithBreak(double_3.ToString().Replace(',', '.'));
     Message.AppendUInt(uint_2);
     this.SendMessage(Message, null);
     this.method_81(RoomItem_0, int_17, int_18, double_3);
 }
Example #4
0
        internal void UpdateState(bool bool_5, bool bool_6, bool adsBackground = false)
        {
            if (bool_5)
            {
                this.GetRoom().method_80(this);
            }
            /*if (adsBackground)
            {
                ServerMessage Message = new ServerMessage();
                Message.Init(Outgoing.ObjectDataUpdate); // Update
                Message.AppendStringWithBreak(this.uint_0.ToString());
                Message.AppendInt32(0);
                Message.AppendInt32(1);
                Message.AppendStringWithBreak(this.ExtraData);
            }
                */
            if (bool_6)
            {
                ServerMessage Message = new ServerMessage();
                if (this.Boolean_2)
                {
                    Message.Init(Outgoing.ObjectDataUpdate); // Update
                    Message.AppendStringWithBreak(this.uint_0.ToString());
                    if (this.GetBaseItem().Name == "ads_mpu_720" || this.GetBaseItem().Name == "ads_background" || this.GetBaseItem().Name == "ads_mpu_300" || this.GetBaseItem().Name == "ads_mpu_160")
                    {
                        Message.AppendInt32(0);
                        Message.AppendInt32(1);
                        if (ExtraData != "")
                        {
                            Message.AppendInt32(ExtraData.Split(Convert.ToChar(9)).Length / 2);

                            for (int i = 0; i <= ExtraData.Split(Convert.ToChar(9)).Length - 1; i++)
                            {
                                Message.AppendString(ExtraData.Split(Convert.ToChar(9))[i]);
                            }
                        }
                        else
                        {
                            Message.AppendInt32(0);
                        }

                    }
                    else if (this.GetBaseItem().InteractionType == "mannequin")
                    {
                        if (this.ExtraData.Contains((char)5))
                        {
                            Message.AppendInt32(1);
                            Message.AppendInt32(3);
                            Message.AppendString("GENDER");
                            Message.AppendString(this.ExtraData.Split((char)5)[1]);
                            Message.AppendString("FIGURE");
                            Message.AppendString(this.ExtraData.Split((char)5)[0]);
                            Message.AppendString("OUTFIT_NAME");
                            Message.AppendString(this.ExtraData.Split((char)5)[2]);
                        }
                        else
                        {
                            Message.AppendInt32(1);
                            Message.AppendInt32(3);
                            Message.AppendString("GENDER");
                            Message.AppendString("M");
                            Message.AppendString("FIGURE");
                            Message.AppendString("ch-3015-1430.lg-275-110.hd-209-1379.hr-3163-45");
                            Message.AppendString("OUTFIT_NAME");
                            Message.AppendString("Rootkit");
                        }
                    }
                    else if (this.GetBaseItem().InteractionType == "badgedisplay")
                    {
                        Message.AppendInt32(0);
                        Message.AppendInt32(2);
                        Message.AppendInt32(4);
                        Message.AppendString("0");
                        Message.AppendString(this.ExtraData);
                        Message.AppendString("");
                        Message.AppendString("");
                    }
                    else
                    {
                        Message.AppendInt32(0);

                        Message.AppendStringWithBreak(this.ExtraData);
                    }

                }
                else
                {
                    Message.Init(Outgoing.UpdateWallItemOnRoom); // Update
                    this.Serialize(Message);
                }
                this.GetRoom().SendMessage(Message, null);
            }
        }