- Joined
- Sep 19, 2010
- Messages
- 210
- Reaction score
- 74
178 dont work for me too.
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!@Luminia Yeah they steal Ricardo's idea!
Then tell my why ricardo made an effect for some months ago with a staff and an expert badge over the avatar head?
Make a If statment, not hard ;PNVM. Working, just forgot to clear cache etc. Anyone know how to make only rank 6 can use it in Plus R2?
case "enable": {
if (!this.Session.GetHabbo().HasFuse("fuse_vip_commands") && !this.Session.GetHabbo().VIP)
{
return false;
}
int int_ = int.Parse(Params[1]);
if (Session.GetHabbo().Rank < 5 && (int_ == 102 || int_ == 178))
{
return false;
}
if (Params.Length == 1)
{
return true;
}
RoomUser user16 = this.Session.GetHabbo().CurrentRoom.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Username);
if (user16.RidingHorse)
{
return true;
}
if (user16.team == Team.none)
{
double num6;
if (user16.IsLyingDown)
{
return true;
}
string s = Params[1];
if (double.TryParse(s, out num6))
{
this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().ActivateCustomEffect(int.Parse(num6.ToString()));
return true;
}
SendChatMessage(this.Session, "You're pretty bad at math, '" + s + "' ain't a number, wigga.");
}
return true;
}
That does not work.@Zedd
HOW TO BLOCK THESE ENABLES TO NORMAL USERS - MERCURY EMU/PLUS R2:
- Search for ChatCommandHandler.cs and change the whole case "enable" to this one
Code:case "enable": { if (!this.Session.GetHabbo().HasFuse("fuse_vip_commands") && !this.Session.GetHabbo().VIP) { return false; } int int_ = int.Parse(Params[1]); if (Session.GetHabbo().Rank < 5 && (int_ == 102 || int_ == 178)) { return false; } if (Params.Length == 1) { return true; } RoomUser user16 = this.Session.GetHabbo().CurrentRoom.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Username); if (user16.RidingHorse) { return true; } if (user16.team == Team.none) { double num6; if (user16.IsLyingDown) { return true; } string s = Params[1]; if (double.TryParse(s, out num6)) { this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().ActivateCustomEffect(int.Parse(num6.ToString())); return true; } SendChatMessage(this.Session, "You're pretty bad at math, '" + s + "' ain't a number, wigga."); } return true; }
You need able vip command for rank 1 for work.That does not work.
case "enable":
{
if (!this.Session.GetHabbo().GotCommand("enable"))
{
return false;
}
if (Params.Length == 1)
{
return true;
}
RoomUser user16 = this.Session.GetHabbo().CurrentRoom.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Username);
if (user16.RidingHorse)
{
return true;
}
if (user16.team == Team.none)
{
double num6;
if (user16.IsLyingDown)
{
return true;
}
string s = Params[1];
if (!this.Session.GetHabbo().HasFuse("fuse_mod") && s.Equals("102"))
{
SendChatMessage(this.Session, "You do not have the required rank to use this Enable.");
return true;
}
if (!this.Session.GetHabbo().HasFuse("fuse_mod") && s.Equals("178"))
{
SendChatMessage(this.Session, "You do not have the required rank to use this Enable.");
return true;
}
if (double.TryParse(s, out num6))
{
this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().ActivateCustomEffect(int.Parse(num6.ToString()));
return true;
}
SendChatMessage(this.Session, "You can only use numbers.");
}
return true;
}
ReplaceYou know how to block these enables to normal users in a butterfly emulator?
internal void seteffect()
{
Session.GetHabbo().GetAvatarEffectsInventoryComponent().ApplyEffect(int.Parse(Params[1]));
}
internal void seteffect()
{
if (Session.GetHabbo().Rank < 7 && (Params[1] == "102" || Params[1] == "178"))
return;
Session.GetHabbo().GetAvatarEffectsInventoryComponent().ApplyEffect(int.Parse(Params[1]));
}
ReplaceWith this:Code:internal void seteffect() { Session.GetHabbo().GetAvatarEffectsInventoryComponent().ApplyEffect(int.Parse(Params[1])); }
Code:internal void seteffect() { if (Session.GetHabbo().Rank < 7 && (Params[1] == "102" || Params[1] == "178")) return; Session.GetHabbo().GetAvatarEffectsInventoryComponent().ApplyEffect(int.Parse(Params[1])); }