Hey guys,
Another release form me, this time its bigger and better!
Step ONE!
- Open up virtualRoom.cs..
- Search for:
- 'sendData(@"@\" + User.roomUser.detailsString);' (with no quotes)
Step TWO!
Find this:
'groupBadge = dbClient.getString("SELECT badge FROM groups_details WHERE id = '" + User._groupID + "'");' (again no quotes)
Replace that with:
groupBadge = dbClient.getString("SELECT badge FROM jobs_corps WHERE id = '" + User._groupID + "'");
Step THREE!
- Goto virtualUser.cs...
- Search for 'case "Cg":' (With no quotes)
- Replace yours with this:
PHP Code:
case "Cg": // Group badges - get details about a group [click badge]
{
if (Room != null && roomUser != null)
{
int groupID = Encoding.decodeVL64(currentPacket.Substring(2));
//Database dbClient = new Database(true, false, 99);
DataRow dRow;
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dRow = dbClient.getRow("SELECT corp_name,description FROM jobs_corps WHERE id = '" + groupID + "'");
}
if (dRow.Table.Rows.Count == 1)
{
}
}
break;
}
Step FOUR!
- Search for: 'internal void refreshGroupStatus()' (no quotes)
- Replace the whole code of that void with this:
PHP Code:
internal void refreshGroupStatus()
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
_groupID = dbClient.getInt("SELECT corp_id FROM users WHERE id = '" + userID + "'");
}
}
Now to debug!!
Step FIVE! TEXTS!
Search for: 'group_logo_url_template=http://habbocity.ws/26_6d82813456b38f80ad83a827eef0fde3/images/%imagerdata%.gif
' (NO QUOTES!!)
Next replace with:
'group_logo_url_template=http://sitelink.com/images/badges/%imagerdata%.gif' (no quotes).
NOW you need my images, if you have my stockexchange page you wont need them, but here they are!
Download badges.zip from Sendspace.com - send big files the easy way
SORRY ABOUT THE MESSY TUTORIAL, BUT YEAH YOU SHOULD UNDERSTAND IT, IF YOU LIKE IT CLICK THE THANKS BUTTON... MORE COMING YOUR WAY ;').