Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- using System.Text;
- using System.Collections.Generic;
- using Plus.Communication.Packets.Outgoing.Nux;
- using Plus.Communication.Packets.Outgoing;
- using Plus.Communication.Packets.Outgoing.Inventory.Purse;
- using System.Data;
- using Plus.HabboHotel.Rooms.AI.Speech;
- using Plus.HabboHotel.Rooms;
- using Plus.HabboHotel.Rooms.AI;
- namespace Plus.Communication.Packets.Incoming.Nux
- {
- class RoomNuxAlertEvent : IPacketEvent
- {
- public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet)
- {
- var habbo = Session.GetHabbo();
- if (habbo == null)
- return;
- if (!habbo.PassedNuxNavigator && !habbo.PassedNuxCatalog && !habbo.PassedNuxChat && !habbo.PassedNuxDuckets && !habbo.PassedNuxItems)
- {
- Session.SendPacket(new NuxAlertComposer("helpBubble/add/BOTTOM_BAR_NAVIGATOR/" + PlusEnvironment.GetGame().GetLanguageLocale().TryGetValue("phrase_1_tutoriel").Replace("%nomduretro%", PlusEnvironment.GetGame().GetLanguageLocale().TryGetValue("hotelname")) + ""));
- habbo.PassedNuxNavigator = true;
- }
- if (habbo.PassedNuxNavigator && !habbo.PassedNuxCatalog && !habbo.PassedNuxChat && !habbo.PassedNuxDuckets && !habbo.PassedNuxItems)
- {
- Session.SendPacket(new NuxAlertComposer("helpBubble/add/BOTTOM_BAR_CATALOG/" + PlusEnvironment.GetGame().GetLanguageLocale().TryGetValue("phrase_2_tutoriel").Replace("%nomduretro%", PlusEnvironment.GetGame().GetLanguageLocale().TryGetValue("hotelname")) + ""));
- habbo.PassedNuxCatalog = true;
- }
- else if (habbo.PassedNuxNavigator && habbo.PassedNuxCatalog && !habbo.PassedNuxChat && !habbo.PassedNuxDuckets && !habbo.PassedNuxItems)
- {
- Session.SendPacket(new NuxAlertComposer("helpBubble/add/CHAT_INPUT/" + PlusEnvironment.GetGame().GetLanguageLocale().TryGetValue("phrase_3_tutoriel") + ""));
- habbo.PassedNuxChat = true;
- }
- else if (habbo.PassedNuxNavigator && habbo.PassedNuxCatalog && habbo.PassedNuxChat && !habbo.PassedNuxDuckets && !habbo.PassedNuxItems)
- {
- Session.SendPacket(new NuxAlertComposer("helpBubble/add/DUCKETS_BUTTON/" + PlusEnvironment.GetGame().GetLanguageLocale().TryGetValue("phrase_4_tutoriel") + ""));
- habbo.PassedNuxDuckets = true;
- }
- else if (habbo.PassedNuxNavigator && habbo.PassedNuxCatalog && habbo.PassedNuxChat && habbo.PassedNuxDuckets && !habbo.PassedNuxItems)
- {
- Session.SendPacket(new NuxAlertComposer("helpBubble/add/BOTTOM_BAR_INVENTORY/" + PlusEnvironment.GetGame().GetLanguageLocale().TryGetValue("phrase_5_tutoriel") + ""));
- habbo.PassedNuxItems = true;
- }
- if (habbo.PassedNuxNavigator && habbo.PassedNuxCatalog && habbo.PassedNuxChat && habbo.PassedNuxDuckets && habbo.PassedNuxItems)
- {
- Session.SendPacket(new NuxAlertComposer("nux/lobbyoffer/show"));
- habbo.NewUser = false;
- using (var dbClient = PlusEnvironment.GetDatabaseManager().GetQueryReactor())
- dbClient.RunFastQuery("UPDATE users SET nux_user = 'false' WHERE id = " + Session.GetHabbo().Id + ";");
- var nuxStatus = new ServerPacket(ServerPacketHeader.NuxUserStatus);
- nuxStatus.WriteInteger(0);
- Session.SendPacket(nuxStatus);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement