Velaski
winner
- Aug 4, 2015
- 562
- 165
Everyone has been requesting this command, so I decided to just release it. Didnt take long, took around 5 mins.
Basically makes you sit after the RKO.
GIF:
If you want any more commands ask please
Code:
class RKOCommand : IChatCommand
{
public string PermissionRequired
{
get { return "command_rko"; }
}
public string Parameters
{
get { return "%target%"; }
}
public string Description
{
get { return "RKO a user."; }
}
public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params)
{
if (Params.Length == 1)
{
Session.SendWhisper("Please enter a username");
return;
}
GameClient TargetClient = PlusEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]);
RoomUser User = Room.GetRoomUserManager().GetRoomUserByHabbo(TargetClient.GetHabbo().Id);
RoomUser ThisUser = Room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
if (User == null)
{
Session.SendWhisper("Error in command execution");
return;
}
if (TargetClient == null)
{
Session.SendWhisper("Target not found");
return;
}
if (TargetClient.GetHabbo().CurrentRoomId == Session.GetHabbo().CurrentRoomId && (Math.Abs(ThisUser.X - User.X) < 3 && Math.Abs(ThisUser.Y - User.Y) < 3))
{
Room.SendMessage(new ChatComposer(ThisUser.VirtualId, "*RKO OUTTA NOWHERE ON " + TargetClient.GetHabbo().Username + "*", 0, User.LastBubble));
Room.SendMessage(new ChatComposer(User.VirtualId, "*feels the viper effect well*", 0, User.LastBubble));
}
if (!User.Statusses.ContainsKey("sit"))
{
if ((User.RotBody % 2) == 0)
{
if (User == null)
return;
try
{
User.Statusses.Add("sit", "1.0");
User.Z -= 0.35;
User.isSitting = true;
User.UpdateNeeded = true;
}
catch { }
}
else
{
User.RotBody--;
User.Statusses.Add("sit", "1.0");
User.Z -= 0.35;
User.isSitting = true;
User.UpdateNeeded = true;
}
}
}
}
}
Basically makes you sit after the RKO.
GIF:
You must be registered for see links
If you want any more commands ask please
Last edited: