
Originally Posted by
tweeney
Can you code some uber emu commands?
If so, can i have
:hotelalert <message> - rank 6 and above
:teleport - rank6 and above
:invisible <user> - rank6 and above
:whosonline - anyone
Here is :teleport (made by me):
First find:
PHP Code:
public bool SpectatorMode;
Then add under:
PHP Code:
public bool TeleportMode;
Then find:
PHP Code:
this.SpectatorMode = false;
and add under:
PHP Code:
this.TeleportMode = false;
Then find:
PHP Code:
User.MoveTo(MoveX, MoveY);
and replace with:
PHP Code:
User.MoveTo(MoveX, MoveY, Session.GetHabbo().TeleportMode);
Then find:
PHP Code:
public void MoveTo(int X, int Y)
and add adove:
PHP Code:
public void MoveTo(int X, int Y, bool TeleportMode)
{
Unidle();
if (TeleportMode)
{
UberEnvironment.GetGame().GetRoomManager().GetRoom(RoomId).UserMatrix[this.X, this.Y] = false;
this.X = X;
this.Y = Y;
UpdateNeeded = true;
}
else
{
PathRecalcX = X;
PathRecalcY = Y;
PathRecalcNeeded = true;
}
}
Then, finally add the command:
PHP Code:
case "teleport":
if (Session.GetHabbo().HasFuse("fuse_admin"))
{
if (Params[1] == "off")
{
Session.GetHabbo().TeleportMode = false;
Session.SendNotif("Teleport mode disabled.");
}
else if (Params[1] == "on")
{
Session.GetHabbo().TeleportMode = true;
Session.SendNotif("Teleport mode enabled.");
}
return true;
}
return false;