Mikee
Active Member
- Jul 8, 2017
- 162
- 102
If boosting to collect currency is an issue on your hotel simply implement this code i've wrtten, and it'll solve your problem (most likely).
I suck at adding gifs so heres the link
Firstly, create a new class called CheckBoosting
Then go to Habbo.cs and add
public bool BoostingCheck;
Then go to RoomUser.cs
and find "GoalX = pX"
above that, put
Then go to GetRoomEntryDataEvent.cs and add near the bottom.
Enjoy !
I suck at adding gifs so heres the link
You must be registered for see links
Firstly, create a new class called CheckBoosting
Code:
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using Plus.HabboHotel.GameClients;
using Plus.Communication.Packets.Outgoing.Inventory.Purse;
using Plus.Database.Interfaces;
using Plus.HabboHotel.Users;
using Plus.Communication.Packets.Outgoing.Rooms.Chat;
using Plus.Communication.Packets.Outgoing.Rooms;
using Plus.Communication.Packets.Outgoing.Rooms.Notifications;
using Plus.Communication.Packets.Outgoing.Rooms.Session;
namespace Plus.HabboHotel.Rooms
{
class CheckBoosting
{
public List<int> XCoordinates = new List<int>();
public List<int> YCoordinates= new List<int>();
private int SpotDetection;
private GameClient mClient;
int HabboId;
public void BoostingMovement(Room room, GameClient RecieveClient, int IdOfHabbo, int x, int y)
{
this.HabboId = IdOfHabbo;
this.mClient = RecieveClient;
this.XCoordinates.Add(x);
this.YCoordinates.Add(y);
if (this.XCoordinates.Count == 200)
{
for (int i = XCoordinates.Count-1; i > (XCoordinates.Count/2); i--)
{
if (XCoordinates[i] == XCoordinates[i - 1])
{
continue;
}
else
{
GetClient().GetHabbo().BoostingCheck = false;
return;
}
}
room.GetRoomUserManager().RemoveUserFromRoom(RecieveClient, true, true, true);
GetClient().SendPacket(new RoomReadyComposer("ADM", 3, "You Have Been Kicked for Boosting ! Better Luck Next Time"));
}
}
public GameClient GetClient()
{
if (this.mClient == null)
this.mClient = PlusEnvironment.GetGame().GetClientManager().GetClientByUserID(HabboId);
return mClient;
}
}
}
Then go to Habbo.cs and add
public bool BoostingCheck;
Then go to RoomUser.cs
and find "GoalX = pX"
above that, put
Code:
if (GetClient().GetHabbo().BoostingCheck)
{
this.BoostingCheck.BoostingMovement(this.mRoom,this.mClient, this.HabboId,pX, pY);
}
Then go to GetRoomEntryDataEvent.cs and add near the bottom.
Code:
Session.GetHabbo().BoostingCheck = true;
Enjoy !
Last edited: