BcStorm users get kicked from room when pets are in room

Results 1 to 7 of 7
  1. #1
    Banned Habp is offline
    BannedRank
    Mar 2012 Join Date
    TCPOELocation
    208Posts

    BcStorm users get kicked from room when pets are in room

    Hey..
    today my BcStorm emulator gets users kickd when there are some pets in the room..
    here is the thread error

    Error in thread Room cycle task for room 93:
    TokenID: 0System.NullReferenceException: Object reference not set to an instance of an object.
    at Butterfly.HabboHotel.Rooms.RoomUser.Chat(GameClient Session, String Message, Boolean Shout, Int32 TextColor) in c:\Users\Administrator\Desktop\EMU\Emulator\Butterfly\HabboHotel\Rooms\RoomUser.cs:line 183
    at Butterfly.HabboHotel.RoomBots.PetBot.OnTimerTick() in c:\Users\Administrator\Desktop\EMU\Emulator\Butterfly\HabboHotel\RoomBots\PetBot.cs:line 55
    at Butterfly.HabboHotel.Rooms.RoomUserManager.OnCycle(Int32& idleCount) in c:\Users\Administrator\Desktop\EMU\Emulator\Butterfly\HabboHotel\Rooms\RoomUserManager.cs:line 624
    at Butterfly.HabboHotel.Rooms.Room.ProcessRoom() in c:\Users\Administrator\Desktop\EMU\Emulator\Butterfly\HabboHotel\Rooms\Room.cs:line 739


  2. #2
    Valued Member Wox12 is offline
    MemberRank
    Jul 2012 Join Date
    101Posts

    Re: BcStorm users get kicked from room when pets are in room

    Have this shit too....

  3. #3
    [̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅] leenster is offline
    MemberRank
    May 2008 Join Date
    KanaadaLocation
    992Posts

    BcStorm users get kicked from room when pets are in room

    This has to do with the staff speech bubble fix.

    Try to find the code that you or someone added for the staff speech bubble fix from a thread here on rz and move the } that is above the fixed(added) code to underneath the added code.

    Sorry I would show an example but I'm on my way to work.

    Sent from my BlackBerry 9800 using Tapatalk
    Last edited by leenster; 29-01-13 at 06:41 PM.

  4. #4
    Banned Habp is offline
    BannedRank
    Mar 2012 Join Date
    TCPOELocation
    208Posts

    Re: BcStorm users get kicked from room when pets are in room

    Quote Originally Posted by leenster View Post
    This has to do with the staff speech bubble fix.

    Try to find the code that you or someone added for the staff speech bubble fix from a thread here on rz and move the } that is above the fixed(added) code to underneath the added code.

    Sorry I would show an example but I'm on my way to work.

    Sent from my BlackBerry 9800 using Tapatalk
    This is the code i got on roomusers.cs
    internal void Chat(GameClient Session, string Message, bool Shout, int TextColor = 0)
    {
    if (TextColor == 0 && Session.GetHabbo().Rank > 4)
    {
    TextColor = 2; // 1 = Users and Pets Respect, 2 = Bots.
    }
    if (((Session == null) || (Session.GetHabbo().Rank >= 5)) || !this.GetRoom().RoomMuted)
    {
    this.Unidle();
    if (!this.IsPet && !this.IsBot)
    {
    Like this?
    internal void Chat(GameClient Session, string Message, bool Shout, int TextColor = 0)
    if (TextColor == 0 && Session.GetHabbo().Rank > 4)
    {
    TextColor = 2; // 1 = Users and Pets Respect, 2 = Bots.
    }
    if (((Session == null) || (Session.GetHabbo().Rank >= 5)) || !this.GetRoom().RoomMuted)
    {
    this.Unidle();
    if (!this.IsPet && !this.IsBot)
    {

  5. #5
    Banned V for Vendetta is offline
    BannedRank
    Feb 2007 Join Date
    1,809Posts

    Re: BcStorm users get kicked from room when pets are in room

    I'd rather prefer you to unable things that makes your emulator cause problems and stuff.

  6. #6
    [̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅] leenster is offline
    MemberRank
    May 2008 Join Date
    KanaadaLocation
    992Posts

    BcStorm users get kicked from room when pets are in room

    Quote Originally Posted by Habp View Post
    This is the code i got on roomusers.cs

    Like this?
    No yours is a little different than mine but

    Take if(textcolor.....){....} And put it after if(!pet.....){


    Try that.

    Sent from my BlackBerry 9800 using Tapatalk

  7. #7
    Banned Habp is offline
    BannedRank
    Mar 2012 Join Date
    TCPOELocation
    208Posts

    Re: BcStorm users get kicked from room when pets are in room

    Quote Originally Posted by leenster View Post
    No yours is a little different than mine but

    Take if(textcolor.....){....} And put it after if(!pet.....){


    Try that.

    Sent from my BlackBerry 9800 using Tapatalk
    still won't work, can't you give me your code when ur back home?
    would be very nice



Advertisement