Re: PlusEMU Faceless Command
Spaghetti, but it does the job. Thanks!
Re: PlusEMU Faceless Command
Re: PlusEMU Faceless Command
Yeah, works very very fine... Thanks for this ^^
Re: PlusEMU Faceless Command
Thanks for this. Don't you have to add a record inside the table > fuse_cmds as well for it to show up in :commands
Re: PlusEMU Faceless Command
Quote:
Originally Posted by
Receiver
Thanks for this. Don't you have to add a record inside the table > fuse_cmds as well for it to show up in :commands
Yes you do, I don't have access to a Plus DB currently so I can't supply a query if you need one :/
Nevermind found it.
Quote:
INSERT INTO `fuse_cmds` (`command`, `rank`, `params`, `description`) VALUES ('faceless', '1', NULL, 'Makes your character faceless');
Re: PlusEMU Faceless Command
Quote:
Originally Posted by
Kristophers
It worked fine for me.
Also, i may think its because im using skybird if that is the problem any changes?
Re: PlusEMU Faceless Command
Quote:
Originally Posted by
rafa95123
Yeah, works very very fine... Thanks for this ^^
Glad it works fine for you. :)
- - - Updated - - -
Here is a fixed version due to a problem with it saying the command and the rank check re-added.
Quote:
#region Faceless
case "faceless":
{
if(Session.GetHabbo().HasCmd("faceless")) {
string[] figureParts;
string[] headParts;
figureParts = Session.GetHabbo().Look.Split('.');
foreach (string Part in figureParts)
{
if (Part.StartsWith("hd"))
{
headParts = Part.Split('-');
if (!headParts[1].Equals("99999"))
headParts[1] = "99999";
else
break;
string NewHead = "hd-" + headParts[1] + "-" + headParts[2];
Session.GetHabbo().Look = Session.GetHabbo().Look.Replace(Part, NewHead);
break;
}
}
using (IQueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().getQueryreactor())
{
dbClient.setQuery("UPDATE users SET look = @Look WHERE username = @username");
dbClient.addParameter("look", Session.GetHabbo().Look);
dbClient.addParameter("username", Session.GetHabbo().Username);
dbClient.runQuery();
}
Room Room = Session.GetHabbo().CurrentRoom;
if (Room == null)
return true;
RoomUser User = Room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
if (User == null)
return true;
#region Messages
Session.GetMessageHandler().GetResponse().Init(Outgoing.UpdateUserInformation);
Session.GetMessageHandler().GetResponse().AppendInt32(-1);
Session.GetMessageHandler().GetResponse().AppendString(Session.GetHabbo().Look);
Session.GetMessageHandler().GetResponse().AppendString(Session.GetHabbo().Gender.ToLower());
Session.GetMessageHandler().GetResponse().AppendString(Session.GetHabbo().Motto);
Session.GetMessageHandler().GetResponse().AppendInt32(Session.GetHabbo().AchievementPoints);
Session.GetMessageHandler().SendResponse();
ServerMessage RoomUpdate = new ServerMessage(Outgoing.UpdateUserInformation);
RoomUpdate.AppendInt32(User.VirtualId);
RoomUpdate.AppendString(Session.GetHabbo().Look);
RoomUpdate.AppendString(Session.GetHabbo().Gender.ToLower());
RoomUpdate.AppendString(Session.GetHabbo().Motto);
RoomUpdate.AppendInt32(Session.GetHabbo().AchievementPoints);
Room.SendMessage(RoomUpdate);
#endregion
return true;
}
}
#endregion
You will need to run the following query.
Quote:
INSERT INTO `fuse_cmds` (`command`, `rank`, `params`, `description`) VALUES ('faceless', '1', NULL, 'Makes your character faceless');
Re: PlusEMU Faceless Command
Legend, Thanks dude! :D
Keep up the great work
Re: PlusEMU Faceless Command
It's alright if you want anything made like commands etc and not sure how to do it just PM me and I'll see what I can do.
Re: PlusEMU Faceless Command
i did try and PM you haha but your in box is full! xD
Do you have a fix for (override) ?
Re: PlusEMU Faceless Command
I sent you a PM I think, if not just send me one telling me whats up with it :)
Re: PlusEMU Faceless Command
Re: PlusEMU Faceless Command
Quote:
Originally Posted by
Power69
PHP Code:
internal void faceless()
{
string[] figureParts;
string[] headParts;
figureParts = Session.GetHabbo().Look.Split('.');
foreach (string Part in figureParts)
{
if (Part.StartsWith("hd"))
{
headParts = Part.Split('-');
if (!headParts[1].Equals("99999"))
headParts[1] = "99999";
else
break;
string NewHead = "hd-" + headParts[1] + "-" + headParts[2];
Session.GetHabbo().Look = Session.GetHabbo().Look.Replace(Part, NewHead);
break;
}
}
using (IQueryAdapter dbClient = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
{
dbClient.setQuery("UPDATE users SET look = [MENTION=1333417016]Look[/MENTION] WHERE username = [MENTION=411303]username[/MENTION]");
dbClient.addParameter("look", Session.GetHabbo().Look);
dbClient.addParameter("username", Session.GetHabbo().Username);
dbClient.runQuery();
}
Room Room = Session.GetHabbo().CurrentRoom;
RoomUser User = Room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
#region Messages
Session.GetMessageHandler().GetResponse().Init(Outgoing.UpdateUserInformation);
Session.GetMessageHandler().GetResponse().AppendInt32(-1);
Session.GetMessageHandler().GetResponse().AppendString(Session.GetHabbo().Look);
Session.GetMessageHandler().GetResponse().AppendString(Session.GetHabbo().Gender.ToLower());
Session.GetMessageHandler().GetResponse().AppendString(Session.GetHabbo().Motto);
Session.GetMessageHandler().GetResponse().AppendInt32(Session.GetHabbo().AchievementPoints);
Session.GetMessageHandler().SendResponse();
ServerMessage RoomUpdate = new ServerMessage(Outgoing.UpdateUserInformation);
RoomUpdate.AppendInt32(User.VirtualId);
RoomUpdate.AppendString(Session.GetHabbo().Look);
RoomUpdate.AppendString(Session.GetHabbo().Gender.ToLower());
RoomUpdate.AppendString(Session.GetHabbo().Motto);
RoomUpdate.AppendInt32(Session.GetHabbo().AchievementPoints);
Room.SendMessage(RoomUpdate);
#endregion
}
PHP Code:
case 83:
commandHandler.faceless();
break;
PHP Code:
[faceless]
faceless.minrank=0
faceless.description= faceless
faceless.prefix=
faceless.input=faceless
faceless.clubs=
credits to for the plus command i just converted it to swift @
j4cko
This is for swfit :)
Re: PlusEMU Faceless Command
Quote:
Originally Posted by
Power69
This is for swfit :)
Thanks for this, saved me some time. :)
Re: PlusEMU Faceless Command
Quote:
Originally Posted by
j4cko
Thanks for this, saved me some time. :)
Welcome :)!
Re: PlusEMU Faceless Command
Many thanks for this, will be useful in the long run!
Re: PlusEMU Faceless Command
After doing the 2nd update. I get 1 error from case "faceless":
http://prntscr.com/2rglgp
Re: PlusEMU Faceless Command
Jack you had an error in your coding you put the return true; in the wrong spot which causes the case "faceless" to have an error Here is the fix.
Code:
#region Faceless case "faceless":
{
if (Session.GetHabbo().HasCmd("faceless"))
{
string[] figureParts;
string[] headParts;
figureParts = Session.GetHabbo().Look.Split('.');
foreach (string Part in figureParts)
{
if (Part.StartsWith("hd"))
{
headParts = Part.Split('-');
if (!headParts[1].Equals("99999"))
headParts[1] = "99999";
else
break;
string NewHead = "hd-" + headParts[1] + "-" + headParts[2];
Session.GetHabbo().Look = Session.GetHabbo().Look.Replace(Part, NewHead);
break;
}
}
using (IQueryAdapter dbClient = SilverwaveEnvironment.GetDatabaseManager().getQueryreactor())
{
dbClient.setQuery("UPDATE users SET look = @Look WHERE username = @username");
dbClient.addParameter("look", Session.GetHabbo().Look);
dbClient.addParameter("username", Session.GetHabbo().Username);
dbClient.runQuery();
}
Room Room = Session.GetHabbo().CurrentRoom;
if (Room == null)
return true;
RoomUser User = Room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
if (User == null)
return true;
#region Messages
Session.GetMessageHandler().GetResponse().Init(Outgoing.UpdateUserInformation);
Session.GetMessageHandler().GetResponse().AppendInt32(-1);
Session.GetMessageHandler().GetResponse().AppendString(Session.GetHabbo().Look);
Session.GetMessageHandler().GetResponse().AppendString(Session.GetHabbo().Gender.ToLower());
Session.GetMessageHandler().GetResponse().AppendString(Session.GetHabbo().Motto);
Session.GetMessageHandler().GetResponse().AppendInt32(Session.GetHabbo().AchievementPoints);
Session.GetMessageHandler().SendResponse();
ServerMessage RoomUpdate = new ServerMessage(Outgoing.UpdateUserInformation);
RoomUpdate.AppendInt32(User.VirtualId);
RoomUpdate.AppendString(Session.GetHabbo().Look);
RoomUpdate.AppendString(Session.GetHabbo().Gender.ToLower());
RoomUpdate.AppendString(Session.GetHabbo().Motto);
RoomUpdate.AppendInt32(Session.GetHabbo().AchievementPoints);
Room.SendMessage(RoomUpdate);
#endregion
}
return true;
}
#endregion
Re: PlusEMU Faceless Command
I get an error it was PlusEmulatorEnviorment doesn't exisit, I've added it below the :sit command :/
Re: PlusEMU Faceless Command
Quote:
Originally Posted by
IcePhreak
I get an error it was PlusEmulatorEnviorment doesn't exisit, I've added it below the :sit command :/
Are you using Skybird or Plus if you're using Skybird Johno's emu change
Code:
PlusEmulatorEnviorment
To
Code:
SilverwaveEnviorment
Re: PlusEMU Faceless Command
Quote:
Originally Posted by
13rad
Are you using Skybird or Plus if you're using Skybird Johno's emu change
Code:
PlusEmulatorEnviorment
To
Code:
SilverwaveEnviorment
You're code above doesn't show PlusEnviorment?
Okay I used the original code, Now I get the error from the guy above.
Re: PlusEMU Faceless Command
Quote:
Originally Posted by
IcePhreak
You're code above doesn't show PlusEnviorment?
Okay I used the original code, Now I get the error from the guy above.
Correct, thats because Im using Johno's emu release which he has changed all of the enviorments etc. to Silverwave. So, I had to change mine from PlusEnviorment to SilverwaveEnviorment
What emu r u using?
Re: PlusEMU Faceless Command
I'm using Skybird, I got it to compile fine now testing ingame.
_________________________--
Command works, thanks Brad your pro.
Re: PlusEMU Faceless Command
What visual basic do I need. I have 2010 and I can't edit anything. It says not compatible with program or whatever.