Fix UsersSay [Wired] (ButterStorm and others)

Results 1 to 9 of 9
  1. #1
    Enthusiast xLiionel is offline
    MemberRank
    Sep 2010 Join Date
    36Posts

    Fix UsersSay [Wired] (ButterStorm and others)

    Hey that such

    I have taken the task of reprogramming the wired says

    What happened to him?

    Well to be more than 2 wired say in the room
    One worked and the other was said to speak in public

    Well open Butterfly > HabboHotel > Rooms > Wired > Triggers > UserSay.cs


    Search the void roomUserManager_OnUserSays and remplaced with:

    Code:
    private bool roomUserManager_OnUserSays(object sender, UserSaysArgs e)
            {
                RoomUser userSaying = e.user;
                string message = e.message;
                if ((!isOwnerOnly && canBeTriggered(message)) || (isOwnerOnly && userSaying.IsOwner() && canBeTriggered(message)))
                {
                    ServerMessage servermsg = new ServerMessage();
                    servermsg.Init(Outgoing.Whisp);
                    servermsg.AppendInt32(userSaying.VirtualId);
                    servermsg.AppendStringWithBreak(message);
                    servermsg.AppendInt32(0);
                    servermsg.AppendInt32(0);
                    servermsg.AppendInt32(0);
                    servermsg.AppendInt32(-1);
                    if (userSaying.GetClient() != null)
                        userSaying.GetClient().SendMessage(servermsg);
                    handler.RequestStackHandle(item.Coordinate, null, userSaying, Games.Team.none);
                    handler.OnEvent(item.Id);
                    return true;
                }
                return false;
            }
    And search : ( in Butterfly > HabboHotel > Rooms > Delegate.cs )
    Code:
    public delegate void RoomUserSaysDelegate(object sender, UserSaysArgs e, out bool messageHandled);
    And replaced with:
    Code:
    public delegate bool RoomUserSaysDelegate(object sender, UserSaysArgs e);
    Go to room.cs and thatplace:
    Code:
    internal bool SayWired(RoomUser user, string message)
            {
                bool handled = false;
                if (OnUserSays != null)
                {
                    foreach (Delegate d in OnUserSays.GetInvocationList())
                    {
                        if (!handled && (bool)d.DynamicInvoke(null, new UserSaysArgs(user, message)))
                            handled = true;
                    }
                }
                return handled;
            }
    down
    Code:
    private void LoadBots()
    And search
    Code:
    internal bool AllowsShous(RoomUser user, string message)
    to eliminate

    Go to roomUser.cs
    Code:
    if (!IsBot)
                {
                    HybridEnvironment.GetGame().GetQuestManager().ProgressUserQuest(Session, HabboHotel.Quests.QuestType.SOCIAL_CHAT);
    }
    And replace it
    Code:
    if (!IsBot)
                {
                    HybridEnvironment.GetGame().GetQuestManager().ProgressUserQuest(Session, HabboHotel.Quests.QuestType.SOCIAL_CHAT);
     if (GetRoom().SayWired(this, Message))
                        return;
    }
    and remove this line
    Code:
    if (GetRoom() != null && !GetRoom().AllowsShous(this, Message))
                    return;
    Sorry for my bad english, i'm spanish
    I come from kekomundo :3

    Like + Rep if you like it


  2. #2
    Owner of Habbo.ac iRaged is offline
    MemberRank
    Nov 2011 Join Date
    229Posts

    Re: Fix UsersSay [Wired] (ButterStorm and others)

    Nice! I will test this out in a few minutes. Do you have any screenshots of this?

  3. #3
    Enthusiast xLiionel is offline
    MemberRank
    Sep 2010 Join Date
    36Posts

    Re: Fix UsersSay [Wired] (ButterStorm and others)

    Nope but I have a hotel; D
    Haddoz

  4. #4
    Run, but I'll find you. Ddos Attack is offline
    MemberRank
    Jan 2011 Join Date
    AustraliaLocation
    908Posts

    Re: Fix UsersSay [Wired] (ButterStorm and others)

    Great job! Could you get Wired Conditions working? ;)
    Also, from what I believe, the Wired Trigger: Repeat x seconds does not work ;s

  5. #5
    Member Andy2000 is offline
    MemberRank
    Jan 2013 Join Date
    96Posts

    Re: Fix UsersSay [Wired] (ButterStorm and others)

    All my wireds are broken.

  6. #6
    C# Developer neto737 is offline
    MemberRank
    Oct 2010 Join Date
    Environment.csLocation
    274Posts

    Re: Fix UsersSay [Wired] (ButterStorm and others)

    To BcStorm code is not this!

  7. #7
    Enthusiast xLiionel is offline
    MemberRank
    Sep 2010 Join Date
    36Posts

    Re: Fix UsersSay [Wired] (ButterStorm and others)

    Quote Originally Posted by neto737 View Post
    To BcStorm code is not this!
    What?

  8. #8
    C# Developer neto737 is offline
    MemberRank
    Oct 2010 Join Date
    Environment.csLocation
    274Posts

    Re: Fix UsersSay [Wired] (ButterStorm and others)

    Quote Originally Posted by xLiionel View Post
    What?
    BcStorm files are very different from Atom and ButterStorm!

  9. #9
    Run, but I'll find you. Ddos Attack is offline
    MemberRank
    Jan 2011 Join Date
    AustraliaLocation
    908Posts

    Re: Fix UsersSay [Wired] (ButterStorm and others)

    Yes this does not seem to be working. Its not compatible with BcStorm from the looks of it S:



Advertisement