[AJUDA]:eha Sirios

4 participantes

thalysmarciobn thalysmarciobn  • 24.01.16 22:50

[AJUDA]:eha Sirios Empty [AJUDA]:eha Sirios 24.01.16 22:50


Olá amigos do Power Pixel, estou com um problema. Me ajudem?
O meu problema é o seguinte:

Falta de variáveis ou algo do tipo... não sei quais (preguiça)

Será que é fácil resolver este erro?
Veja minhas configurações, poderá ajudar!
Meu emulador é o
SiriosEMU
Minha CMS é a
...
Meu hotel está no
...
Como sei que uma imagem vale mais que mil palavras, olhe o print:
http://prntscr.com/9uff73

Desde já obrigado. Aguardarei respostas!

Livєя Livєя  • 24.01.16 23:11

[AJUDA]:eha Sirios Empty Re: [AJUDA]:eha Sirios 24.01.16 23:11

Troque seu external_flash_texts.txt por esse, clique aqui.

The Flash The Flash  • 25.01.16 10:07

[AJUDA]:eha Sirios Empty Re: [AJUDA]:eha Sirios 25.01.16 10:07

[aviso=Alerta] O autor do tópico possui 24 horas para demonstrar satisfação [/aviso]

thalysmarciobn thalysmarciobn  • 25.01.16 10:23

[AJUDA]:eha Sirios Empty Re: [AJUDA]:eha Sirios 25.01.16 10:23

Livєя escreveu:Troque seu external_flash_texts.txt por esse, clique aqui.
Não adiantou.

Livєя Livєя  • 25.01.16 14:02

[AJUDA]:eha Sirios Empty Re: [AJUDA]:eha Sirios 25.01.16 14:02

Reinicie o emulador e limpe o cachê.

thalysmarciobn thalysmarciobn  • 25.01.16 14:15

[AJUDA]:eha Sirios Empty Re: [AJUDA]:eha Sirios 25.01.16 14:15

Livєя escreveu:Reinicie o emulador e limpe o cachê.
Acha que não fiz isso? hm....

~WiredD ~WiredD  • 25.01.16 15:35

[AJUDA]:eha Sirios Empty Re: [AJUDA]:eha Sirios 25.01.16 15:35

Olá.

Abra o source do seu emulador com o programa no qual usa pra editar/programar, Visual Basic por exemplo.
Após aberto vá a este diretorio:

\HabboHotel\Rooms\Chat\Commands\Events

Encontre e abra o arquivo "EventAlertCommand.cs"

Apague todo o conteudo dele e após isso cole o segunte código:

Código:
using Plus.Communication.Packets.Outgoing.Rooms.Notifications;
using Plus.HabboHotel.GameClients;

namespace Plus.HabboHotel.Rooms.Chat.Commands.Events
{
    internal class EventAlertCommand : IChatCommand
    {
        public string PermissionRequired
        {
            get
            {
                return "command_event_alert";
            }
        }
        public string Parameters
        {
            get
            {
                return "%message%";
            }
        }
        public string Description
        {
            get
            {
                return "Envia um alerta de eventos para os users.";
            }
        }
        public void Execute(GameClient Session, Room Room, string[] Params)
        {
            if (Session != null)
            {
                if (Room != null)
                {
                    if (Params.Length == 1)
                    {
                        Session.SendWhisper("Digite o nome do evento antes de enviar. Exemplo: :eventalert Sussurro");
                        return;
                    }
                    else
                    {
                        string Message = CommandManager.MergeParams(Params, 1);

                        PlusEnvironment.GetGame().GetClientManager().SendMessage(new RoomNotificationComposer("Opa! Está acontecendo um evento!",
                             "O Staff <b>" + Session.GetHabbo().Username +
                             "</b> está promovendo um novo evento. <br><br>O nome do evento é: <b>" + Message +
                             "</b> <br><br>Para participar, clique no botão abaixo:",
                             "events", "Ir ao Evento!", "event:navigator/goto/" + Session.GetHabbo().CurrentRoomId));
                    }
                }
            }
        }
        /*public void Execute(GameClient Session, Room Room, string[] Params)
        {
            if (Session != null)
            {
                if (Room != null)
                {
                    if (Params.Length != 1)
                    {
                        Session.SendWhisper("Invalid command! :eventalert", 0);
                    }
                    else if (!PlusEnvironment.Event)
                    {
                        PlusEnvironment.GetGame().GetClientManager().SendMessage(new BroadcastMessageAlertComposer(":follow " + Session.GetHabbo().Username + " for events! win prizes!\r\n- " + Session.GetHabbo().Username, ""), "");
                        PlusEnvironment.lastEvent = DateTime.Now;
                        PlusEnvironment.Event = true;
                    }
                    else
                    {
                        TimeSpan timeSpan = DateTime.Now - PlusEnvironment.lastEvent;
                        if (timeSpan.Hours >= 1)
                        {
                            PlusEnvironment.GetGame().GetClientManager().SendMessage(new BroadcastMessageAlertComposer(":follow " + Session.GetHabbo().Username + " for events! win prizes!\r\n- " + Session.GetHabbo().Username, ""), "");
                            PlusEnvironment.lastEvent = DateTime.Now;
                        }
                        else
                        {
                            int num = checked(60 - timeSpan.Minutes);
                            Session.SendWhisper("Event Cooldown! " + num + " minutes left until another event can be hosted.", 0);
                        }
                    }
                }
            }
        }*/
    }
}

Pronto. Só dar debug, limpar cachê do navegador e testar ;)

PS: Só funciona no Sirio que já está com o eha.

The Flash The Flash  • 25.01.16 16:04

[AJUDA]:eha Sirios Empty Re: [AJUDA]:eha Sirios 25.01.16 16:04

[aviso=Alerta] O autor do tópico possui 24 horas para informar se a questão foi resolvida. [/aviso]

thalysmarciobn thalysmarciobn  • 25.01.16 19:40

[AJUDA]:eha Sirios Empty Re: [AJUDA]:eha Sirios 25.01.16 19:40

~WiredD escreveu:Olá.

Abra o source do seu emulador com o programa no qual usa pra editar/programar, Visual Basic por exemplo.
Após aberto vá a este diretorio:

\HabboHotel\Rooms\Chat\Commands\Events

Encontre e abra o arquivo "EventAlertCommand.cs"

Apague todo o conteudo dele e após isso cole o segunte código:

Código:
using Plus.Communication.Packets.Outgoing.Rooms.Notifications;
using Plus.HabboHotel.GameClients;

namespace Plus.HabboHotel.Rooms.Chat.Commands.Events
{
    internal class EventAlertCommand : IChatCommand
    {
        public string PermissionRequired
        {
            get
            {
                return "command_event_alert";
            }
        }
        public string Parameters
        {
            get
            {
                return "%message%";
            }
        }
        public string Description
        {
            get
            {
                return "Envia um alerta de eventos para os users.";
            }
        }
        public void Execute(GameClient Session, Room Room, string[] Params)
        {
            if (Session != null)
            {
                if (Room != null)
                {
                    if (Params.Length == 1)
                    {
                        Session.SendWhisper("Digite o nome do evento antes de enviar. Exemplo: :eventalert Sussurro");
                        return;
                    }
                    else
                    {
                        string Message = CommandManager.MergeParams(Params, 1);

                        PlusEnvironment.GetGame().GetClientManager().SendMessage(new RoomNotificationComposer("Opa! Está acontecendo um evento!",
                             "O Staff <b>" + Session.GetHabbo().Username +
                             "</b> está promovendo um novo evento. <br><br>O nome do evento é: <b>" + Message +
                             "</b> <br><br>Para participar, clique no botão abaixo:",
                             "events", "Ir ao Evento!", "event:navigator/goto/" + Session.GetHabbo().CurrentRoomId));
                    }
                }
            }
        }
        /*public void Execute(GameClient Session, Room Room, string[] Params)
        {
            if (Session != null)
            {
                if (Room != null)
                {
                    if (Params.Length != 1)
                    {
                        Session.SendWhisper("Invalid command! :eventalert", 0);
                    }
                    else if (!PlusEnvironment.Event)
                    {
                        PlusEnvironment.GetGame().GetClientManager().SendMessage(new BroadcastMessageAlertComposer(":follow " + Session.GetHabbo().Username + " for events! win prizes!\r\n- " + Session.GetHabbo().Username, ""), "");
                        PlusEnvironment.lastEvent = DateTime.Now;
                        PlusEnvironment.Event = true;
                    }
                    else
                    {
                        TimeSpan timeSpan = DateTime.Now - PlusEnvironment.lastEvent;
                        if (timeSpan.Hours >= 1)
                        {
                            PlusEnvironment.GetGame().GetClientManager().SendMessage(new BroadcastMessageAlertComposer(":follow " + Session.GetHabbo().Username + " for events! win prizes!\r\n- " + Session.GetHabbo().Username, ""), "");
                            PlusEnvironment.lastEvent = DateTime.Now;
                        }
                        else
                        {
                            int num = checked(60 - timeSpan.Minutes);
                            Session.SendWhisper("Event Cooldown! " + num + " minutes left until another event can be hosted.", 0);
                        }
                    }
                }
            }
        }*/
    }
}

Pronto. Só dar debug, limpar cachê do navegador e testar ;)

PS: Só funciona no Sirio que já está com o eha.

Vejo que possivelmente a solução esteja nesse código, talvez por má edição de quem editou o verdadeiro Plus e colocou como "Sirios", más aparece vários erros na build do projeto: http://prntscr.com/9ut1at

thalysmarciobn thalysmarciobn  • 25.01.16 21:21

[AJUDA]:eha Sirios Empty Re: [AJUDA]:eha Sirios 25.01.16 21:21

Corrigido: http://prntscr.com/9uucmn
Muito obrigado pelo suporte: ~WiredD

The Flash The Flash  • 25.01.16 21:33

[AJUDA]:eha Sirios Empty Re: [AJUDA]:eha Sirios 25.01.16 21:33

Fechado.
Autor satisfeito
Permissões neste sub-fórum
Não podes responder a tópicos

BH Servers

Recomendamos a BH Servers com proteção DDOS gratuita em Cloud Server de alta performance. Entrega imediata.