Quote: Originally Posted by
razkevin
I Believe Its Possible.
try Creating An int Varaible For Displaying The Room
Then Something Like This -
target.sendData("C~" )
Etc...
:( Ok, I'm going to sound like the biggest n00b ever now but I don't have a clue how I would go about making a variable for displaying a room. I could make a variable but I wouldn't know where to go after that point.
Yep, you have permission to laugh. :(
Would it have something to do with this?
Code:
case "@{": // Enter room - guestroom - guestroom only data: model, wallpaper, rights, room votes
{
if (_ROOMACCESS_SECONDARY_OK && _inPublicroom == false)
{
string Model = "model_" + DB.runRead("SELECT model FROM rooms WHERE id = '" + _roomID + "'");
sendData("AE" + Model + " " + _roomID);
int Wallpaper = DB.runRead("SELECT wallpaper FROM rooms WHERE id = '" + _roomID + "'", null);
int Floor = DB.runRead("SELECT floor FROM rooms WHERE id = '" + _roomID + "'", null);
if (Wallpaper > 0)
sendData("@n" + "wallpaper/" + Wallpaper);
if (Floor > 0)
sendData("@n" + "floor/" + Floor);
if (_isOwner == false)
{
_isOwner = rankManager.containsRight(_Rank, "fuse_any_room_controller");
}
if (_isOwner)
{
_hasRights = true;
sendData("@o");
}
if (_hasRights)
sendData("@j");
int voteAmount = -1;
if (DB.checkExists("SELECT userid FROM room_votes WHERE userid = '" + userID + "' AND roomid = '" + _roomID + "'"))
{
voteAmount = DB.runRead("SELECT SUM(vote) FROM room_votes WHERE roomid = '" + _roomID + "'", null);
if (voteAmount < 0) { voteAmount = 0; }
}
sendData("EY" + Encoding.encodeVL64(voteAmount));
sendData("Er" + eventManager.getEvent(_roomID));
}
break;
}