Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

PHX (MY EDITON) | FLY | LAY | KISS | KILL | RANK | ACH | EVENT & More

Status
Not open for further replies.
Skilled Illusionist
Joined
Oct 20, 2010
Messages
329
Reaction score
84
If i change the GetNowPlayingMessageEvent.cs to :

PHP:
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);
		}
	}
}

But after completion of the song it stops playing, where is set the repeat function in the class ?
 
Newbie Spellweaver
Joined
Jun 11, 2013
Messages
17
Reaction score
3
Is in error in the "sit" command and "lay" you off the screen

Sorry my English
 
Newbie Spellweaver
Joined
Feb 20, 2013
Messages
19
Reaction score
0
Where would i change the rank from rank 8 to rank 9 in the source i cant seem to find it i dont want the MOD's having certain commands
 
Joined
Sep 10, 2011
Messages
778
Reaction score
138
Very bad EMU in my opinion. Seems more aimed at a Roleplay than a regular hotel. Imagicians source is a lot better to build on as this one is just bad for your CPU and it had loads of bugs.
 
Newbie Spellweaver
Joined
Dec 4, 2013
Messages
13
Reaction score
0
I don't have any problems with this EMU. CPU loads is normal.
In the Source i must add the new commands in the table commands_permission to change it for the rank level.

Nice EMU. I love it. A great EMU to make some features Thanks
 
Newbie Spellweaver
Joined
Apr 25, 2013
Messages
8
Reaction score
0
Re: PHX (MY EDITON) | FLY | LAY | KISS | KILL | RANK | ACH | EVENT & More

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
Hello you may return the download?
 
Newbie Spellweaver
Joined
Sep 27, 2012
Messages
30
Reaction score
2
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.
 
Elite Diviner
Joined
Feb 27, 2013
Messages
485
Reaction score
83
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.

Yes, could you share that please, thanks alot.
 
Newbie Spellweaver
Joined
Sep 27, 2012
Messages
30
Reaction score
2
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.
 
Last edited:
Elite Diviner
Joined
Feb 27, 2013
Messages
485
Reaction score
83
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.

I don't have the actual emulator, and i can't download it. Could you provide me with the emulator and sqls. If so, you'd be amazing, thanks
 
Newbie Spellweaver
Joined
Sep 27, 2012
Messages
30
Reaction score
2
Oh really, the file has been removed... I guess i still have the original version somewhere, about the sql if you used the imagician version before, you don't need any updates. I will send you a PM with a dowload link in a few minutes.
 
Newbie Spellweaver
Joined
Sep 27, 2012
Messages
30
Reaction score
2
I'm now trying to add roompolls, it is not than hard since i've found a uber source for, just to adapt :D
 
Status
Not open for further replies.
Back
Top