- Joined
- Aug 10, 2011
- Messages
- 7,405
- Reaction score
- 3,314
I love butterfly and the SwiftEMU but there are not works the Wireds.Looks more like a RP emulator. If you want to create that you better switch to Butterfly.
using System;
using Phoenix.HabboHotel.GameClients;
using Phoenix.Messages;
namespace Phoenix.Communication.Messages.Sound
{
internal sealed class GetNowPlayingMessageEvent : Interface
{
public void Handle(GameClient Session, ClientMessage Event)
{
Random rnd = new Random();
int play = rnd.Next(1, 16); // creates a number between 1 and 16
ServerMessage Message = new ServerMessage(327u);
Message.AppendInt32(play);
Message.AppendInt32(6);
Message.AppendInt32(3);
Message.AppendInt32(0);
if (Session.GetHabbo().Class14_0 != null)
{
Message.AppendInt32(Session.GetHabbo().Class14_0.int_13);
}
else
{
Message.AppendInt32(0);
}
Session.SendMessage(Message);
}
}
}
Is in error in the "sit" command and "lay" you off the screen
Sorry my English
Hello you may return the download?Whats not new
haven't seen
Fly or kiss(the way i have added) in any phx version till date nor kill(the way i have added) nor rank nor ach
or control pets or make pets say
Okay ill agree with you on this one but on the ip mainly 3 digits are gone xxx so they can be anything in about 999 combinations or more,
Anyways just wanted to show that everything works on that screen shot,
Thus thanking for pointing that out this will help me improve on my future releases..
Welcome appreciate your time i have cleaned my mailbox and i dont have skype sorry
Regards,
RyanVs
Hey,
I fixed three commands on this emu => roomfreeze / convertshells & convertpixels (about those two Meik2010 you forget to define method_20 and 21 in the inventorycomponent.cs)
Let me know if you want I share my things.
if (Phoenix.smethod_3(dataRow["cmd_roomalert"].ToString()))
{
list.Add("cmd_roomalert");
}
if (Phoenix.smethod_3(dataRow["cmd_roomfreeze"].ToString()))
{
list.Add("cmd_roomfreeze");
}
this.dictionary_4.Add("getoff", 82);
this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_roomfreeze_name"), 84);
this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_redeempixel_name"), 87);
this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_redeemshell_name"), 88);
private static bool bool_14 = false;
private static bool bool_25 = false;
private static bool bool_26 = false;
public static bool Boolean_0
{
get
{
return LicenseTools.bool_14;
}
set
{
LicenseTools.bool_14 = value;
}
}
public static bool Boolean_15
{
get
{
return LicenseTools.bool_25;
}
set
{
LicenseTools.bool_25 = value;
}
}
public static bool Boolean_16
{
get
{
return LicenseTools.bool_26;
}
set
{
LicenseTools.bool_26 = value;
}
}
LicenseTools.Boolean_0 = Phoenix.smethod_3(dataRow["enable_cmd_redeemcredits"].ToString());
LicenseTools.Boolean_15 = Phoenix.smethod_3(dataRow["enable_cmd_redeempixels"].ToString());
LicenseTools.Boolean_16 = Phoenix.smethod_3(dataRow["enable_cmd_redeemshells"].ToString());
if (Session.GetHabbo().HasFuse("cmd_roomalert"))
{
text7 = text7 + PhoenixEnvironment.smethod_1("cmd_roomalert_desc") + "\r\r";
}
if (Session.GetHabbo().HasFuse("cmd_roomfreeze"))
{
text7 = text7 + PhoenixEnvironment.smethod_1("cmd_roomfreeze_desc") + "\r\r";
}
string text8 = "";
if (LicenseTools.Boolean_0)
{
text8 = text8 + PhoenixEnvironment.smethod_1("cmd_redeemcreds_desc") + "\r\r";
}
string text11 = "";
if (LicenseTools.Boolean_15)
{
text11 = text11 + PhoenixEnvironment.smethod_1("cmd_redeempixel_desc") + "\r\r";
}
string text12 = "";
if (LicenseTools.Boolean_16)
{
text12 = text12 + PhoenixEnvironment.smethod_1("cmd_redeemshell_desc") + "\r\r";
}
case 83:
Session.GetHabbo().method_23().method_2();
Session.SendNotif(PhoenixEnvironment.smethod_1("cmd_emptypets_success"));
Phoenix.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
return true;
case 84:
if (!Session.GetHabbo().HasFuse("cmd_roomfreeze"))
return false;
Room room12 = Phoenix.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
if (room12 == null)
return false;
for (int index = 0; index < room12.RoomUser_0.Length; ++index)
{
RoomUser roomUser2 = room12.RoomUser_0[index];
if (roomUser2 != null)
roomUser2.bool_5 = !roomUser2.bool_5;
}
return true;
case 87:
if (!LicenseTools.Boolean_3)
{
Session.GetHabbo().method_28("Impossible pendant un echange!");
return true;
}
else
{
if (LicenseTools.Boolean_15)
{
Session.GetHabbo().method_23().method_20(Session);
}
else
{
Session.GetHabbo().method_28(PhoenixEnvironment.smethod_1("cmd_error_disabled"));
}
return true;
}
case 88:
if (!LicenseTools.Boolean_3)
{
Session.GetHabbo().method_28("Impossible pendant un echange!");
return true;
}
else
{
if (LicenseTools.Boolean_16)
{
Session.GetHabbo().method_23().method_21(Session);
}
else
{
Session.GetHabbo().method_28(PhoenixEnvironment.smethod_1("cmd_error_disabled"));
}
return true;
}
public void method_20(GameClient class16_1)
{
int num1 = 0;
List<UserItem> list = new List<UserItem>();
foreach (UserItem userItem in this.list_0)
{
if (userItem != null && userItem.method_1().Name.StartsWith("PixEx_"))
{
int num2 = int.Parse(userItem.method_1().Name.Split(new char[1]
{
'_'
})[1]);
if (!this.list_1.Contains(userItem.uint_0))
{
if (num2 > 0)
num1 += num2;
list.Add(userItem);
}
}
}
foreach (UserItem userItem in list)
this.method_12(userItem.uint_0, 0U, false);
class16_1.GetHabbo().ActivityPoints += num1;
class16_1.GetHabbo().method_15(true);
class16_1.SendNotif("Tout les lingots de ton inventaire ont ete transformes en " + (object)num1 + " Pixels!");
}
public void method_21(GameClient class16_1)
{
int num1 = 0;
List<UserItem> list = new List<UserItem>();
foreach (UserItem userItem in this.list_0)
{
if (userItem != null && userItem.method_1().Name.StartsWith("PntEx_"))
{
int num2 = int.Parse(userItem.method_1().Name.Split(new char[1]
{
'_'
})[1]);
if (!this.list_1.Contains(userItem.uint_0))
{
if (num2 > 0)
num1 += num2;
list.Add(userItem);
}
}
}
foreach (UserItem userItem in list)
this.method_12(userItem.uint_0, 0U, false);
class16_1.GetHabbo().VipPoints += num1;
class16_1.GetHabbo().method_14(false, true);
class16_1.SendNotif("Tout les lingots de ton inventaire ont ete transformes en " + (object)num1 + " coquillages!");
}
}
}
To add roomfreeze / convertpixels and convertshell commands :
In RoleManager.cs :
Under that :
Add : Be carefull there is two lines in the file with this same expression, you have to add the folowing one in the two parts.Code:if (Phoenix.smethod_3(dataRow["cmd_roomalert"].ToString())) { list.Add("cmd_roomalert"); }
Code:if (Phoenix.smethod_3(dataRow["cmd_roomfreeze"].ToString())) { list.Add("cmd_roomfreeze"); }
Under that :
Code:this.dictionary_4.Add("getoff", 82);
Add :
Code:this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_roomfreeze_name"), 84); this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_redeempixel_name"), 87); this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_redeemshell_name"), 88);
In LicenseTools.cs :
Under that :
Add :Code:private static bool bool_14 = false;
Code:private static bool bool_25 = false; private static bool bool_26 = false;
Then under that :
Code:public static bool Boolean_0 { get { return LicenseTools.bool_14; } set { LicenseTools.bool_14 = value; } }
Add :
Code:public static bool Boolean_15 { get { return LicenseTools.bool_25; } set { LicenseTools.bool_25 = value; } } public static bool Boolean_16 { get { return LicenseTools.bool_26; } set { LicenseTools.bool_26 = value; } }
In Game.cs
Under that :
Add :Code:LicenseTools.Boolean_0 = Phoenix.smethod_3(dataRow["enable_cmd_redeemcredits"].ToString());
Code:LicenseTools.Boolean_15 = Phoenix.smethod_3(dataRow["enable_cmd_redeempixels"].ToString()); LicenseTools.Boolean_16 = Phoenix.smethod_3(dataRow["enable_cmd_redeemshells"].ToString());
In ChatCommandHandler.cs
Under That :
Add :Code:if (Session.GetHabbo().HasFuse("cmd_roomalert")) { text7 = text7 + PhoenixEnvironment.smethod_1("cmd_roomalert_desc") + "\r\r"; }
Then, under that :Code:if (Session.GetHabbo().HasFuse("cmd_roomfreeze")) { text7 = text7 + PhoenixEnvironment.smethod_1("cmd_roomfreeze_desc") + "\r\r"; }
Add :Code:string text8 = ""; if (LicenseTools.Boolean_0) { text8 = text8 + PhoenixEnvironment.smethod_1("cmd_redeemcreds_desc") + "\r\r"; }
Then, under that :Code:string text11 = ""; if (LicenseTools.Boolean_15) { text11 = text11 + PhoenixEnvironment.smethod_1("cmd_redeempixel_desc") + "\r\r"; } string text12 = ""; if (LicenseTools.Boolean_16) { text12 = text12 + PhoenixEnvironment.smethod_1("cmd_redeemshell_desc") + "\r\r"; }
Add :Code:case 83: Session.GetHabbo().method_23().method_2(); Session.SendNotif(PhoenixEnvironment.smethod_1("cmd_emptypets_success")); Phoenix.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input); return true;
Code:case 84: if (!Session.GetHabbo().HasFuse("cmd_roomfreeze")) return false; Room room12 = Phoenix.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId); if (room12 == null) return false; for (int index = 0; index < room12.RoomUser_0.Length; ++index) { RoomUser roomUser2 = room12.RoomUser_0[index]; if (roomUser2 != null) roomUser2.bool_5 = !roomUser2.bool_5; } return true; case 87: if (!LicenseTools.Boolean_3) { Session.GetHabbo().method_28("Impossible pendant un echange!"); return true; } else { if (LicenseTools.Boolean_15) { Session.GetHabbo().method_23().method_20(Session); } else { Session.GetHabbo().method_28(PhoenixEnvironment.smethod_1("cmd_error_disabled")); } return true; } case 88: if (!LicenseTools.Boolean_3) { Session.GetHabbo().method_28("Impossible pendant un echange!"); return true; } else { if (LicenseTools.Boolean_16) { Session.GetHabbo().method_23().method_21(Session); } else { Session.GetHabbo().method_28(PhoenixEnvironment.smethod_1("cmd_error_disabled")); } return true; }
Finally in InventoryComponent.cs
You have to replace the two last } } of the file by :
Code:public void method_20(GameClient class16_1) { int num1 = 0; List<UserItem> list = new List<UserItem>(); foreach (UserItem userItem in this.list_0) { if (userItem != null && userItem.method_1().Name.StartsWith("PixEx_")) { int num2 = int.Parse(userItem.method_1().Name.Split(new char[1] { '_' })[1]); if (!this.list_1.Contains(userItem.uint_0)) { if (num2 > 0) num1 += num2; list.Add(userItem); } } } foreach (UserItem userItem in list) this.method_12(userItem.uint_0, 0U, false); class16_1.GetHabbo().ActivityPoints += num1; class16_1.GetHabbo().method_15(true); class16_1.SendNotif("Tout les lingots de ton inventaire ont ete transformes en " + (object)num1 + " Pixels!"); } public void method_21(GameClient class16_1) { int num1 = 0; List<UserItem> list = new List<UserItem>(); foreach (UserItem userItem in this.list_0) { if (userItem != null && userItem.method_1().Name.StartsWith("PntEx_")) { int num2 = int.Parse(userItem.method_1().Name.Split(new char[1] { '_' })[1]); if (!this.list_1.Contains(userItem.uint_0)) { if (num2 > 0) num1 += num2; list.Add(userItem); } } } foreach (UserItem userItem in list) this.method_12(userItem.uint_0, 0U, false); class16_1.GetHabbo().VipPoints += num1; class16_1.GetHabbo().method_14(false, true); class16_1.SendNotif("Tout les lingots de ton inventaire ont ete transformes en " + (object)num1 + " coquillages!"); } } }
Sorry for the presentation of the things but it's functionnal that is the point.
Then of course you will have to add the column correspunding to roomfreeze in the permissions tables and convershells/pixels in server_settings, if you need my sql table i'll give you.