Beach Shower Fix 100% UberEmu
Search for: (Room.cs)
Code:
public bool KeepAlive;
After that paste: (Room.cs)
Code:
public List<uint> ShowerCase;
Search for: (Room.cs)
Code:
this.UserMatrix = new bool[Model.MapSizeX, Model.MapSizeY];
After that paste: (Room.cs)
Code:
this.ShowerCase = new List<uint>();
Search for: (Room.cs)
Code:
if (ItemsOnSquare == null)
{
ItemsOnSquare = new List<RoomItem>();
After that paste:
Code:
if (this.ShowerCase.Contains(User.HabboId))
{
lock (User.GetClient().GetHabbo().CurrentRoom.Items)
{
foreach (RoomItem Item in User.GetClient().GetHabbo().CurrentRoom.Items)
{
if (Item.GetBaseItem().InteractionType.ToLower() == "shower")
{
Item.ExtraData = "0";
Item.UpdateState(false, true);
}
}
}
ShowerCase.Remove(User.HabboId);
}
Search for: (Room.cs)
Code:
if (Item.GetBaseItem().InteractionType.ToLower() == "bed")
{
if (!User.Statusses.ContainsKey("lay"))
{User.Statusses.Add("lay", Item.GetBaseItem().Height.ToString().Replace(',', '.') + " null");}
User.Z = Item.Z;
User.RotHead = Item.Rot;
User.RotBody = Item.Rot;
User.UpdateNeeded = true;
}
After that paste: (Room.cs) (Code not from me)
Code:
else if (Item.GetBaseItem().InteractionType.ToLower() == "shower")
{
Item.ExtraData = "1";
Item.UpdateState(false, true);
ShowerCase.Add(User.HabboId);
}
Add this interaction to your mysql -> Furniture
99% Credits to me 1% to another one who coded the last C# code!
Re: Beach Shower Fix 100% UberEmu
thanks br0, adding this to my edit of uber. :)
EDIT: Doesn't work, after adding
Code:
if (this.ShowerCase.Contains(User.HabboId))
{
lock (User.GetClient().GetHabbo().CurrentRoom.Items)
{
foreach (RoomItem Item in User.GetClient().GetHabbo().CurrentRoom.Items)
{
if (Item.GetBaseItem().InteractionType.ToLower() == "shower")
{
Item.ExtraData = "0";
Item.UpdateState(false, true);
}
}
}
ShowerCase.Remove(User.HabboId);
}
It says that User isn't in the context or w.e. It's probz my edit, idk.
Re: Beach Shower Fix 100% UberEmu
Ok, So what does it look like ???
Re: Beach Shower Fix 100% UberEmu
It's not 100% if you come out of the shower it disables (AT HABBO ORIGINAL)
in your code the shower doesn't disable.
Re: Beach Shower Fix 100% UberEmu
People, paste the codes in the right things..
It works 100%
when u on it, it activate
when you move out it disactivate
Re: Beach Shower Fix 100% UberEmu
Doesnt work, i get that User is not found in it when i add the same code that ACADEMiC posted here.
Re: Beach Shower Fix 100% UberEmu
This is nice, but post a screenie please :)
Re: Beach Shower Fix 100% UberEmu
Nice but like sean said add some screenies!
Re: Beach Shower Fix 100% UberEmu
Works! In Room.cs was 2 the self :D one working! :D
problem :
When a pet going in the shower crashed the emulator :D
sry for my english i come fron germany
Re: Beach Shower Fix 100% UberEmu
Re: Beach Shower Fix 100% UberEmu
I have it already with your uber edit :D but thanks!!
Re: Beach Shower Fix 100% UberEmu
its my code inside that edit.