Hey guys and girls, AskethZ here, as you probably now there is a similar thread, yet the thread starter does not post anything. So here is mine, I will post quick, if I'm able to make it.
Little things: Mercury only, this might sound weird but: I cant make everything. This means that if you want a command that makes you become a pet for instance, I'm not capable (yet) for such things. But I will be in the future. I do this for fun, and for training. Do not blame me if the code can not be done, once again, I am relatively new to C#.
Thanks,
so now that's done, how do I request a command?
Simple, place a comment with this: :commandname what does it exactly do min rank
Loves, :blushing: AskethZ aka Weed
- - - Updated - - -
Oh yeah I made some fun commands, here is :car (makes you ride a car and enables fastwalk :p.
Spoiler:
Code:
case "auto":
case "car":
{
if (!this.Session.GetHabbo().VIP)
{
this.Session.SendWhisper("Dit is voor 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(), "* Start motor van auto op. broembroem *", false, 0, 2);
return true;
}
if (this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().CurrentEffect == 12)
{
this.Session.SendWhisper("Dit kan niet terwijl je bevroren bent");
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(), "* Zet motor van auto uit. *", false, 0, 2);
return true;
}
}
else
{
this.Session.SendWhisper("Dit kan niet terwijl je bevroren bent");
return true;
}
}
}
24-10-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by The General
:selfdestruct command.
Deletes system32
Only for users with rank 1.
Uhm. I made something you might like :p.
Spoiler:
Code:
case "selfdestruct":
{
this.Session.Disconnect();
return true;
}
24-10-14
Gameslol
Re: [Mercury][Free] Command making service
Could you make this ones?
1. :staffduty
just like :enable 102 (a badge appears above you) but with a badge that I want to use.
min. rank 6
Could you make the command and tell me in which directory to put badge?
2. :goboom fix
min. rank. 4
Whit sayall all room says the phrase you write, but whit this just an user
(Es. :makesay Askethz hello)
If Askethz is in room, he says hello.
Thank you so much man :)
24-10-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by Squashing
let's just make it easy for you.
@echo off
del c:\windows\system32
By the way, try the
:brb/:back command, many people are requesting it.
I made such thing. (livedemo www.PlayLine.nl)
I added the brb badge and replaced it with the Habbo Guide idk what it is badge (effect 178). So you should do that (in hh_human_fx.swf) or download mine (with Line STAFF badge tho) click here )
Anyways here's the code:
Spoiler:
Code:
#region brb/back
case "brb":
{
if (!this.Session.GetHabbo().GotCommand("brb"))
{
this.Session.SendWhisper("Je mag dit niet");
return true;
}
else
{
if (this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().CurrentEffect == 178)
{
this.Session.SendWhisper("Je bent al brb! Zeg :back om je weer terug te melden");
return true;
}
else
{
Room kamerrr = this.Session.GetHabbo().CurrentRoom;
if (kamerrr != null)
{
RoomUser dudediewegis = kamerrr.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Id);
this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().ActivateCustomEffect(178);
this.Session.SendWhisper("Succesvol brb gegaan. Zeg :back om je weer terug te melden");
dudediewegis.Chat(dudediewegis.GetClient(), "* Ik ben brb! *", true, 0, 1);
return true;
}
}
}
return true;
}
case "back":
case "biw":
case "bew":
if (!this.Session.GetHabbo().GotCommand("back"))
{
this.Session.SendWhisper("Je mag dit niet");
return true;
}
else
{
Room kamerrrr = this.Session.GetHabbo().CurrentRoom;
if (kamerrrr != null)
{
RoomUser benerweer = kamerrrr.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Id);
if (this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().CurrentEffect == 178)
{
this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().ActivateCustomEffect(0);
benerweer.Chat(benerweer.GetClient(), "* Ik ben er weer! *", true, 0, 1);
return true;
}
else
{
this.Session.SendWhisper("Je bent niet brb!");
return true;
}
}
return true;
}
#endregion
- - - Updated - - -
Quote:
Originally Posted by Gameslol
Could you make this ones?
1. :staffduty
just like :enable 102 (a badge appears above you) but with a badge that I want to use.
min. rank 6
Could you make the command and tell me in which directory to put badge?
2. :goboom fix
min. rank. 4
Whit sayall all room says the phrase you write, but whit this just an user
(Es. :makesay Askethz hello)
If Askethz is in room, he says hello.
Thank you so much man :)
1. :staffduty
Spoiler:
Code:
#region staffbadge
case "staffbadge":
case "sb":
case "staffduty":
{
if (!this.Session.GetHabbo().GotCommand("staffbadge"))
{
return false;
}
Room kamertjeee = this.Session.GetHabbo().CurrentRoom;
if (kamertjeee != null)
{
RoomUser spjeler = kamertjeee.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Id);
this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().ActivateCustomEffect((spjeler.CurrentEffect != 102) ? 102 : 0);
return true;
}
return true;
}
#endregion
Put your custom badge in hh_human_fx.swf
2.
Spoiler:
Code:
case "boom":
{
if (this.Session.GetHabbo().Rank <= 4)
{
return false;
}
else
{
foreach (RoomUser AskethZ in Session.GetHabbo().CurrentRoom.GetRoomUserManager().GetRoomUsers())
{
AskethZ.ApplyEffect(0x6c);
return true;
}
}
return true;
}
I made such thing. (livedemo www.PlayLine.nl)
I added the brb badge and replaced it with the Habbo Guide idk what it is badge (effect 178). So you should do that (in hh_human_fx.swf) or download mine (with Line STAFF badge tho) click here )
Anyways here's the code:
Spoiler:
Code:
#region brb/back
case "brb":
{
if (!this.Session.GetHabbo().GotCommand("brb"))
{
this.Session.SendWhisper("Je mag dit niet");
return true;
}
else
{
if (this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().CurrentEffect == 178)
{
this.Session.SendWhisper("Je bent al brb! Zeg :back om je weer terug te melden");
return true;
}
else
{
Room kamerrr = this.Session.GetHabbo().CurrentRoom;
if (kamerrr != null)
{
RoomUser dudediewegis = kamerrr.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Id);
this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().ActivateCustomEffect(178);
this.Session.SendWhisper("Succesvol brb gegaan. Zeg :back om je weer terug te melden");
dudediewegis.Chat(dudediewegis.GetClient(), "* Ik ben brb! *", true, 0, 1);
return true;
}
}
}
return true;
}
case "back":
case "biw":
case "bew":
if (!this.Session.GetHabbo().GotCommand("back"))
{
this.Session.SendWhisper("Je mag dit niet");
return true;
}
else
{
Room kamerrrr = this.Session.GetHabbo().CurrentRoom;
if (kamerrrr != null)
{
RoomUser benerweer = kamerrrr.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Id);
if (this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().CurrentEffect == 178)
{
this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().ActivateCustomEffect(0);
benerweer.Chat(benerweer.GetClient(), "* Ik ben er weer! *", true, 0, 1);
return true;
}
else
{
this.Session.SendWhisper("Je bent niet brb!");
return true;
}
}
return true;
}
#endregion
- - - Updated - - -
1. :staffduty
Spoiler:
Code:
#region staffbadge
case "staffbadge":
case "sb":
case "staffduty":
{
if (!this.Session.GetHabbo().GotCommand("staffbadge"))
{
return false;
}
Room kamertjeee = this.Session.GetHabbo().CurrentRoom;
if (kamertjeee != null)
{
RoomUser spjeler = kamertjeee.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Id);
this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().ActivateCustomEffect((spjeler.CurrentEffect != 102) ? 102 : 0);
return true;
}
return true;
}
#endregion
If you say :brb right now, you get just 1 message but maybe it is better if the users are able to see how long he brb is.
Like: Username is 10 minuts brb/away
24-10-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by Gameslol
Really thanks. but can you explain me how to add badge in hh_human_fx.swf? What should I do after I open it with Flash decompiler?
Search for the image under tab "Images' then replace with ur ADM.gif
24-10-14
ovflowd
Re: [Mercury][Free] Command making service
Nice Service!!!!
24-10-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by Claudi0
Nice Service!!!!
Thanks a lot!
- - - Updated - - -
Quote:
Originally Posted by Squashing
If you say :brb right now, you get just 1 message but maybe it is better if the users are able to see how long he brb is.
Like: Username is 10 minuts brb/away
Oh yeah sorry lol I didn't know you were talking about the command. But I'll see what I can do.
24-10-14
Twan
Re: [Mercury][Free] Command making service
:buyroom:
Buy an room for someone other who has his room for sale
:sellroom
Set your room for sale
:backup
Make an backup of your room (so you can set it back when you did something wrong)
+
A message when u do :empty, that you first get an message with "Do you really want to clean your inventory"?
24-10-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by Multify
:buyroom:
Buy an room for someone other who has his room for sale
:sellroom
Set your room for sale
:backup
Make an backup of your room (so you can set it back when you did something wrong)
+
A message when u do :empty, that you first get an message with "Do you really want to clean your inventory"?
Buy, sell, backup rooms will be a project which should take some time.
But here is the empty:
Spoiler:
Code:
case "empty":
if (this.Session.GetHabbo().GotCommand("empty"))
{
if (Params.Length < 1)
{
this.Session.SendNotif("Are you sure you want to clear your inventory? Say \":empty yes\" if so!");
return true;
}
else
{
this.Session.GetHabbo().GetInventoryComponent().ClearItems();
}
}
return true;
24-10-14
Twan
Re: [Mercury][Free] Command making service
Thanks!
25-10-14
maartenvn
Re: [Mercury][Free] Command making service
:teleportcoords teleport to a coord (x y z)
25-10-14
Joe Richardson
Re: [Mercury][Free] Command making service
I converted the buy and sell command from plus. Works well enough.
25-10-14
TrevorBadapest
Re: [Mercury][Free] Command making service
Can you give me the "unload" fixed?
Thanks
25-10-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by TrevorBadapest
Can you give me the "unload" fixed?
Thanks
Works fine to me :O
25-10-14
Bullies
Re: [Mercury][Free] Command making service
:roll (number)
It's like a dice rigger.. :)
25-10-14
TrevorBadapest
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by AskethZ
Works fine to me :O
Yes, my bad.
Not reload, but hal.
25-10-14
Terry Lgm
Re: [Mercury][Free] Command making service
The commands:
:kiss, :kill.
25-10-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by Bullies
:roll (number)
It's like a dice rigger.. :)
I'll c whether I'm able to make that or not. Sorry if not
- - - Updated - - -
Quote:
Originally Posted by Terry Lgm
The commands:
:kiss, :kill.
What does kill do?
25-10-14
Twan
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by Joe Richardson
I converted the buy and sell command from plus. Works well enough.
Can you post it here please?
25-10-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by Joe Richardson
I converted the buy and sell command from plus. Works well enough.
Would you mind sharing?
25-10-14
Terry Lgm
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by AskethZ
I'll c whether I'm able to make that or not. Sorry if not
- - - Updated - - -
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 ! "
25-10-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by Terry Lgm
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
Spoiler:
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)
Spoiler:
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;
}
25-10-14
Terry Lgm
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by AskethZ
:kill
Spoiler:
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)
Spoiler:
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 !
25-10-14
Gameslol
Re: [Mercury][Free] Command making service
Thanks for makesay and boom!!
- - - Updated - - -
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?http://i.imgur.com/60xSPti.png
25-10-14
Squashing
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by Gameslol
Thanks for makesay and boom!!
- - - Updated - - -
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?http://i.imgur.com/60xSPti.png
Go to fuse_cmd, add your command + rank that should have the command.
26-10-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by Gameslol
Thanks for makesay and boom!!
- - - Updated - - -
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?http://i.imgur.com/60xSPti.png
Read first sentence of the command. Please add staffbadge in ur fuse_cmds
26-10-14
TrevorBadapest
Re: [Mercury][Free] Command making service
: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
26-10-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by TrevorBadapest
: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
27-10-14
Power
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by AskethZ
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?
27-10-14
Squashing
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by Power
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?
Yes if you have a working one.
27-10-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by TrevorBadapest
: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;
}
27-10-14
donszeh
Re: [Mercury][Free] Command making service
Mind sharing you're edit of mercury emulator with us or me(:?
27-10-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by donszeh
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.
27-10-14
donszeh
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by AskethZ
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 :)
29-10-14
Gameslol
Re: [Mercury][Free] Command making service
:invisble
(He disappears without showing even the shadow)
min. rank 5
31-10-14
Smouzyi
Re: [Mercury][Free] Command making service
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!
31-10-14
Marvik122222
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by Gameslol
: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
31-10-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by Smouzyi
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!
use this.Session.GetHabbo().UpdateSeasonalCurrencyBalance();
31-10-14
Anthologique
Re: [Mercury][Free] Command making service
@
AskethZThe command ":mutebots" and "mutepets" wont work, its possible of recoded for Mercury Emulator ?
Thanks you in advance !!!
01-11-14
Hablet
Re: [Mercury][Free] Command making service
:control {username}
Controls the defined users pathtaking within the room
Minrank 6.
02-11-14
Whabbu
Re: [Mercury][Free] Command making service
Can you make the command :noface ? When you do that you don't have eyes and mouth .
02-11-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by Whabbu
Can you make the command :noface ? When you do that you don't have eyes and mouth .
I have already made that.
Spoiler:
Code:
case "faceless":
case "geengezicht":
case "gezichtloos":
{
if (Session.GetHabbo().GotCommand("faceless"))
{
string[] figureParts;
string[] headParts;
figureParts = Session.GetHabbo().Look.Split('.');
foreach (string Part in figureParts)
{
if (Part.StartsWith("hd"))
{
headParts = Part.Split('-');
if (!headParts[1].Equals("99999"))
headParts[1] = "99999";
else
break;
#region geefrank
case "geefrank":
{
if (!this.Session.GetHabbo().GotCommand("geefrank"))
{
this.Session.SendWhisper("Je mag dit niet");
return true;
}
{
int rankerdebank;
GameClient despeler = null;
despeler = WeedEMUEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]);
if (despeler != null)
{
if (!int.TryParse(Params[2], out rankerdebank))
{
this.Session.SendNotif("Kies een getal tussen 1 en 10, geen 5 / 8!");
return true;
}
if (rankerdebank == 8 || rankerdebank == 5 || rankerdebank < 1 || rankerdebank > 10)
{
this.Session.SendNotif("Kies een getal tussen 1 en 10, geen 5 /8!");
return true;
}
if (rankerdebank == 2 || rankerdebank == 3 || rankerdebank == 4 || rankerdebank == 6 || rankerdebank == 7 || rankerdebank == 9 || rankerdebank == 10)
{
using (IQueryAdapter geefderank = WeedEMUEnvironment.GetDatabaseManager().getQueryreactor())
{
geefderank.runFastQuery("UPDATE `users` SET `rank`=" + rankerdebank.ToString() + " WHERE `id`=" + despeler.GetHabbo().Id);
despeler.SendNotif("Je hebt rank <b>" + rankerdebank.ToString() + "</b> van " + this.Session.GetHabbo().Username + " gekregen.");
this.Session.SendWhisper("Succesvol speler " + despeler.GetHabbo().Username + " rank " + rankerdebank.ToString() + " gegeven.");
}
}
if (rankerdebank == 1)
{
using (IQueryAdapter geefderank = WeedEMUEnvironment.GetDatabaseManager().getQueryreactor())
{
geefderank.runFastQuery("UPDATE `users` SET `rank`=" + rankerdebank + " WHERE `id`=" + despeler.GetHabbo().Id);
despeler.SendNotif(this.Session.GetHabbo().Username + " heeft je ontslagen, lol.");
this.Session.SendWhisper("Succesvol speler " + despeler.GetHabbo().Username + " ontslagen LOL.");
despeler.GetConnection().Dispose();
}
}
}
}
return true;
}
#endregion
You can edit as you want.
16-11-14
Li3s
Re: [Mercury][Free] Command making service
:buyvip, to become VIP spending 50 diamonds.
NB: Thanks so much AskethZ for this helpful service
17-11-14
rockster34
Re: [Mercury][Free] Command making service
Ipban/superban
ban ip of user and blocks it form emu
17-11-14
Hama Runz
Re: [Mercury][Free] Command making service
:pickall (id) This command picks all furni from the id in the room, example i want to pick all the thrones in the room without picking all the other furniture, so lets say the throne id is 1, then id have to use :pickall 1 Minimum Rank is 6
if u don't understand just ask :)
I use Mercury 2.3
and how do i add commands to the emu?
Thanks in advance :P:
17-11-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by Hama Runz
:pickall (id) This command picks all furni from the id in the room, example i want to pick all the thrones in the room without picking all the other furniture, so lets say the throne id is 1, then id have to use :pickall 1 Minimum Rank is 6
if u don't understand just ask :)
I use Mercury 2.3
and how do i add commands to the emu?
Thanks in advance :P:
How you add commands:
1. Download Visual Studio Express for Desktop/Web
2. Open the Mercury C# project file.
3. Open HabboHotel/Misc/ChatCommandHandler.cs
4. Add my codes there
I am not sure whether I'm able to make this or not. You will hear if so.
- - - Updated - - -
Quote:
Originally Posted by Li3s
:buyvip, to become VIP spending 50 diamonds.
NB: Thanks so much AskethZ for this helpful service
Spoiler:
Code:
#region koopvip
case "buyvip":
case "koopvip":
if (this.Session.GetHabbo().VIP)
{
this.Session.SendNotif("Je bent al VIP!");
return true;
}
if (this.Session.GetHabbo().BelCredits < 100)
{
this.Session.SendNotif("Je hebt niet genoeg diamantjes (kost 100 diamantjes)");
return true;
}
if (this.Session.GetHabbo().BelCredits > 99)
{
using (IQueryAdapter geefvip = WeedEMUEnvironment.GetDatabaseManager().getQueryreactor())
{
geefvip.runFastQuery("UPDATE `users` SET `vip`='1' WHERE `id`='" + this.Session.GetHabbo().Id + "'");
RoomUser vipper = WeedEMUEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId).GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Username); // Buy VIP command by AskethZ aka Weed aka Keizer
this.Session.GetHabbo().GetBadgeComponent().GiveBadge("VIP", false, vipper.GetClient(), false);
this.Session.GetHabbo().BelCredits += -100;
this.Session.GetHabbo().UpdateSeasonalCurrencyBalance();
this.Session.SendNotif("Je hebt succesvol VIP gekocht!<br><br><i>Ga opnieuw het hotel in om je speciale commandos te kunnen gebruiken!");
return true;
}
}
return true;
#endregion
And thx
17-11-14
TrevorBadapest
Re: [Mercury][Free] Command making service
:rank_arb
and
:unrank_arb
To give rank 4 with a command, and if possibile if the user who receives the rank is already mod,admin, etc, you'll cannot do this command
(or maybe someone will use this command to unrank a mod etc)
18-11-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by TrevorBadapest
:rank_arb
and
:unrank_arb
To give rank 4 with a command, and if possibile if the user who receives the rank is already mod,admin, etc, you'll cannot do this command
(or maybe someone will use this command to unrank a mod etc)
Sure, done at 6PM Dutch time max.
18-11-14
Lancey
Re: [Mercury][Free] Command making service
can you do like
:giverank User (rank id)
18-11-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by Lancey
can you do like
:giverank User (rank id)
bru, look 6 comments up
18-11-14
GrateZ4
Re: [Mercury][Free] Command making service
:masscredits
Fix so it says how many credits the users on the hotel got, cause now it just gives credits but doesnt shut up a box where it says you got 1000 credits from staff
min rank: 9
- - - Updated - - -
:redeem redeem all credits in your inventory (redeemall redeems the credits but it still saves in the inventory after redeemed)
min rank: 1
18-11-14
Squashing
Re: [Mercury][Free] Command making service
easy one, mass crystals/diamonds/belcredit
gives everyone diamonds/belcredits who is online
18-11-14
GrateZ4
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by Squashing
easy one, mass crystals/diamonds/belcredit
gives everyone diamonds/belcredits who is online
Also the box where it says how much credits all online got
19-11-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by Squashing
easy one, mass crystals/diamonds/belcredit
gives everyone diamonds/belcredits who is online
EDIT:
Oh with the box, sure, momento.
Code:
case "massbelcredits":
case "massdiamonds":
if (!this.Session.GetHabbo().GotCommand("masscredits"))
{
return true;
}
if (Params.Length != 1)
{
try
{
int num17 = int.Parse(Params[1]);
foreach (GameClient client22 in WeedEMUEnvironment.GetGame().GetClientManager().clients.Values)
{
Habbo habbo4 = client22.GetHabbo();
habbo4.BelCredits += num17;
client22.GetHabbo().UpdateSeasonalCurrencyBalance();
client22.SendNotif("You received <b>" + num17 + "</b> diamonds from the Hotel Management!");
}
}
catch
{
}
return true;
}
this.Session.SendNotif("Has to be a number.");
return true;
This should do it
19-11-14
GrateZ4
Re: [Mercury][Free] Command making service
:roomalert
For people that owns the room and that has right in a users room
min rank: 3
19-11-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by GrateZ4
:roomalert
For people that owns the room and that has right in a users room
min rank: 3
Roomalert already exists
19-11-14
GrateZ4
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by AskethZ
Roomalert already exists
Well people can roomalert in every room even if they dont have rights in it or own it.
19-11-14
TrevorBadapest
Re: [Mercury][Free] Command making service
What about rank_arb and unrank_arb?
19-11-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by TrevorBadapest
What about rank_arb and unrank_arb?
Working on it
EDIT:
Code:
#region arb
case "arb":
{
if (this.Session.GetHabbo().Rank >= MINRANKHERE)
{
GameClient arbuser = MercuryEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]);
if (arbuser != null)
{
if (arbuser.GetHabbo().Rank == 4)
{
using (IQueryAdapter databasecon = MercuryEnvironment.GetDatabaseManager().getQueryreactor())
{
databasecon.runFastQuery("UPDATE `users` SET `rank`='1' WHERE `id`=" + arbuser.GetHabbo().Id + "'");
}
this.Session.SendWhisper("Succesfully unranked ARB user " + arbuser.GetHabbo().Username);
return true;
}
if (arbuser.GetHabbo().Rank <= 3)
{
using (IQueryAdapter databasecon2 = MercuryEnvironment.GetDatabaseManager().getQueryreactor())
{
databasecon2.runFastQuery("UPDATE `users` SET `rank`='4' WHERE `id`=" + arbuser.GetHabbo().Id + "'");
}
this.Session.SendWhisper("Succesfully ranked ARB user " + arbuser.GetHabbo().Username);
return true;
}
else
{
this.Session.SendWhisper("You are not allowed to unrank higher players then rank 4.");
}
}
else
{
this.Session.SendWhisper("Could not find user + " Params[1] " :O!");
}
}
return true;
}
#endregion
Change the MINRANKHERE.
19-11-14
GrateZ4
Re: [Mercury][Free] Command making service
Also want so roomalert checks if the user has room right in the room or if he owns it he can make roomalert, else not
19-11-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by GrateZ4
Also want so roomalert checks if the user has room right in the room or if he owns it he can make roomalert, else not
Try this:
Replace roomalert command with
Code:
case "roomalert":
case "alertroom":
case "ra":
case "alertarsala":
if (!this.Session.GetHabbo().GotCommand("roomalert"))
{
return false;
}
if (!this.Session.GetHabbo().CurrentRoom.CheckRights(this.Session, false, false)) // Checks if the user has NOT got the right permissions, then cancels command. by askethz @RZ xoxo
{
return false;
}
else
{
string Alert = MergeParams(Params, 1);
foreach (RoomUser user in Session.GetHabbo().CurrentRoom.GetRoomUserManager().GetRoomUsers())
{
if (user.IsBot || user.GetClient() == null)
{
continue;
}
user.GetClient().SendNotif(Alert);
}
return true;
}
19-11-14
GrateZ4
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by AskethZ
Try this:
Replace roomalert command with
Code:
case "roomalert":
case "alertroom":
case "ra":
case "alertarsala":
if (!this.Session.GetHabbo().GotCommand("roomalert"))
{
return false;
}
if (!this.Session.GetHabbo().CurrentRoom.CheckRights(this.Session, false, false)) // Checks if the user has NOT got the right permissions, then cancels command. by askethz @RZ xoxo
{
return false;
}
else
{
string Alert = MergeParams(Params, 1);
foreach (RoomUser user in Session.GetHabbo().CurrentRoom.GetRoomUserManager().GetRoomUsers())
{
if (user.IsBot || user.GetClient() == null)
{
continue;
}
user.GetClient().SendNotif(Alert);
}
return true;
}
Could you also add - the one who types the roomalert (example - John)
would this work?
Quote:
case "roomalert": if (!this.Session.GetHabbo().GotCommand("roomalert"))
{
return false;
}
if (!this.Session.GetHabbo().CurrentRoom.CheckRights(this.Session, false, false)) // Checks if the user has NOT got the right permissions, then cancels command. by askethz @RZ xoxo
{
return false;
}
else
{
string Alert = MergeParams(Params, 1);
foreach (RoomUser user in Session.GetHabbo().CurrentRoom.GetRoomUserManager().GetRoomUsers())
{
if (user.IsBot || user.GetClient() == null)
{
continue;
}
user.GetClient().SendNotif(Alert);
string username = null;
GameClient client6 = null;
username = Params[1];
client6 = MercuryEnvironment.GetGame().GetClientManager().GetClientByUsername(username);
client6.SendNotif(Params[2] + " - " + this.Session.GetHabbo().Username);
}
return true;
}
19-11-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by GrateZ4
Could you also add - the one who types the roomalert (example - John)
would this work?
It's good you try to make it yourself! Yet i'll take a look at it in some minutes, im busy now.
- - - Updated - - -
Quote:
Originally Posted by GrateZ4
Could you also add - the one who types the roomalert (example - John)
would this work?
There is some unnecessary code in there.
19-11-14
GrateZ4
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by AskethZ
It's good you try to make it yourself! Yet i'll take a look at it in some minutes, im busy now.
- - - Updated - - -
There is some unnecessary code in there.
Help me out?
20-11-14
Quota
Re: [Mercury][Free] Command making service
push/pull/spull
Text saying *pulls user to them* and *pushes user*
20-11-14
Restitive
Re: [Mercury][Free] Command making service
that is released in another topic.
But here you go.!
Pull command
Code:
#region pull
case "pull":
case "trek":
if (this.Session.GetHabbo().HasFuse("fuse_vip_commands") || this.Session.GetHabbo().VIP)
{
Room room18 = this.Session.GetHabbo().CurrentRoom;
if (room18 == null)
{
return true;
}
RoomUser user14 = room18.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Id);
if (user14 == null)
{
return true;
}
if (Params.Length == 1)
{
SendChatMessage(this.Session, "Gebruiker niet gevonden.");
return true;
}
GameClient client4 = MercuryEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]);
if (client4 == null)
{
return true;
}
if (client4.GetHabbo().Id == this.Session.GetHabbo().Id)
{
SendChatMessage(this.Session, "Je kan jezelf niet trekken!");
return true;
}
RoomUser user15 = room18.GetRoomUserManager().GetRoomUserByHabbo(client4.GetHabbo().Id);
if (user15 == null)
{
return true;
}
if (user15.TeleportEnabled)
{
return true;
}
if ((Math.Abs((int)(user14.X - user15.X)) >= 3) || (Math.Abs((int)(user14.Y - user15.Y)) >= 3))
{
SendChatMessage(this.Session, "Gebruiker is te ver weg om te hem naar je toe trekken.");
return true;
}
if ((user14.RotBody % 2) != 0)
{
user14.RotBody--;
}
if (user14.RotBody == 0)
{
user15.MoveTo(user14.X, user14.Y - 1);
}
else if (user14.RotBody == 2)
{
user15.MoveTo(user14.X + 1, user14.Y);
}
else if (user14.RotBody == 4)
{
user15.MoveTo(user14.X, user14.Y + 1);
}
else if (user14.RotBody == 6)
{
user15.MoveTo(user14.X - 1, user14.Y);
}
user14.Chat(user14.GetClient(), "*Trekt " + Params[1] + " naar zich toe*", false, 0, 0);
}
return true;
#endregion
push command:
Code:
#region push
case "push":
case "duw":
{
if (!this.Session.GetHabbo().HasFuse("fuse_vip_commands") && !this.Session.GetHabbo().VIP)
{
SendChatMessage(this.Session, "Je bent geen VIP.");
return true;//256A;
}
Room room17 = MercuryEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId);
if (room17 != null)
{
if (Params.Length == 1)
{
SendChatMessage(this.Session, "Vul een gebruiker in");
return true;
}
RoomUser user12 = room17.GetRoomUserManager().GetRoomUserByHabbo(Convert.ToString(Params[1]));
if (user12 == null)
{
SendChatMessage(this.Session, "Geen gebruiker gevonden!");
return true;
}
if (user12.GetUsername() == this.Session.GetHabbo().Username)
{
SendChatMessage(this.Session, "Je kan jezelf niet duwen");
return true;
}
RoomUser user13 = room17.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Id);
if ((user13 != null) && !user12.TeleportEnabled)
{
if ((Math.Abs((int)(user12.X - user13.X)) < 2) && (Math.Abs((int)(user12.Y - user13.Y)) < 2))
{
if (user13.RotBody == 4)
{
user12.MoveTo(user12.X, user12.Y + 1);
}
if (user13.RotBody == 0)
{
user12.MoveTo(user12.X, user12.Y - 1);
}
if (user13.RotBody == 6)
{
user12.MoveTo(user12.X - 1, user12.Y);
}
if (user13.RotBody == 2)
{
user12.MoveTo(user12.X + 1, user12.Y);
}
if (user13.RotBody == 3)
{
user12.MoveTo(user12.X + 1, user12.Y + 1);
}
if (user13.RotBody == 1)
{
user12.MoveTo(user12.X + 1, user12.Y - 1);
}
if (user13.RotBody == 7)
{
user12.MoveTo(user12.X - 1, user12.Y - 1);
}
if (user13.RotBody == 5)
{
user12.MoveTo(user12.X - 1, user12.Y + 1);
}
user12.UpdateNeeded = true;
user13.UpdateNeeded = true;
user13.SetRot(PathFinder.CalculateRotation(user13.X, user13.Y, user12.GoalX, user12.GoalY));
user13.Chat(user13.GetClient(), "*Duwt "+ Params[1] +"*", false, 0, 0);
}
else
{
SendChatMessage(this.Session, Params[1] + " is te ver weg");
}
return true;//256A;
}
}
return true;
}
#endregion
And the spull command:
Code:
#region Spull
case "spull":
case "strek":
if (this.Session.GetHabbo().HasFuse("fuse_vip_commands") || this.Session.GetHabbo().VIP)
{
Room room33 = this.Session.GetHabbo().CurrentRoom;
if (room33 == null)
{
return true;
}
RoomUser user28 = room33.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Id);
if (user28 == null)
{
return true;
}
if (Params.Length == 1)
{
return true;
}
GameClient client21 = MercuryEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]);
if (client21 == null)
{
return true;
}
RoomUser user29 = room33.GetRoomUserManager().GetRoomUserByHabbo(client21.GetHabbo().Id);
if (client21.GetHabbo().Id == this.Session.GetHabbo().Id)
{
SendChatMessage(this.Session, "Je kunt jezelf niet duwen!");
return true;
}
if (user29.TeleportEnabled)
{
return true;
}
if ((user28.RotBody % 2) != 0)
{
user28.RotBody--;
}
if (user28.RotBody == 0)
{
user29.MoveTo(user28.X, user28.Y - 1);
}
else if (user28.RotBody == 2)
{
user29.MoveTo(user28.X + 1, user28.Y);
}
else if (user28.RotBody == 4)
{
user29.MoveTo(user28.X, user28.Y + 1);
}
else if (user28.RotBody == 6)
{
user29.MoveTo(user28.X - 1, user28.Y);
}
user28.Chat(user28.GetClient(), "*Trekt " + Params[1] + " naar zich toe*", false, 0, 0);
}
return true;
#endregion
I am only mis the spush command.
GreatzZz
20-11-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by Restitive
that is released in another topic.
But here you go.!
Pull command
push command:
And the spull command:
I am only mis the spush command.
GreatzZz
Thanks for resharing, but please use code tags. ( [.code][/.code] without the dots )
- - - Updated - - -
Quote:
Originally Posted by GrateZ4
Help me out?
Well your code is weird, because it says you have to use like :roomalert NAME Message, but I suppose you don't want to do :roomalert NAME, but just :roomalert Message, so replace your lines with something like this
can you make :removebadge username minrank 6 than can you remove a badge from a user mercury emulator doesnt have this command.
21-11-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by thelittlegnome
can you make :removebadge username minrank 6 than can you remove a badge from a user mercury emulator doesnt have this command.
Mercury does, its called :takebadge
21-11-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by thelittlegnome
het werkt niet die ;takebadge
Praat Engels op RageZone om niet verbannen te worden
I'll take a look at it.
21-11-14
GrateZ4
Re: [Mercury][Free] Command making service
:Habnam - dance like gangnam style
:vipinfo - information about VIP and also shows vip commands
:popcorn - gives you popcorn
:brb a effect says that you are BRB & :back
21-11-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by GrateZ4
:Habnam - dance like gangnam style
:vipinfo - information about VIP and also shows vip commands
:popcorn - gives you popcorn
:brb a effect says that you are BRB & :back
Habnam already exists, VIPInfo:
Code:
case "vipinfo":
{
this.Session.SendNotif("TEXT HERE");
return true;
}
popcorn - looks like you've been on my hotel xd, too bad no more original ideas are coming.
Code:
case "popcorn":
{
if (!this.Session.GetHabbo().GotCommand("popcorn"))
{
this.Session.SendWhisper("Je mag dit niet");
return true;
}
{
RoomUser dikkertje = this.Session.GetHabbo().CurrentRoom.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Username);
if (dikkertje.RidingHorse)
{
this.Session.SendWhisper("Dit kan niet terwijl je op een paard zit");
return true;
}
if (dikkertje.IsLyingDown)
{
this.Session.SendWhisper("Dit kan niet terwijl je ligt");
return true;
}
if (dikkertje.CarryItemID == 63)
{
dikkertje.CarryItem(0);
this.Session.SendWhisper("Popcorn modus uit");
return true;
}
if (dikkertje.CarryItemID != 63)
{
dikkertje.CarryItem(63);
this.Session.SendWhisper("Popcorn modus aan");
return true;
}
}
return true;
}
Brb, im not releasing this one.
21-11-14
Li3s
Re: [Mercury][Free] Command making service
:staff
Show list of users with rank 9,8,7 and 6.
min.rank=1
21-11-14
thelittlegnome
Re: [Mercury][Free] Command making service
@retrostudios its a word filter for retros if you say a hotel name or a link its give you automatic a warn if you do it twice you wil be muted one hour.
21-11-14
GrateZ4
Re: [Mercury][Free] Command making service
:online
Whispers like * There are 100 Players online *
Min rank: 1
22-11-14
Bathadoque
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by GrateZ4
:online
Whispers like * There are 100 Players online *
Min rank: 1
Code:
case "usersonline": if (!this.Session.GetHabbo().GotCommand("usersonline"))
{
return true;
You have to implent the effect yourself as this is a Command making service, not effect.
22-11-14
thelittlegnome
Re: [Mercury][Free] Command making service
:jump and than you boucing up and down minrank 2
- - - Updated - - -
can you fix that if i say :buyvip the user get rank 2 and vip on 1 ?
22-11-14
Bathadoque
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by thelittlegnome
can you fix that if i say :buyvip the user get rank 2 and vip on 1 ?
Code:
case "givevip": if (!this.Session.GetHabbo().GotCommand("givevip"))
return true;
{
string usernamevip = Params[1];
using (IQueryAdapter adapter20 = MercuryEnvironment.GetDatabaseManager().getQueryreactor())
{
adapter20.runFastQuery("UPDATE `users` SET `vip` = '1', `rank` = '2' WHERE `username` = '" + usernamevip + "'");
this.Session.SendNotif("User has been given vip!");
return true;
}
}
SQL:
Code:
INSERT INTO `fuse_cmds` (`id`, `command`, `rank`, `params`, `description`) VALUES ('88', 'givevip', '7', NULL, 'Gives the specified user VIP and rank 2.');
Tested and working.
22-11-14
thelittlegnome
Re: [Mercury][Free] Command making service
yeah but want that the user can say: :buyvip en than he is rank 2 en vip stand on 1 en it is for 100 diamonds
22-11-14
Bathadoque
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by thelittlegnome
yeah but want that the user can say: :buyvip en than he is rank 2 en vip stand on 1 en it is for 100 diamonds
Quote:
Originally Posted by AskethZ
Spoiler:
Code:
#region koopvip
case "buyvip":
case "koopvip":
if (this.Session.GetHabbo().VIP)
{
this.Session.SendNotif("Je bent al VIP!");
return true;
}
if (this.Session.GetHabbo().BelCredits < 100)
{
this.Session.SendNotif("Je hebt niet genoeg diamantjes (kost 100 diamantjes)");
return true;
}
if (this.Session.GetHabbo().BelCredits > 99)
{
using (IQueryAdapter geefvip = WeedEMUEnvironment.GetDatabaseManager().getQueryreactor())
{
geefvip.runFastQuery("UPDATE `users` SET `vip`='1' WHERE `id`='" + this.Session.GetHabbo().Id + "'");
RoomUser vipper = WeedEMUEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId).GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Username); // Buy VIP command by AskethZ aka Weed aka Keizer
this.Session.GetHabbo().GetBadgeComponent().GiveBadge("VIP", false, vipper.GetClient(), false);
this.Session.GetHabbo().BelCredits += -100;
this.Session.GetHabbo().UpdateSeasonalCurrencyBalance();
this.Session.SendNotif("Je hebt succesvol VIP gekocht!<br><br><i>Ga opnieuw het hotel in om je speciale commandos te kunnen gebruiken!");
return true;
}
}
return true;
#endregion
And thx
AskethZ already posted this. Make sure you check the previous pages before posting in case it's already requested and coded. Also, be more clear about what you want and not next time.
22-11-14
thelittlegnome
Re: [Mercury][Free] Command making service
yeah but thats makes you online vip 1 and not rank 2
22-11-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by thelittlegnome
yeah but thats makes you online vip 1 and not rank 2
Change
Code:
geefvip.runFastQuery("UPDATE `users` SET `vip`='1' WHERE `id`='" + this.Session.GetHabbo().Id + "'");
to
Code:
geefvip.runFastQuery("UPDATE `users` SET `vip`='1' AND `rank`='2' WHERE `id`='" + this.Session.GetHabbo().Id + "'";
:tongue:
22-11-14
thelittlegnome
Re: [Mercury][Free] Command making service
thanks its working!
- - - Updated - - -
nope ;;buy vip doesnt work
code:
#region koopvip
case "buyvip":
case "koopvip":
if (this.Session.GetHabbo().VIP)
{
this.Session.SendNotif("Je bent al VIP!");
return true;
}
if (this.Session.GetHabbo().BelCredits < 100)
{
this.Session.SendNotif("Je hebt niet genoeg diamantjes (kost 100 diamantjes)");
return true;
}
if (this.Session.GetHabbo().BelCredits > 99)
{
using (IQueryAdapter geefvip = MercuryEnvironment.GetDatabaseManager().getQueryreactor())
{
geefvip.runFastQuery("UPDATE `users` SET `vip`='1' AND `rank`='2' WHERE `id`='" + this.Session.GetHabbo().Id + "'");
RoomUser vipper = MercuryEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId).GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Username); // Buy VIP command by AskethZ aka Weed aka Keizer
this.Session.GetHabbo().GetBadgeComponent().GiveBadge("VIP", false, vipper.GetClient(), false);
this.Session.GetHabbo().BelCredits += -100;
this.Session.GetHabbo().UpdateSeasonalCurrencyBalance();
this.Session.SendNotif("Je hebt succesvol VIP gekocht!<br><br><i>Ga opnieuw het hotel in om je speciale commandos te kunnen gebruiken!");
return true;
you paid 100 diamonds you reload the client but you get not vip..
22-11-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by thelittlegnome
thanks its working!
- - - Updated - - -
nope ;;buy vip doesnt work
code:
#region koopvip
case "buyvip":
case "koopvip":
if (this.Session.GetHabbo().VIP)
{
this.Session.SendNotif("Je bent al VIP!");
return true;
}
if (this.Session.GetHabbo().BelCredits < 100)
{
this.Session.SendNotif("Je hebt niet genoeg diamantjes (kost 100 diamantjes)");
return true;
}
if (this.Session.GetHabbo().BelCredits > 99)
{
using (IQueryAdapter geefvip = MercuryEnvironment.GetDatabaseManager().getQueryreactor())
{
geefvip.runFastQuery("UPDATE `users` SET `vip`='1' AND `rank`='2' WHERE `id`='" + this.Session.GetHabbo().Id + "'");
RoomUser vipper = MercuryEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId).GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Username); // Buy VIP command by AskethZ aka Weed aka Keizer
this.Session.GetHabbo().GetBadgeComponent().GiveBadge("VIP", false, vipper.GetClient(), false);
this.Session.GetHabbo().BelCredits += -100;
this.Session.GetHabbo().UpdateSeasonalCurrencyBalance();
this.Session.SendNotif("Je hebt succesvol VIP gekocht!<br><br><i>Ga opnieuw het hotel in om je speciale commandos te kunnen gebruiken!");
return true;
you paid 100 diamonds you reload the client but you get not vip..
case "duck": if (!this.Session.GetHabbo().GotCommand("duck"))
return true;
{
RoomUser thisuser = this.Session.GetHabbo().CurrentRoom.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Username);
if (thisuser.RidingHorse)
{
this.Session.SendNotif("You cannot enable this action whilst riding a horse.");
return true;
}
if (thisuser.team == Team.none)
{
if (thisuser.IsLyingDown)
{
return true;
}
{
this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().ActivateCustomEffect(170);
this.Session.SendWhisper("You're a duck now!");
return true;
}
}
}
return true;
SQL:
Code:
INSERT INTO `fuse_cmds` (`id`, `command`, `rank`, `params`, `description`) VALUES ('91', 'duck', '1', NULL, 'Makes you a duck.');
Tested and working.
22-11-14
AskethZ
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by Bathadoque
Code:
case "duck": if (!this.Session.GetHabbo().GotCommand("duck"))
return true;
{
RoomUser thisuser = this.Session.GetHabbo().CurrentRoom.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Username);
if (thisuser.RidingHorse)
{
this.Session.SendNotif("You cannot enable this action whilst riding a horse.");
return true;
}
if (thisuser.team == Team.none)
{
if (thisuser.IsLyingDown)
{
return true;
}
{
this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().ActivateCustomEffect(170);
this.Session.SendWhisper("You're a duck now!");
return true;
}
}
}
return true;
SQL:
Code:
INSERT INTO `fuse_cmds` (`id`, `command`, `rank`, `params`, `description`) VALUES ('91', 'duck', '1', NULL, 'Makes you a duck.');
Tested and working.
I haven't even thought of team-check. Good I see now, have to update all my commands XD
22-11-14
Tequiro
Re: [Mercury][Free] Command making service
Quote:
Originally Posted by Bathadoque
Code:
case "usersonline": if (!this.Session.GetHabbo().GotCommand("usersonline"))
{
this.Session.SendWhisper("You can not perform this action");
return true;