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!

[Mercury][Free] Command making service

Status
Not open for further replies.
Newbie Spellweaver
Joined
Nov 3, 2013
Messages
91
Reaction score
1
I'll c whether I'm able to make that or not. Sorry if not





What does kill do?

I would like once the command executed on a player , the player falls to the ground and say the sentence: " ARHG I touched Death * * " , and the shooter , the phrase "Here , I ' I stop , hahaha ! "
 
Experienced Elementalist
Joined
Jul 1, 2012
Messages
232
Reaction score
37
I would like once the command executed on a player , the player falls to the ground and say the sentence: " ARHG I touched Death * * " , and the shooter , the phrase "Here , I ' I stop , hahaha ! "

:kill
Code:
                    case "kill":
                        {
                            if (!this.Session.GetHabbo().GotCommand("kill"))
                            {
                                this.Session.SendWhisper("You are not allowed to perform this command");
                                return true;
                            }
                            if (Params.Length <= 1)
                            {
                                SendChatMessage(this.Session, "Please fill in a user");
                                return true;
                            }
                            else
                            {
                                Room kamertje = MercuryEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId);
                                if (kamertje != null)
                                {
                                    RoomUser spelertje = kamertje.GetRoomUserManager().GetRoomUserByHabbo(Convert.ToString(Params[1]));
                                    RoomUser struikelaar = kamertje.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Username);
                                    if (spelertje != null)
                                    {
                                        if ((Math.Abs((int)(spelertje.X - struikelaar.X)) < 2) && (Math.Abs((int)(spelertje.Y - struikelaar.Y)) < 2))
                                        {
                                            if (spelertje.IsLyingDown == false && spelertje.IsSitting == false)
                                            {
                                                if (Params[1] != this.Session.GetHabbo().Username)
                                                {
                                                    spelertje.Statusses.Add("lay", "0.55");
                                                    spelertje.IsLyingDown = true;
                                                    spelertje.UpdateNeeded = true;
                                                    struikelaar.Chat(struikelaar.GetClient(), "* Here I, I stop! Muhahaha!!! *", true, 0, 3);
                                                    spelertje.Chat(spelertje.GetClient(), "* Argh! I touched death! *", true, 0, 3);
                                                    return true;
                                                }
                                                else
                                                {
                                                    RoomUser autist = MercuryEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId).GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Username);
                                                    autist.Chat(autist.GetClient(), "I am sad", false, 0, 0);
                                                    return true;
                                                }
                                            }
                                            else
                                            {
                                                this.Session.SendWhisper("You can not kill someone who already lies/sits");
                                                return true;
                                            }
                                        }
                                        else
                                        {
                                            this.Session.SendWhisper("User is not besides you");
                                            return true;
                                        }
                                    }
                                    else
                                    {
                                        this.Session.SendWhisper("User could not be found");
                                        return true; // made by Weed aka AskethZ
                                    }
                                }
                            }
                            return true;
                        }

:givekiss
:)kiss is impossible due this thing when you say :kiss you automatically make a kiss move)
Code:
                    case "givekiss":
                    case "kus":
                        {
                            if (!this.Session.GetHabbo().GotCommand("givekiss"))
                            {
                                this.Session.SendWhisper("Je mag dit niet");
                                return true;
                            }
                            if (Params.Length <= 1)
                            {
                                this.Session.SendWhisper("Please fill in a user");
                                return true;
                            }
                            if (this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().CurrentEffect != 12 || this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().CurrentEffect != 69)
                            {
                                Room kamertje = MercuryEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId);
                                if (kamertje != null)
                                {
                                    RoomUser spelertje = kamertje.GetRoomUserManager().GetRoomUserByHabbo(Convert.ToString(Params[1]));
                                    RoomUser kusser = kamertje.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Username);
                                    if (spelertje != null)
                                    {
                                        if ((Math.Abs((int)(spelertje.X - kusser.X)) < 2) && (Math.Abs((int)(spelertje.Y - kusser.Y)) < 2) && this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().CurrentEffect != 178)
                                        {
                                            spelertje.Chat(spelertje.GetClient(), "* Gets kissed by " + this.Session.GetHabbo().Username + " :$ *", false, 0, 16);
                                            this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().ActivateCustomEffect(9, true);
                                            return true;
                                        }
                                        else
                                        {
                                            this.Session.SendWhisper("User is not besides you");
                                            return true;
                                        }

                                    }
                                    else
                                    {
                                        this.Session.SendWhisper("User could not be found");
                                        return true; // made by Weed aka AskethZ
                                    }
                                }
                            }
                            else
	                        {
                                this.Session.SendWhisper("You are frozen or driving a car, and therefor you may not perform this command");
                                return true;
	                        }
                            return true;
                        }
 
Newbie Spellweaver
Joined
Nov 3, 2013
Messages
91
Reaction score
1
:kill
Code:
                    case "kill":
                        {
                            if (!this.Session.GetHabbo().GotCommand("kill"))
                            {
                                this.Session.SendWhisper("You are not allowed to perform this command");
                                return true;
                            }
                            if (Params.Length <= 1)
                            {
                                SendChatMessage(this.Session, "Please fill in a user");
                                return true;
                            }
                            else
                            {
                                Room kamertje = MercuryEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId);
                                if (kamertje != null)
                                {
                                    RoomUser spelertje = kamertje.GetRoomUserManager().GetRoomUserByHabbo(Convert.ToString(Params[1]));
                                    RoomUser struikelaar = kamertje.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Username);
                                    if (spelertje != null)
                                    {
                                        if ((Math.Abs((int)(spelertje.X - struikelaar.X)) < 2) && (Math.Abs((int)(spelertje.Y - struikelaar.Y)) < 2))
                                        {
                                            if (spelertje.IsLyingDown == false && spelertje.IsSitting == false)
                                            {
                                                if (Params[1] != this.Session.GetHabbo().Username)
                                                {
                                                    spelertje.Statusses.Add("lay", "0.55");
                                                    spelertje.IsLyingDown = true;
                                                    spelertje.UpdateNeeded = true;
                                                    struikelaar.Chat(struikelaar.GetClient(), "* Here I, I stop! Muhahaha!!! *", true, 0, 3);
                                                    spelertje.Chat(spelertje.GetClient(), "* Argh! I touched death! *", true, 0, 3);
                                                    return true;
                                                }
                                                else
                                                {
                                                    RoomUser autist = MercuryEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId).GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Username);
                                                    autist.Chat(autist.GetClient(), "I am sad", false, 0, 0);
                                                    return true;
                                                }
                                            }
                                            else
                                            {
                                                this.Session.SendWhisper("You can not kill someone who already lies/sits");
                                                return true;
                                            }
                                        }
                                        else
                                        {
                                            this.Session.SendWhisper("User is not besides you");
                                            return true;
                                        }
                                    }
                                    else
                                    {
                                        this.Session.SendWhisper("User could not be found");
                                        return true; // made by Weed aka AskethZ
                                    }
                                }
                            }
                            return true;
                        }

:givekiss
:)kiss is impossible due this thing when you say :kiss you automatically make a kiss move)
Code:
                    case "givekiss":
                    case "kus":
                        {
                            if (!this.Session.GetHabbo().GotCommand("givekiss"))
                            {
                                this.Session.SendWhisper("Je mag dit niet");
                                return true;
                            }
                            if (Params.Length <= 1)
                            {
                                this.Session.SendWhisper("Please fill in a user");
                                return true;
                            }
                            if (this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().CurrentEffect != 12 || this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().CurrentEffect != 69)
                            {
                                Room kamertje = MercuryEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId);
                                if (kamertje != null)
                                {
                                    RoomUser spelertje = kamertje.GetRoomUserManager().GetRoomUserByHabbo(Convert.ToString(Params[1]));
                                    RoomUser kusser = kamertje.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Username);
                                    if (spelertje != null)
                                    {
                                        if ((Math.Abs((int)(spelertje.X - kusser.X)) < 2) && (Math.Abs((int)(spelertje.Y - kusser.Y)) < 2) && this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().CurrentEffect != 178)
                                        {
                                            spelertje.Chat(spelertje.GetClient(), "* Gets kissed by " + this.Session.GetHabbo().Username + " :$ *", false, 0, 16);
                                            this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().ActivateCustomEffect(9, true);
                                            return true;
                                        }
                                        else
                                        {
                                            this.Session.SendWhisper("User is not besides you");
                                            return true;
                                        }

                                    }
                                    else
                                    {
                                        this.Session.SendWhisper("User could not be found");
                                        return true; // made by Weed aka AskethZ
                                    }
                                }
                            }
                            else
                            {
                                this.Session.SendWhisper("You are frozen or driving a car, and therefor you may not perform this command");
                                return true;
                            }
                            return true;
                        }

Thanks, super !
 
Newbie Spellweaver
Joined
Oct 24, 2014
Messages
6
Reaction score
0
Thanks for makesay and boom!!



they work really fine!but staffduty don't work! I'm sure I've added it.Can you take a look at the code and test it?
60xSPti - [Mercury][Free] Command making service - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Experienced Elementalist
Joined
Jul 1, 2012
Messages
232
Reaction score
37
Thanks for makesay and boom!!



they work really fine!but staffduty don't work! I'm sure I've added it.Can you take a look at the code and test it?
60xSPti - [Mercury][Free] Command making service - RaGEZONE Forums

Read first sentence of the command. Please add staffbadge in ur fuse_cmds
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Oct 22, 2014
Messages
10
Reaction score
0
:deleteroom
(Deletes the current room)
Rank: 6

:changename_on
(Es. :changename_on Trevor) (If trevor has already used the Change Name button, whit this command he can use it again)
I'd also like if user dc whith alert "You can now use the change name"
min.rank 6
 
Last edited:
Experienced Elementalist
Joined
Jul 1, 2012
Messages
232
Reaction score
37
:deleteroom
(Deletes the current room)
Rank: 6

:changename_on
(Es. :changename_on Trevor) (If trevor has already used the Change Name button, whit this command he can use it again)
I'd also like if user dc whith alert "You can now use the change name"
min.rank 6

I don't know exactly how changename check works, but ill figure it out. deleteroom is coming
 
Experienced Elementalist
Joined
Aug 26, 2012
Messages
248
Reaction score
49
I don't know exactly how changename check works, but ill figure it out. deleteroom is coming

Look at some off my command threads, for the name change and does anyone still want brb and afk command that tell you how there been gone for I still have it somewhere?
 
Experienced Elementalist
Joined
Jul 1, 2012
Messages
232
Reaction score
37
:deleteroom
(Deletes the current room)
Rank: 6

:changename_on
(Es. :changename_on Trevor) (If trevor has already used the Change Name button, whit this command he can use it again)
I'd also like if user dc whith alert "You can now use the change name"
min.rank 6

Code:
                    case "deleteroom":
                        {
                            if (!this.Session.GetHabbo().GotCommand("deleteroom"))
                            {
                                this.Session.SendWhisper("You are not allowed to do this");
                                return true;
                            }
                            else
                            {
                                RoomUser sjors = MercuryEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId).GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Username);
                                Room kamer = MercuryEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId);
                                if (kamer.CheckRights(this.Session, true, false))
                                {
                                    this.Session.GetHabbo().UsersRooms.Remove(kamer.RoomData);
                                    MercuryEnvironment.GetGame().GetRoomManager().UnloadRoom(kamer);
                                }
                            }
                            return true;
                        }
 
Skilled Illusionist
Joined
Jul 30, 2008
Messages
340
Reaction score
50
Mind sharing you're edit of mercury emulator with us or me:)?
 
Skilled Illusionist
Joined
Jul 30, 2008
Messages
340
Reaction score
50
Mister donszeh, my edit contains weeks of work. I am sorry not releasing it.

I understand it. Because people will just take credit for your work. Well, thanks for responsing tho. Because some people just ignore it :)
 
Newbie Spellweaver
Joined
Oct 24, 2014
Messages
6
Reaction score
0
:invisble
(He disappears without showing even the shadow)
min. rank 5
 
Last edited:
Joined
Jul 30, 2013
Messages
1
Reaction score
0
Hi !
Great service, thank you very much!

My command:

i would like to make the currency of the day on the hotel website. A kind of MUS but this one does not work with Mercury.

:refresh_diamants


thanks!
 
Newbie Spellweaver
Joined
Mar 30, 2014
Messages
19
Reaction score
1
:invisble
(He disappears without showing even the shadow)
min. rank 5

case "invisible":
case "spec":
case "spectatorsmode":
if (this.Session.GetHabbo().GotCommand("invisible"))
{
if (this.Session.GetHabbo().SpectatorMode)
{
this.Session.GetHabbo().SpectatorMode = false;
this.Session.SendNotif("You are not invisible anymore.");
}
else
{
this.Session.GetHabbo().SpectatorMode = true;
this.Session.SendNotif("Reload the room to be invisible");
}
}
return true;

Here is the code
 
Status
Not open for further replies.
Back
Top