Re: Official PlusEMU - Help Thread
Quote:
Originally Posted by
Dannie
Thank you Jonteh, did you know if there was a command source for :empty as I know it used to exist within PlusEMU R2
Hitting the like button goes a long way.
I don't use Plus, but I would say you can use :emptyitems player_name if they are online.
Re: Official PlusEMU - Help Thread
Quote:
Originally Posted by
Dannie
Thank you Jonteh, did you know if there was a command source for :empty as I know it used to exist within PlusEMU R2
You can use this to empty a users inventory
EmptyUser.cs
PHP Code:
using Plus.HabboHotel.GameClients;
namespace Plus.HabboHotel.Rooms.Chat.Commands.Moderator
{
class EmptyUser : IChatCommand
{
public string PermissionRequired
{
get { return "command_emptyuser"; }
}
public string Parameters
{
get { return "%username%"; }
}
public string Description
{
get { return "%USER% - Clean Inventory of a User"; }
}
public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params)
{
if (Params.Length == 1)
{
Session.SendWhisper("Enter the user name you want to clear the inventory.");
return;
}
GameClient TargetClient = PlusEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]);
if (TargetClient == null)
{
Session.SendWhisper("Oops! Probably the user is not online.");
return;
}
if (TargetClient.GetHabbo().Rank >= Session.GetHabbo().Rank)
{
Session.SendWhisper("You can not clean this user inventory");
return;
}
TargetClient.GetHabbo().GetInventoryComponent().ClearItems();
}
}
}
Add this to CommandManager.cs
PHP Code:
this.Register("emptyuser", new EmptyUser());
Also add it to your Permissions table
PHP Code:
INSERT INTO `DBNAME`.`permissions_commands` (`command`, `group_id`, `subscription_id`) VALUES ('command_emptyuser', '8', '0');
Re: Official PlusEMU - Help Thread
Quote:
Originally Posted by
Hayd3n
You can use this to empty a users inventory
EmptyUser.cs
PHP Code:
using Plus.HabboHotel.GameClients;
namespace Plus.HabboHotel.Rooms.Chat.Commands.Moderator
{
class EmptyUser : IChatCommand
{
public string PermissionRequired
{
get { return "command_emptyuser"; }
}
public string Parameters
{
get { return "%username%"; }
}
public string Description
{
get { return "%USER% - Clean Inventory of a User"; }
}
public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params)
{
if (Params.Length == 1)
{
Session.SendWhisper("Enter the user name you want to clear the inventory.");
return;
}
GameClient TargetClient = PlusEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]);
if (TargetClient == null)
{
Session.SendWhisper("Oops! Probably the user is not online.");
return;
}
if (TargetClient.GetHabbo().Rank >= Session.GetHabbo().Rank)
{
Session.SendWhisper("You can not clean this user inventory");
return;
}
TargetClient.GetHabbo().GetInventoryComponent().ClearItems();
}
}
}
Add this to CommandManager.cs
PHP Code:
this.Register("emptyuser", new EmptyUser());
Also add it to your Permissions table
PHP Code:
INSERT INTO `DBNAME`.`permissions_commands` (`command`, `group_id`, `subscription_id`) VALUES ('command_emptyuser', '8', '0');
Thank you so much, i will test it right away. Definitely worth a like :D
Re: Official PlusEMU - Help Thread
Hi pls help me!
I got dis error in my emu when im tryin to start it.
System.FormatException: Indatasträngen hade ett felaktigt format.
vid System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
vid System.Double.Parse(String s)
vid Plus.HabboHotel.Items.ItemData..ctor(Int32 Id, Int32 Sprite, String Name, String PublicName, String Type, Int32 Width, Int32 Length, Double Height, Boolean Stackable, Boolean Walkable, Boolean IsSeat, Boolean AllowRecycle, Boolean AllowTrade, Boolean AllowMarketplaceSell, Boolean AllowGift, Boolean AllowInventoryStack, InteractionType InteractionType, Int32 Modes, String VendingIds, String AdjustableHeights, Int32 EffectId, Int32 WiredId, Boolean IsRare, Int32 ClothingId, Boolean ExtraRot) i C:\Users\Sledmore\Desktop\PRODUCTION-201601012205-226667486\HabboHotel\Items\ItemData.cs:rad 82
vid Plus.HabboHotel.Items.ItemDataManager.Init() i C:\Users\Sledmore\Desktop\PRODUCTION-201601012205-226667486\HabboHotel\Items\ItemDataManager.cs:rad 69
Re: Official PlusEMU - Help Thread
Hi, I need some fixes for a couple of things hopefully someone can help me out.
When i trade someone we can both accept the trade but after that nothing happend's no confirm button. The image in the box its empty by the user that don't start the trade. Example:
Imgur: The most awesome images on the Internet
When the user report someone a couple of button's don't have text. its only 5 button's the other button's are fine.
Imgur: The most awesome images on the Internet
Doorbell and door password doesn't work. When you set up a password or doorbell other user's can go in without a password or ringing the doorbell.
Re: Official PlusEMU - Help Thread
Quote:
Originally Posted by
Brosbeforehos
Hi, I need some fixes for a couple of things hopefully someone can help me out.
When i trade someone we can both accept the trade but after that nothing happend's no confirm button. The image in the box its empty by the user that don't start the trade. Example:
Imgur: The most awesome images on the Internet
When the user report someone a couple of button's don't have text. its only 5 button's the other button's are fine.
Imgur: The most awesome images on the Internet
Doorbell and door password doesn't work. When you set up a password or doorbell other user's can go in without a password or ringing the doorbell.
What SWF pack are you using? Are you using the one provided by Sledmore or some other custom?
Re: Official PlusEMU - Help Thread
Quote:
Originally Posted by
spreedblood
What SWF pack are you using? Are you using the one provided by Sledmore or some other custom?
Sledmore, PRODUCTION-201610052203-260805057.
Re: Official PlusEMU - Help Thread
Quote:
Originally Posted by
Brosbeforehos
Sledmore, PRODUCTION-201610052203-260805057.
PM me your skype and I'll try to help you :)
Re: Official PlusEMU - Help Thread
Tonight we rebooted our emulator. Since then the rooms are messed up. Everything is thrown in one place, but not every room. Like you see on the image below, its shows the floorplan it like it was.
The user avatar is stuck behind the room. If you use :teleport to go into the room, you see the avatar briefly and it disappears again. Chat messages will show up at the left side of the room.
We tried:
- Rebooting the server/emulator
- Using our old database. We had the same issues so i guess it isn't in the database.
- Placed back a backup we had, of the Emulator. Still same issues.
https://images.weserv.nl/?url=i.imgur.com/9uHvqak.png
Re: Official PlusEMU - Help Thread
My Avatar and Furniture isn't loading, I'm pretty sure I configured my vars and override correctly but I'm still not sure what the problem is.
Screenshot by Lightshot
P.S I looked through most of this thread and I still can't find this fix.
Re: Official PlusEMU - Help Thread
Quote:
Originally Posted by
Arun Seeley
My Avatar and Furniture isn't loading, I'm pretty sure I configured my vars and override correctly but I'm still not sure what the problem is.
Screenshot by Lightshot
P.S I looked through most of this thread and I still can't find this fix.
PM me your skype and let me take a closer look into your config, vars etc.
Re: Official PlusEMU - Help Thread
Quote:
Originally Posted by
Muggle
Tonight we rebooted our emulator. Since then the rooms are messed up. Everything is thrown in one place, but not every room. Like you see on the image below, its shows the floorplan it like it was.
The user avatar is stuck behind the room. If you use :teleport to go into the room, you see the avatar briefly and it disappears again. Chat messages will show up at the left side of the room.
We tried:
- Rebooting the server/emulator
- Using our old database. We had the same issues so i guess it isn't in the database.
- Placed back a backup we had, of the Emulator. Still same issues.
https://images.weserv.nl/?url=i.imgur.com/9uHvqak.png
Read error logs! They are very good to find out whats happening if everything is logged well. I think this has something todo with probably lost coordinates of room items which isn't even possible but maybe it is if you mess up your database or punctional notation for splitting coordinates maybe? If you also have issues when placing items it's probably that but weird it's not in every room. I also recommend to debug with visual studio and see which data is putted for a room item coordinates.
Oh I forgot; coordinates are splitted by ',' on x and y ;)
Re: Official PlusEMU - Help Thread
Quote:
Originally Posted by
Muggle
Tonight we rebooted our emulator. Since then the rooms are messed up. Everything is thrown in one place, but not every room. Like you see on the image below, its shows the floorplan it like it was.
The user avatar is stuck behind the room. If you use :teleport to go into the room, you see the avatar briefly and it disappears again. Chat messages will show up at the left side of the room.
We tried:
- Rebooting the server/emulator
- Using our old database. We had the same issues so i guess it isn't in the database.
- Placed back a backup we had, of the Emulator. Still same issues.
https://images.weserv.nl/?url=i.imgur.com/9uHvqak.png
probably your items table because thats where the coordinates of where the items are placed in the room exist
Re: Official PlusEMU - Help Thread
Is there any updated SWF pack?
Re: Official PlusEMU - Help Thread
Quote:
Originally Posted by
Multify
Is there any updated SWF pack?
Look at retroripper.com