To add roomfreeze / convertpixels and convertshell commands :
In RoleManager.cs :
Under that :
Code:
if (Phoenix.smethod_3(dataRow["cmd_roomalert"].ToString()))
{
list.Add("cmd_roomalert");
}
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_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 :
Code:
private static bool bool_14 = false;
Add :
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 :
Code:
LicenseTools.Boolean_0 = Phoenix.smethod_3(dataRow["enable_cmd_redeemcredits"].ToString());
Add :
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 :
Code:
if (Session.GetHabbo().HasFuse("cmd_roomalert"))
{
text7 = text7 + PhoenixEnvironment.smethod_1("cmd_roomalert_desc") + "\r\r";
}
Add :
Code:
if (Session.GetHabbo().HasFuse("cmd_roomfreeze"))
{
text7 = text7 + PhoenixEnvironment.smethod_1("cmd_roomfreeze_desc") + "\r\r";
}
Then, under that :
Code:
string text8 = "";
if (LicenseTools.Boolean_0)
{
text8 = text8 + PhoenixEnvironment.smethod_1("cmd_redeemcreds_desc") + "\r\r";
}
Add :
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";
}
Then, under that :
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;
Add :
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.