So what Happens is you quickly exit the tele before you tele then you can Tele lol.
Does anyone know how to fix? I Can't see what seems to be causing it
Thanks in advance.
http://i.gyazo.com/555d875670f5cd93a318ce5fafcaba99.gif
Printable View
So what Happens is you quickly exit the tele before you tele then you can Tele lol.
Does anyone know how to fix? I Can't see what seems to be causing it
Thanks in advance.
http://i.gyazo.com/555d875670f5cd93a318ce5fafcaba99.gif
Im trying to see what is wrong... one user reported it for me some days ago :?:
Seems like The teleporting code doesn't look finished or done badly.
I'll look into this problem soon. and see if i can fix it for you.
*UPDATE*
Alright, i've been looking through it and hopefully this works for you
Go to Roomitem.cs
Find
Replace that whole case with this:Code:case InteractionType.teleport:
Code:case InteractionType.teleport:
{
bool flag3 = false;
bool flag4 = false;
if (this.InteractingUser > 0)
{
RoomUser roomUserByHabbo2 = this.GetRoom().GetRoomUserManager().GetRoomUserByHabbo(this.InteractingUser);
if (roomUserByHabbo2 == null)
{
this.InteractingUser = 0u;
return;
}
if (roomUserByHabbo2.Coordinate == this.Coordinate)
{
roomUserByHabbo2.AllowOverride = false;
if (TeleHandler.IsTeleLinked(this.Id, this.mRoom))
{
flag4 = true;
uint linkedTele = TeleHandler.GetLinkedTele(this.Id, this.mRoom);
uint teleRoomId = TeleHandler.GetTeleRoomId(linkedTele, this.mRoom);
if (teleRoomId == this.RoomId)
{
RoomItem item2 = this.GetRoom().GetRoomItemHandler().GetItem(linkedTele);
if (item2 == null)
{
roomUserByHabbo2.UnlockWalking();
}
else
{
roomUserByHabbo2.SetPos(item2.GetX, item2.GetY, item2.GetZ);
roomUserByHabbo2.SetRot(item2.Rot, false);
item2.ExtraData = "2";
item2.UpdateState(false, true);
item2.InteractingUser2 = this.InteractingUser;
}
}
else
{
if (!roomUserByHabbo2.IsBot && roomUserByHabbo2 != null && roomUserByHabbo2.GetClient() != null && roomUserByHabbo2.GetClient().GetHabbo() != null && roomUserByHabbo2.GetClient().GetMessageHandler() != null)
{
roomUserByHabbo2.GetClient().GetHabbo().IsTeleporting = true;
roomUserByHabbo2.GetClient().GetHabbo().TeleportingRoomID = teleRoomId;
roomUserByHabbo2.GetClient().GetHabbo().TeleporterId = linkedTele;
roomUserByHabbo2.GetClient().GetMessageHandler().PrepareRoomForUser(teleRoomId, "");
}
}
this.InteractingUser = 0u;
}
else
{
roomUserByHabbo2.UnlockWalking();
this.InteractingUser = 0u;
roomUserByHabbo2.CanWalk = true;
roomUserByHabbo2.TeleportEnabled = false;
roomUserByHabbo2.MoveTo(this.SquareInFront);
}
}
else
{
if (roomUserByHabbo2.Coordinate == this.SquareInFront)
{
roomUserByHabbo2.AllowOverride = true;
flag3 = true;
if (roomUserByHabbo2.IsWalking && (roomUserByHabbo2.GoalX != this.mX || roomUserByHabbo2.GoalY != this.mY))
{
roomUserByHabbo2.ClearMovement(true);
}
roomUserByHabbo2.SetRot(PathFinding.PathFinder.CalculateRotation(roomUserByHabbo2.X, roomUserByHabbo2.Y, this.mX, this.mY));
roomUserByHabbo2.CanWalk = false;
roomUserByHabbo2.AllowOverride = true;
roomUserByHabbo2.MoveTo(this.GetX, this.GetY, true);
}
else
{
this.InteractingUser = 0u;
}
}
}
if (this.InteractingUser2 > 0u)
{
RoomUser roomUserByHabbo3 = this.GetRoom().GetRoomUserManager().GetRoomUserByHabbo(this.InteractingUser2);
if (roomUserByHabbo3 != null)
{
flag3 = true;
roomUserByHabbo3.UnlockWalking();
roomUserByHabbo3.TeleportEnabled = false;
roomUserByHabbo3.MoveTo(this.SquareInFront);
}
this.InteractingUser2 = 0u;
}
if (flag3)
{
if (this.ExtraData != "1")
{
this.ExtraData = "1";
this.UpdateState(false, true);
}
}
else
{
if (flag4)
{
if (this.ExtraData != "2")
{
this.ExtraData = "2";
this.UpdateState(false, true);
}
}
else
{
if (this.ExtraData != "0")
{
this.ExtraData = "0";
this.UpdateState(false, true);
}
}
}
this.ReqUpdate(1, false);
return;
}
Space errors? I tested it on my test vps. and it seem to work fine.
Are you sure your replacing just the teleport interaction type.http://i.gyazo.com/03ead736454fe9fa6b7dfae5f109502a.gif
Ok, i'll try in some hours then I edit if worked. Thank you anyways
@Alex Be
there are the errors
Code:1>C:\Emulator\HabboHotel\Items\RoomItem.cs(1269,12,1269,16): error CS1518: Expected class, delegate, enum, interface, or struct
1>C:\Emulator\HabboHotel\Items\RoomItem.cs(1277,12,1277,16): error CS1518: Expected class, delegate, enum, interface, or struct
1>C:\Emulator\HabboHotel\Items\RoomItem.cs(1281,12,1281,16): error CS1518: Expected class, delegate, enum, interface, or struct
1>C:\Emulator\HabboHotel\Items\RoomItem.cs(1297,51,1297,55): error CS1518: Expected class, delegate, enum, interface, or struct
1>C:\Emulator\HabboHotel\Items\RoomItem.cs(1297,56,1297,57): error CS1001: Identifier expected
1>C:\Emulator\HabboHotel\Items\RoomItem.cs(1298,6,1298,7): error CS1518: Expected class, delegate, enum, interface, or struct
1>C:\Emulator\HabboHotel\Items\RoomItem.cs(1300,7,1300,8): error CS0116: A namespace cannot directly contain members such as fields or methods
1>C:\Emulator\HabboHotel\Items\RoomItem.cs(1300,9,1300,10): error CS1001: Identifier expected
1>C:\Emulator\HabboHotel\Items\RoomItem.cs(1301,52,1301,56): error CS1518: Expected class, delegate, enum, interface, or struct
1>C:\Emulator\HabboHotel\Items\RoomItem.cs(1301,57,1301,58): error CS1001: Identifier expected
1>C:\Emulator\HabboHotel\Items\RoomItem.cs(1302,6,1302,7): error CS1518: Expected class, delegate, enum, interface, or struct
1>C:\Emulator\HabboHotel\Items\RoomItem.cs(1304,6,1304,7): error CS1022: Type or namespace definition, or end-of-file expected
Bump, has anyone managed to resolve this?
Nope, I tried some things but it hasn't work.. :l
I can't manage to get it sorted, really annoying me now!