Adding Commands to Mercury EMU

Results 1 to 4 of 4
  1. #1
    Sorcerer Supreme RetroPiggy is offline
    Member +Rank
    Aug 2013 Join Date
    UKLocation
    288Posts

    Adding Commands to Mercury EMU

    Hello RageZone,

    I have added commands to emulator before and it has all worked so the the commands functioned correctly.
    I am trying to add commands to MercuryEMU but every time I add the commands and debug 13 errors appear that were not there before the command was added. This happens with any command I try to add.

    I would try solve it myself but when it comes to emulator code stuff I have little knowledge and only know how to do small changes like adding commands but this time its not working. I have also added the command in fuse_cmd but that doesn't change anything


  2. #2
    Sorcerer Supreme RetroPiggy is offline
    Member +Rank
    Aug 2013 Join Date
    UKLocation
    288Posts

    Re: Adding Commands to Mercury EMU

    For a help section, it seems slightly inactive to me...

  3. #3
    R.I.P Millercent FatalLulz is offline
    Grand MasterRank
    Nov 2012 Join Date
    AustraliaLocation
    2,240Posts

    Re: Adding Commands to Mercury EMU

    Quote Originally Posted by RetroPiggy View Post
    For a help section, it seems slightly inactive to me...
    Simply because most people aren't willing to help or don't supply the right requirements.

    For me to help you, I need the command code and the errors it logs..

  4. #4
    Sorcerer Supreme RetroPiggy is offline
    Member +Rank
    Aug 2013 Join Date
    UKLocation
    288Posts

    Re: Adding Commands to Mercury EMU

    This is the command code I would like to add:
    Code:
                        
                            case "car":
                            {
                                if (!this.Session.GetHabbo().VIP)
                                {
                                    this.Session.SendWhisper("This is foor VIPs");
                                    return true;
                                }
                                else
                                {
                                    if (this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().CurrentEffect != 12)
                                    {
                                        if (this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().CurrentEffect != 69)
                                        {
                                            RoomUser racer = MercuryEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId).GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Id);
                                            racer.ApplyEffect(69);
                                            racer.FastWalking = true;
                                            racer.Chat(racer.GetClient(), "* Starts car en *", false, 0, 2);
                                            return true;
                                        }
                                        if (this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().CurrentEffect == 12)
                                        {
                                            this.Session.SendWhisper("You cannot do this while frozen!");
                                            return true;
                                        }
                                        else
                                        {
                                            RoomUser racer = MercuryEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId).GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Id);
                                            racer.ApplyEffect(0);
                                            racer.FastWalking = false;
                                            racer.Chat(racer.GetClient(), "* Drives Around *", false, 0, 2);
                                            return true;
                                        }
                                    }
                                    else
                                    {
                                        this.Session.SendWhisper("You cannot do this while frozen");
                                        return true;
                                    }
                                }                        
                            }
    
    And these are the errors I get when debugging:

    Errors



Advertisement