private static void ClientGumpResponse( PacketReader p, PacketHandlerEventArgs args ) { if ( World.Player == null ) return; Serial ser = p.ReadUInt32(); uint tid = p.ReadUInt32(); int bid = p.ReadInt32(); World.Player.HasGump = false; int sc = p.ReadInt32(); if ( sc < 0 || sc > 2000 ) return; int[] switches = new int[sc]; for(int i=0;i<sc;i++) switches[i] = p.ReadInt32(); int ec = p.ReadInt32(); if ( ec < 0 || ec > 2000 ) return; GumpTextEntry[] entries = new GumpTextEntry[ec]; for(int i=0;i<ec;i++) { ushort id = p.ReadUInt16(); ushort len = p.ReadUInt16(); if ( len >= 240 ) return; string text = p.ReadUnicodeStringSafe( len ); entries[i] = new GumpTextEntry( id, text ); } if ( Macros.MacroManager.AcceptActions ) MacroManager.Action( new GumpResponseAction( bid, switches, entries ) ); }