Room Alert - Sending Message Adding to Caution Count Fix
Search for "public void RoomAlert("
Find:
Replace with:
Drink Machines - Giving out drinks if you double click at the side of them.
Search for: case "vendingmachine":
Find:
Replace with:
Teleport - Teleport moves you out if it isn't linked.
Search for "// This tele is not linked, so let's gtfo."
Find:
Replace with:
In marketplace.cs
Credits: Shorty/Habchop
Search for "public void RoomAlert("
Find:
Code:
using (DatabaseClient dbClient = UberEnvironment.GetDatabase().GetClient())
{
dbClient.ExecuteQuery("UPDATE user_info SET cautions = cautions + 1 WHERE " + QueryBuilder.ToString() + " LIMIT " + j);
}
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:
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;
Teleport - Teleport moves you out if it isn't linked.
Search for "// This tele is not linked, so let's gtfo."
Find:
Code:
// This tele is not linked, so let's gtfo.
User.UnlockWalking();
InteractingUser = 0;
Code:
// 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);
In marketplace.cs
Code:
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
Credits: Shorty/Habchop