Room Alert - Sending Message Adding to Caution Count Fix
Search for "public void RoomAlert("
Find:
Code:
Replace with:Code:using (DatabaseClient dbClient = UberEnvironment.GetDatabase().GetClient()) { dbClient.ExecuteQuery("UPDATE user_info SET cautions = cautions + 1 WHERE " + QueryBuilder.ToString() + " LIMIT " + j); }
Code:
Replace with:Code:if (Caution) { using (DatabaseClient dbClient = UberEnvironment.GetDatabase().GetClient()) { dbClient.ExecuteQuery("UPDATE user_info SET cautions = cautions + 1 WHERE " + QueryBuilder.ToString() + " LIMIT " + j); } } Drink Machines - Giving out drinks if you double click at the side of them. Search for: case "vendingmachine": Find: Code: case "vendingmachine": if (this.ExtraData == "1") { User = GetRoom().GetRoomUserByHabbo(InteractingUser); if (User != null) { User.UnlockWalking(); int randomDrink = GetBaseItem().VendingIds[UberEnvironment.GetRandomNumber(0, (GetBaseItem().VendingIds.Count - 1))]; User.CarryItem(randomDrink); } this.InteractingUser = 0; this.ExtraData = "0"; UpdateState(false, true); break;
Code:
Teleport - Teleport moves you out if it isn't linked.Code:case "vendingmachine": if (this.ExtraData == "1") { User = GetRoom().GetRoomUserByHabbo(InteractingUser); if (User != null && User.Coordinate == SquareInFront) { int randomDrink = GetBaseItem().VendingIds[UberEnvironment.GetRandomNumber(0, (GetBaseItem().VendingIds.Count - 1))]; User.CarryItem(randomDrink); } this.InteractingUser = 0; this.ExtraData = "0"; User.UnlockWalking(); UpdateState(false, true); } break;
Search for "// This tele is not linked, so let's gtfo."
Find:
Code:Replace with:Code:// This tele is not linked, so let's gtfo. User.UnlockWalking(); InteractingUser = 0;
Code:
In marketplace.csCode:// This tele is not linked, so let's gtfo. // Open the door keepDoorOpen = true; User.UnlockWalking(); InteractingUser = 0; // Move out of the tele User.MoveTo(SquareInFront);
Code:
Credits: Shorty/HabchopCode:Message.AppendUInt((uint)Row["offer_id"]); Message.AppendInt32(1); Message.AppendInt32(int.Parse(Row["item_type"].ToString())); Message.AppendInt32((int)Row["sprite_id"]); // Sprite ID Message.AppendStringWithBreak(""); // Extra Chr (R52) Message.AppendInt32((int)Row["total_price"]); // Price Message.AppendInt32((int)Row["sprite_id"]); // ?? Message.AppendInt32((int)Row["total_price"]); // Avg Message.AppendInt32(0); // Offers



![[FIXES] uberEmulator](http://ragezone.com/hyper728.png)

