StewieSharp
New Member
- Aug 18, 2018
- 4
- 0
Hey Devbest's,
I have a problem, i'm using PlusEmu. An editted one, with some customs.
There is a command named HelpCommand. But the problem is, that its not functioning as it should be.
The command is working like this: There is a user saying ":help (description)" then is says a wishper with "your message has been send to an ambassador"
But the problem is, is that the ambassador will never get any message.
I cant post links yet to show screens!
This is my HelpCommand.cs
Is there anyone that can help me? By Discord, or just answering to this post?
I hope to here soon from you developers!
Best Wishes,
StewieSharp
This is a screen:
I have a problem, i'm using PlusEmu. An editted one, with some customs.
There is a command named HelpCommand. But the problem is, that its not functioning as it should be.
The command is working like this: There is a user saying ":help (description)" then is says a wishper with "your message has been send to an ambassador"
But the problem is, is that the ambassador will never get any message.
I cant post links yet to show screens!
This is my HelpCommand.cs
Code:
using System;
using System.Linq;
using System.Text;
using System.Data;
using System.Collections.Generic;
using Quasar.Communication.Packets.Outgoing.Users;
using Quasar.Communication.Packets.Outgoing.Notifications;
using Quasar.Communication.Packets.Outgoing.Handshake;
using Quasar.Communication.Packets.Outgoing.Quests;
using Quasar.HabboHotel.Items;
using Quasar.Communication.Packets.Outgoing.Inventory.Furni;
using Quasar.Communication.Packets.Outgoing.Catalog;
using Quasar.HabboHotel.Quests;
using Quasar.HabboHotel.Rooms;
using System.Threading;
using Quasar.HabboHotel.GameClients;
using Quasar.Communication.Packets.Outgoing.Rooms.Avatar;
using Quasar.Communication.Packets.Outgoing.Pets;
using Quasar.Communication.Packets.Outgoing.Messenger;
using Quasar.HabboHotel.Users.Messenger;
using Quasar.Communication.Packets.Outgoing.Rooms.Polls;
using Quasar.Communication.Packets.Outgoing.Rooms.Notifications;
using Quasar.Communication.Packets.Outgoing.Availability;
using Quasar.Communication.Packets.Outgoing;
namespace Quasar.HabboHotel.Rooms.Chat.Commands.Events
{
internal class HelpCommand : IChatCommand
{
public string PermissionRequired
{
get
{
return "command_help";
}
}
public string Parameters
{
get { return ""; }
}
public string Description
{
get
{
return "Vraag een Ambassadeur om hulp.";
}
}
public void Execute(GameClient Session, Room Room, string[] Params)
{
long nowTime = QuasarEnvironment.CurrentTimeMillis();
long timeBetween = nowTime - Session.GetHabbo()._lastTimeUsedHelpCommand;
if (timeBetween < 3600) // 1 uur
{
Session.SendWhisper("Wacht minstens 60 minuten met het nogmaals gebruik maken van de Sharp Helper tool. (Of gebruik het Ticket Systeem).");
return;
}
Session.GetHabbo()._lastTimeUsedHelpCommand = nowTime;
string Request = CommandManager.MergeParams(Params, 1);
if (Params.Length == 1)
{
Session.SendWhisper("Oeps! Je bent vergeten om het probleem te omschrijven.");
}
else
{
QuasarEnvironment.GetGame().GetClientManager().GuideAlert(new RoomNotificationComposer("Helper Systeem",
"De gebruiker <b>" + Session.GetHabbo().Username + "</b> heeft een vraag of probleem!<br><br><b>Oproep omschrijving</b><br>"
+ Request + "</b>", "alert_helper", "Bezoek " + Session.GetHabbo().Username + "", "event:navigator/goto/" + Session.GetHabbo().CurrentRoomId));
Session.SendWhisper("Je verzoek om hulp is verzonden! Deze wordt z.s.m door een Sharp Helper behandeld.");
}
}
}
}
Is there anyone that can help me? By Discord, or just answering to this post?
I hope to here soon from you developers!
Best Wishes,
StewieSharp
This is a screen:
You must be registered for see links