<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel"

+18
jumper128
Gabiiih
Maykeh
iCliquei
SirGona
Tobby
Omeleeth
Saigon
GustP
Wake
Koop
TrY!
pedxz
xNectar
Damassa
MeninoFriboi
Visi0n
iSkell
22 participantes

iSkell iSkell  • 10.06.17 13:31

<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" Empty <PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" 10.06.17 13:31

Falaaa filhotes!
Faz um tempo que vejo pessoas procurando este tutorial mas nunca encontram!
Mas chegou a hora de postar  :shock:

Vamos lá!

TUTORIAL:


Vá até HabboHotel/GameClients/GameClient.cs (Este arquivo trata-se de tudo o que é executado quando um usuário entra no hotel!)

Procure por:
Código:
welcome_message
 
Irá aparecer duas linhas com welcome_message, após essas 2 linhas (após essas duas linhas é o que vai ser executado quando a client acabou de carregar) coloque o seguinte código:
Código:
if(GetHabbo().Rank > 2)
                    {
                        if (GetHabbo().Rank == 3)
                        {
                            string figure = this.GetHabbo().Look;
                            PlusEnvironment.GetGame().GetClientManager().SendMessage(new RoomNotificationComposer("fig/" + figure, 3, "O Embaixador do Hotel, " + GetHabbo().Username + " Entrou no Hotel!", ""));
                        }
                        if (GetHabbo().Rank == 4)
                        {
                            string figure = this.GetHabbo().Look;
                            PlusEnvironment.GetGame().GetClientManager().SendMessage(new RoomNotificationComposer("fig/" + figure, 3, "O Jornalista do Hotel, " + GetHabbo().Username + " Entrou no Hotel!", ""));
                        }
                        if (GetHabbo().Rank == 5)
                        {
                            string figure = this.GetHabbo().Look;
                            PlusEnvironment.GetGame().GetClientManager().SendMessage(new RoomNotificationComposer("fig/" + figure, 3, "O Moderador do Hotel, " + GetHabbo().Username + " Entrou no Hotel!", ""));
                        }
                        if (GetHabbo().Rank == 6)
                        {
                            string figure = this.GetHabbo().Look;
                            PlusEnvironment.GetGame().GetClientManager().SendMessage(new RoomNotificationComposer("fig/" + figure, 3, "O Moderador Superior do Hotel, " + GetHabbo().Username + " Entrou no Hotel!", ""));
                        }
                        if (GetHabbo().Rank == 7)
                        {
                            string figure = this.GetHabbo().Look;
                            PlusEnvironment.GetGame().GetClientManager().SendMessage(new RoomNotificationComposer("fig/" + figure, 3, "O Administrador do Hotel, " + GetHabbo().Username + " Entrou no Hotel!", ""));
                        }
                        if (GetHabbo().Rank == 8)
                        {
                            string figure = this.GetHabbo().Look;
                            PlusEnvironment.GetGame().GetClientManager().SendMessage(new RoomNotificationComposer("fig/" + figure, 3, "O Programador do Hotel, " + GetHabbo().Username + " Entrou no Hotel!", ""));
                        }
                        if (GetHabbo().Rank == 9)
                        {
                            string figure = this.GetHabbo().Look;
                            PlusEnvironment.GetGame().GetClientManager().SendMessage(new RoomNotificationComposer("fig/" + figure, 3, "O Dono do Hotel, " + GetHabbo().Username + " Entrou no Hotel!", ""));
                        }

                    }

Bom, basicamente é apenas isso, mas agora vamos resolver alguns erros que poderão acontecer pelo vosso PlusEMU estar incompleto!

Vamos Lá:

Erro de Classes não funcionarem:

Substitua todas as suas bibliotecas (USINGS no inicio do documento; linha 1) do GameClient.cs por essas:
Código:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Plus.Net;
using Plus.Core;
using Plus.Communication.Packets.Incoming;
using Plus.HabboHotel.Rooms;
using Plus.HabboHotel.Users;
using Plus.Communication.Interfaces;
using Plus.HabboHotel.Users.UserDataManagement;
using Plus.Communication.Packets.Outgoing.Rooms.Session;

using ConnectionManager;

using Plus.Communication.Packets.Outgoing.Sound;
using Plus.Communication.Packets.Outgoing.Rooms.Chat;
using Plus.Communication.Packets.Outgoing.Rooms.Notifications;
using Plus.Communication.Packets.Outgoing.Handshake;
using Plus.Communication.Packets.Outgoing.Navigator;
using Plus.Communication.Packets.Outgoing.Moderation;
using Plus.Communication.Packets.Outgoing.Inventory.AvatarEffects;
using Plus.Communication.Packets.Outgoing.Inventory.Achievements;


using Plus.Communication.Encryption.Crypto.Prng;
using Plus.HabboHotel.Users.Messenger.FriendBar;
using Plus.Communication.Packets.Outgoing.BuildersClub;
using Plus.HabboHotel.Moderation;

using Plus.Database.Interfaces;
using Plus.Utilities;
using Plus.HabboHotel.Achievements;
using Plus.HabboHotel.Subscriptions;
using Plus.HabboHotel.Permissions;
using Plus.HabboHotel.Pathfinding;
using Plus.Communication.Packets.Outgoing.Notifications;
using Plus.Communication.Packets.Outgoing.Rooms.Session;
using Plus.Communication.Packets.Outgoing.Campaigns;
using Plus.Communication.Packets.Outgoing.Inventory.Purse;

Bom, por enquanto é isso! Se tiverem algum erro, deixem aqui em baixo que eu irei tentar atualizar o mais rápido possivel o tópico com o fix!

-------------------------------------------------------------------------------------------------------

Espero que tenham gostado  :lol:
Até!!

Visi0n Visi0n  • 10.06.17 13:33

<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" Empty Re: <PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" 10.06.17 13:33

Tutorial maneiro hein, gostei.

iSkell iSkell  • 10.06.17 13:34

<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" Empty Re: <PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" 10.06.17 13:34

Visi0n escreveu:Tutorial maneiro hein, gostei.
Obrigado! Sempre tentando ajudar :)

MeninoFriboi MeninoFriboi  • 10.06.17 13:49

<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" Empty Re: <PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" 10.06.17 13:49

obrigado pelo tutorial, estarei testando em breve.

iSkell iSkell  • 10.06.17 13:50

<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" Empty Re: <PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" 10.06.17 13:50

MeninoFriboi escreveu:obrigado pelo tutorial, estarei testando em breve.
De nada :) Espero que dê certo com você!

Damassa Damassa  • 10.06.17 15:42

<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" Empty Re: <PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" 10.06.17 15:42

Obrigado pelo compartilhamento do conteúdo aqui no fórum!

xNectar xNectar  • 10.06.17 16:14

<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" Empty Re: <PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" 10.06.17 16:14

Eu já tinha ah um bom tempo mas obrigado por compartilha.

(Esqueceu de editar a estrutura pra foto do avatar funfar)

pedxz pedxz  • 10.06.17 16:32

Super administradorMembro da Equipa

<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" Empty Re: <PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" 10.06.17 16:32

obrigado pela partilha nesse tutorial :P

TrY! TrY!  • 10.06.17 16:34

<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" Empty Re: <PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" 10.06.17 16:34

Olá,

Você poderia substituir os "ifs" por um switch.

Koop Koop  • 10.06.17 16:52

<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" Empty Re: <PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" 10.06.17 16:52

alguem ai têm o print do funcionamento?

se tiver manda ae

vlw

até mais,

Wake Wake  • 10.06.17 17:20

AdministradorMembro da Equipa

<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" Empty Re: <PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" 10.06.17 17:20

Muito bom, obrigado por compartilhar!

GustP GustP  • 10.06.17 17:58

<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" Empty Re: <PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" 10.06.17 17:58

Muito obrigado iSkell sumido <3

Saigon Saigon  • 10.06.17 18:08

<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" Empty Re: <PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" 10.06.17 18:08

Ótimo tutorial! :d

iSkell iSkell  • 12.06.17 12:07

<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" Empty Re: <PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" 12.06.17 12:07

Obrigado a todos! Sim, dá para usar switch (cases em vez de if, se preferirem posso fazer ;))!
Quando for ao pc vou atualizar o post pra colocar a imagem do user a funcionar! ;)

Omeleeth Omeleeth  • 18.06.17 22:16

Tobby Tobby  • 20.06.17 21:35

<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" Empty Re: <PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" 20.06.17 21:35

Como faz pra por a imagem ? pq ta com erro!

SirGona SirGona  • 23.06.17 11:43

iCliquei iCliquei  • 25.06.17 2:21

<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" Empty Re: <PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" 25.06.17 2:21

Geral agradecendo pelo tutorial, mas, quase ninguém testou. Algumas pessoas com erros [Tens de ter uma conta e sessão iniciada para poderes visualizar este link]

Maykeh Maykeh  • 01.07.17 19:07

<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" Empty Re: <PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" 01.07.17 19:07

Eu to pensando em usar no meu plus Emu porem não entendi muito bem pode fazer em vídeo e postar aqui?

Gabiiih Gabiiih  • 01.07.17 19:09

<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" Empty Re: <PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" 01.07.17 19:09

Já sabia, mais brigado por compartilhar!

jumper128 jumper128  • 20.07.17 20:59

iSkell iSkell  • 21.07.17 18:34

<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" Empty Re: <PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" 21.07.17 18:34

jumper128 escreveu:Tentei e não funcionou
Por favor mande um print :)

Turbo Turbo  • 28.07.17 10:45

Super ModeradorMembro da Equipa

<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" Empty Re: <PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" 28.07.17 10:45

Ótimo tutorial, estarei usando em futuros projetos..

avatar Wickfield  • 28.07.17 14:02

<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" Empty Re: <PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" 28.07.17 14:02

Testei em 2 emuladores plus, ambos não funcionaram!

Lord_Mafia Lord_Mafia  • 20.11.17 21:15

<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" Empty Re: <PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" 20.11.17 21:15

Gosteiii Mais o meu deu erro poderia me ajudar ??.

tsuname7.s tsuname7.s  • 22.06.18 10:25

<PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" Empty Re: <PlusEMU> Colocar mensagem de "Staff Entrou no Hotel" 22.06.18 10:25

Péssimo tutorial, não funciona! antes de agradecerem testem ao menos.
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.