:roll (number)
It's like a dice rigger..
I'll c whether I'm able to make that or not. Sorry if not
The commands:
:kiss, :kill.
What does kill do?
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!:roll (number)
It's like a dice rigger..
The commands:
:kiss, :kill.
I converted the buy and sell command from plus. Works well enough.
I converted the buy and sell command from plus. Works well enough.
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 ! "
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;
}
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;
}
: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 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?
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?
: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
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?
: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
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;
}
Mind sharing you're edit of mercury emulator with us or me?
Mister donszeh, my edit contains weeks of work. I am sorry not releasing it.
:invisble
(He disappears without showing even the shadow)
min. rank 5