[RP] Corporation badges in game! [SLEDMORE]

Status
Not open for further replies.

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
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:
Code:
groupBadge = dbClient.getString("SELECT badge FROM groups_details WHERE id = '" + User._groupID + "'");
Replace that with:
Code:
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:
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:

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:
Code:
group_logo_url_template=http://habbocity.ws/26_6d82813456b38f80ad83a827eef0fde3/images/%imagerdata%.gif

Next replace with:
Code:
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!



SORRY ABOUT THE MESSY TUTORIAL, BUT YEAH YOU SHOULD UNDERSTAND IT, IF YOU LIKE IT CLICK THE THANKS BUTTON... MORE COMING YOUR WAY ;').
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
That would be your external_texts.txt file.
 
Status
Not open for further replies.

Users who are viewing this thread

Top