Example #1
0
        public void method_4()
        {
            RoomAdvertisement @class = GoldTree.GetGame().GetAdvertisementManager().method_1();

            this.Response.Init(258);
            if (@class == null)
            {
                this.Response.AppendStringWithBreak("");
                this.Response.AppendStringWithBreak("");
            }
            else
            {
                this.Response.AppendStringWithBreak(@class.string_0);
                this.Response.AppendStringWithBreak(@class.string_1);
                @class.method_0();
            }
            this.method_3();
        }
Example #2
0
        public void GetAdvertisement()
        {
            RoomAdvertisement randomRoomAdvertisement = PhoenixEnvironment.GetGame().GetAdvertisementManager().GetRandomRoomAdvertisement();

            this.Response.Init(258);
            if (randomRoomAdvertisement == null)
            {
                this.Response.AppendStringWithBreak("");
                this.Response.AppendStringWithBreak("");
            }
            else
            {
                this.Response.AppendStringWithBreak(randomRoomAdvertisement.AdImage);
                this.Response.AppendStringWithBreak(randomRoomAdvertisement.AdLink);
                randomRoomAdvertisement.OnView();
            }
            this.SendResponse();
        }