Hello I'm trying to do a count system that tells you what the user has got on the dice. I believe this is where you do it since I looked in to debug.
I'm trying to get room whisper.
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using Plus.HabboHotel.Rooms;
using Plus.HabboHotel.Items;
namespace Plus.Communication.Packets.Incoming.Rooms.Furni
{
class ThrowDiceEvent : IPacketEvent
{
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet)
{
Room Room = Session.GetHabbo().CurrentRoom;
if (Room == null)
return;
Item Item = Room.GetRoomItemHandler().GetItem(Packet.PopInt());
if (Item == null)
return;
Boolean hasRights = false;
if (Room.CheckRights(Session, false, true))
hasRights = true;
int request = Packet.PopInt();
Item.Interactor.OnTrigger(Session, Item, request, hasRights);
}
}
}
Something like: (Username) got number 4 on the dice
I'm trying to get room whisper.
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using Plus.HabboHotel.Rooms;
using Plus.HabboHotel.Items;
namespace Plus.Communication.Packets.Incoming.Rooms.Furni
{
class ThrowDiceEvent : IPacketEvent
{
public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet)
{
Room Room = Session.GetHabbo().CurrentRoom;
if (Room == null)
return;
Item Item = Room.GetRoomItemHandler().GetItem(Packet.PopInt());
if (Item == null)
return;
Boolean hasRights = false;
if (Room.CheckRights(Session, false, true))
hasRights = true;
int request = Packet.PopInt();
Item.Interactor.OnTrigger(Session, Item, request, hasRights);
}
}
}
Something like: (Username) got number 4 on the dice
Last edited: