Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Fix UsersSay [Wired] (ButterStorm and others)

Status
Not open for further replies.
Joined
Sep 3, 2010
Messages
36
Reaction score
20
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 :junglejane:

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
 
Junior Spellweaver
Joined
Nov 27, 2011
Messages
176
Reaction score
74
Nice! I will test this out in a few minutes. Do you have any screenshots of this?
 
Run, but I'll find you.
Joined
Jan 29, 2011
Messages
777
Reaction score
327
Great job! Could you get Wired Conditions working? ;)
Also, from what I believe, the Wired Trigger: Repeat x seconds does not work ;s
 
Run, but I'll find you.
Joined
Jan 29, 2011
Messages
777
Reaction score
327
Yes this does not seem to be working. Its not compatible with BcStorm from the looks of it S:
 
Status
Not open for further replies.
Back
Top