Plus Emu R2 - Youtube TVs

Results 1 to 4 of 4
  1. #1
    Alpha Member Twan is offline
    MemberRank
    Jun 2010 Join Date
    1,961Posts

    Plus Emu R2 - Youtube TVs

    Well hello,

    I have the codes, but i dont know where to add them, here it is:
    Code:
    Sql:
    CREATE TABLE `user_playlistyoutube` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `user_id` int(11) NOT NULL,
    `videoid` varchar(20) NOT NULL,
    `titre` varchar(50) NOT NULL,
    `descri` varchar(100) NOT NULL,
    PRIMARY KEY (`id`),
    KEY `user_id` (`user_id`)
    ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED
    
    public static int GetPlaylistYoutube = 2652; //Outgoing
    public static int GetPlaylistYoutube = 3920; //Incoming
    
    
    internal void GetPlaylistYoutube()
    {
    uint ItemId = Request.PopWiredUInt();
    DataTable Ytplaylist;
    
    
    Room room = ButterflyEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId);
    if (room == null || !room.CheckRights(this.Session, true))
    return;
    
    
    using (IQueryAdapter dbClient = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
    {
    [Only registered and activated users can see links]
    dbClient.addParameter("id", room.OwnerId);
    Ytplaylist = dbClient.getTable();
    }
    int CountVideo = Ytplaylist.Rows.Count;
    
    
    if (CountVideo == 0)
    return;
    
    
    GetResponse().Init(Outgoing.GetPlaylistYoutube);
    GetResponse().AppendUInt(ItemId); // Id ITEM
    GetResponse().AppendInt32(CountVideo); // Count Video
    
    
    foreach (DataRow Row in Ytplaylist.Rows)
    {
    GetResponse().AppendStringWithBreak(Row["videoid"].ToString()); //Id Video
    GetResponse().AppendStringWithBreak(Row["titre"].ToString()); // Title
    GetResponse().AppendStringWithBreak(Row["descri"].ToString()); // desc
    }
    
    
    GetResponse().AppendStringWithBreak("La playlist de " + room.Owner ); // Text box
    SendResponse();
    }
    
    public static int PlayVideoYoutube = 48; //Outgoing
    public static int PlayVideoYoutube = 3371; //Incoming
    
    
    
    
    internal void PlayVideoYoutube()
    {
    GetResponse().Init(Outgoing.PlayVideoYoutube);
    GetResponse().AppendInt32(Request.PopWiredInt32()); // Id ITEM
    GetResponse().AppendStringWithBreak(Request.PopFixedString()); //Id VIDEO
    GetResponse().AppendInt32(0); // ???
    GetResponse().AppendInt32(0); // ???
    SendResponse();
    }
    Anybody knows where to place it?


  2. #2
    R.I.P Millercent FatalLulz is offline
    MemberRank
    Nov 2012 Join Date
    AustraliaLocation
    2,248Posts

    Re: Plus Emu R2 - Youtube TVs

    On the fixes thread someone did state (about page 10 or so) what files to add it for Butterfly so it should give you an idea where to add for Plus R2 as it's the same basically. I'll look for the page now.

  3. #3
    Alpha Member Twan is offline
    MemberRank
    Jun 2010 Join Date
    1,961Posts

    Re: Plus Emu R2 - Youtube TVs

    Couldnt find it in the thread, did you found it?

  4. #4
    Enthusiast 1ptimmaq1 is offline
    MemberRank
    Aug 2013 Join Date
    FinlandLocation
    41Posts

    Re: Plus Emu R2 - Youtube TVs

    Quote Originally Posted by Twan View Post
    Couldnt find it in the thread, did you found it?
    all the things that have //outgoing you put to serverpacketheader.cs the ones with //incoming to clientpacketheader.cs and the sql u put to ur db and the rest of stuff i think might go to rooms.cs, i tried that but with the rooms.cs part i get errors so it goes probs somewhere else, if u find out how to do this, let me know so i can do it too.



Advertisement