Brad
Well-Known Member
Noting much but just thought I'd Release it.
Just change Plus to Mercury. yes I've renamed Mercury back to it's original name.
only the user you sent it to will see it.
Command line:
:welcome (username)
Screenshot:
PHP:
case "welcome":
if (!this.Session.GetHabbo().GotCommand("commands"))
{
return false;//2D3B;
}
if ((Params[1] != null))
{
string username = null;
GameClient client6 = null;
username = Params[1];
client6 = PlusEnvironment.GetGame().GetClientManager().GetClientByUsername(username);
Room room42 = client6.GetHabbo().CurrentRoom;
if (client6 == null)
{
this.Session.SendNotif("User could not be found.");
return true;
}
client6.SendWhisper("Welcome To Buzz Hotel, From " + this.Session.GetHabbo().Username);
return true;//2D3B;
}
this.Session.SendNotif("You left something empty.");
return true;
only the user you sent it to will see it.
Command line:
:welcome (username)
Screenshot:
You must be registered for see links
Ok got a new command, :twitch
You could altar this for Fansites if your hotel Promotes them, This is yet an easy and quick command,
PHP:
case "twitch":
case "stream":
case "streamers":
{
using (IQueryAdapter id = PlusEnvironment.GetDatabaseManager().getQueryreactor())
{
StringBuilder builder = new StringBuilder();
builder.Append("Hey, " + this.Session.GetHabbo().Username + " Here is a list of Twitch Streamers, it will be Very Apreciated if you Follow these :D.\n");
builder.Append("\n");
id.setQuery("SELECT id,username,twitch FROM twitch_users");
id.addParameter("user", id);
DataRow row3 = id.getRow();
builder.Append("Streamer:\n");
builder.Append("Twitch Username: "+row3[2]+" Twitch Link = http://twitch.tv/ "+row3[2]+ "\n");
builder.Append("in-game Username: " + row3[1] + "\n");
builder.Append("\n");
builder.Append("\n");
builder.Append("Do you stream on twitch & want to show here? Contact Brad in-game.\n");
this.Session.SendNotifWithScroll(builder.ToString());
}
}
return true;
Code:
DROP TABLE IF EXISTS `twitch_users`;
CREATE TABLE `twitch_users` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(550) DEFAULT NULL,
`twitch` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of twitch_users
-- ----------------------------
INSERT INTO `twitch_users` VALUES ('1', 'Brad', 'Cappercom');
You could altar this for Fansites if your hotel Promotes them, This is yet an easy and quick command,
PHP:
case "fansites":
{
using (IQueryAdapter id = PlusEnvironment.GetDatabaseManager().getQueryreactor())
{
StringBuilder builder = new StringBuilder();
builder.Append("Hey, " + Session.GetHabbo().Username + " Here is a list of Our Official Fansites, it will be Very Apreciated if you check then out :D.\n");
builder.Append("\n");
using (IQueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().getQueryreactor())
{
dbClient.setQuery("SELECT `name`,`username`,`link` FROM `fansites`");
DataTable GetFansites = dbClient.getTable();
if (GetFansites != null)
{
foreach (DataRow Row in GetFansites.Rows)
{
builder.Append("Fansite:\n");
builder.Append("Fansite Name: " + Row["name"] + " Fansite Link = " + Row["link"] + "\n");
builder.Append("in-game Username: " + Row["username"] + "\n");
builder.Append("\n");
}
}
else
{
builder.Append("There are currently no Fansites.\n");
}
}
builder.Append("Want yours to show here? Message (your username) in-game to sort this out! :D\n");
Session.SendNotifWithScroll(builder.ToString());
}
}
return true;
Code:
CREATE TABLE `fansites` (
`name` int(11) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(550) DEFAULT NULL,
`link` varchar(255) DEFAULT NULL,
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
Last edited: