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!

Azure Emulator 1.0 [Dev Release] - [Regularly Updated] - [Stable and Fast]

Status
Not open for further replies.
Newbie Spellweaver
Joined
Feb 27, 2015
Messages
13
Reaction score
0
Fix Commands :summon

Code:
using System;
using Azure.HabboHotel.GameClients;


namespace Azure.HabboHotel.Commands.List
{
    /// <summary>
    /// Class Summon. This class cannot be inherited.
    /// </summary>
    internal sealed class Summon : Command
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="Summon"/> class.
        /// </summary>
        public Summon()
        {
            MinRank = 7;
            Description = "Summon the selected user to where you are.";
            Usage = ":summon [USERNAME]";
            MinParams = 1;
        }


        /// <summary>
        /// Executes the specified session.
        /// </summary>
        /// <param name="session">The session.</param>
        /// <param name="pms">The PMS.</param>
        /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
        public override bool Execute(GameClient session, string[] pms)
        {


            var userName = pms[0];
            if (string.IsNullOrEmpty(userName)) return true;
            var clientByUserName = Azure.GetGame().GetClientManager().GetClientByUserName(userName);
            if (clientByUserName == null || clientByUserName.GetHabbo() == null)
                return true;
            {
                if (String.Equals(userName, session.GetHabbo().UserName,
                StringComparison.CurrentCultureIgnoreCase))
                {
                    session.SendNotif(Azure.GetLanguage().GetVar("summon_yourself"));
                    return true;
                }
                var client = Azure.GetGame().GetClientManager().GetClientByUserName(userName);
                if (client == null)
                {
                    session.SendNotif(Azure.GetLanguage().GetVar("user_not_found"));
                    return true;
                }
                if (session.GetHabbo().CurrentRoom != null &&
                    session.GetHabbo().CurrentRoomId != client.GetHabbo().CurrentRoomId)
                    client.GetMessageHandler()
                        .PrepareRoomForUser(session.GetHabbo().CurrentRoom.RoomId,
                            session.GetHabbo().CurrentRoom.RoomData.PassWord);
                return true;
            }
        }
    }
}

;)
 
Newbie Spellweaver
Joined
Jan 8, 2015
Messages
33
Reaction score
9
Background aren't fixed dude ? :(

They were never broken, you just have to change the interaction type in catalog_furnis to background. That has been posted many times, you just had to search in the thread.
 
Newbie Spellweaver
Joined
Feb 27, 2015
Messages
13
Reaction score
0
BG don't work with "background" in interaction_type. The screen alreay black :D
 
Newbie Spellweaver
Joined
Feb 27, 2015
Messages
13
Reaction score
0
Why my Background don't work with the good interaction_type i have already check my cache, change my SWF and change the version of Azure Emu, i tried to recompile it but, same! Backgrounds don't work, only black screen!



Jamal7 - Azure Emulator 1.0 [Dev Release] - [Regularly Updated] - [Stable and Fast] - RaGEZONE Forums
See :(
 
Joined
Feb 22, 2012
Messages
2,103
Reaction score
1,271
Why my Background don't work with the good interaction_type i have already check my cache, change my SWF and change the version of Azure Emu, i tried to recompile it but, same! Backgrounds don't work, only black screen!



Jamal7 - Azure Emulator 1.0 [Dev Release] - [Regularly Updated] - [Stable and Fast] - RaGEZONE Forums
See :(

Check your item's extradata and see if the settings are being saved, don't forget to post the results.
 
Newbie Spellweaver
Joined
Feb 27, 2015
Messages
13
Reaction score
0
Jamal7 - Azure Emulator 1.0 [Dev Release] - [Regularly Updated] - [Stable and Fast] - RaGEZONE Forums
dont save :/



Check your item's extradata and see if the settings are being saved, don't forget to post the results.

The SQL query saved when i put "ads_background" in interaction_type but, background stay black.
 
Status
Not open for further replies.
Back
Top