Sellroom alert

Status
Not open for further replies.

Zoodem

New Member
Aug 10, 2018
27
2
Hello,
I need a roomalert for my sellroom command..

I want: When a user comes into the room, he should receive a message that the room is for sale.
Currently: If a user is in the room he gets a message via the chat
Code: (Plus Emu)

// Sorry for my english :s
 

Zoodem

New Member
Aug 10, 2018
27
2
How I can add this?

This is roomalert command event:
RoomUser.GetClient().SendNotification(Session.GetHabbo().Username + " alerted the room with the following message:\n\n" + Message);
 

cammy

Member
May 15, 2014
481
237
My bad I read it wrong. Try adding this to the GetRoomEntryDataEvent.cs


if (Room.RoomData.roomForSale)
{
Session.SendNotification(Session.GetHabbo().Username + " You have entered a room that is for sale. The price of this room is " + Room.RoomData.roomCost + Room.RoomData.roomCostType + "say :buyroom to purchase the room");
}
 
Status
Not open for further replies.

Users who are viewing this thread

Top