[MercuryEMU] Warpto, Warptome Commands

Jaden

not so active
Aug 24, 2014
886
263
Just thought i'd release a few commands for the community.
Add These above your
Code:
Input = Input.Substring(1);
Add
Code:
Room room = Session.GetHabbo().CurrentRoom;
RoomUser profile = room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
Code:
#region :warptome <username>
                    case "warptome":
                        {
                            RoomUser AvatarTarget = room.GetRoomUserManager().GetRoomUserByHabbo(Params[1]);
                            if (Session.GetHabbo().Rank < 4) return true;
                            else if (Session.GetHabbo().Rank > 4) {
                                AvatarTarget.X = profile.X;
                                AvatarTarget.Y = profile.Y;
                                AvatarTarget.Z = profile.Z;
                                profile.Chat(Session, "*Warps " + AvatarTarget.GetUsername() + " to them*", true, 1, 1);
                                AvatarTarget.UpdateNeeded = true;
                            }
                        }
                        return true;
                    #endregion

                    #region :warpto <username>
                    case "warpto":
                        {
                            RoomUser AvatarTarget = room.GetRoomUserManager().GetRoomUserByHabbo(Params[1]);
                            if (Session.GetHabbo().Rank < 4) return true;
                            else if (Session.GetHabbo().Rank > 4)
                            {
                                profile.X = AvatarTarget.X;
                                profile.Y = AvatarTarget.Y;
                                profile.Z = AvatarTarget.Z;
                                profile.Chat(Session, "*Warps to " + AvatarTarget.GetUsername() + "*", true, 1, 1);
                                profile.UpdateNeeded = true;
                            }
                        }
                        return true;
                    #endregion
 

LeChris

John 15:18
Sep 30, 2013
2,786
1,395
It's a good command, I just dislike to whole command name. I think summon was always a more efficient command name, but either way. Thanks.
 

Users who are viewing this thread

Top