Hello,
I'm currently making an edit of Ho0lograph Emulator, and i thought i'd release one of the features i've implemented into it. Basically, it is the "Traveller" achievement system fully coded and tested.
Please note that this is currently only for HoloEMU TDP/TDBP edition, however a non-TDBP one will be released soon.
How to install:
1. Search for case "@H":
2. JUst before the 'break;' - paste the following code:
PHP Code:
#region Login Achievements
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE users SET logins = logins + 1 WHERE id = '" + userID + "'");
int logins = dbClient.getInt("SELECT logins FROM users WHERE id = '" + userID + "'");
if (logins == 1)
{
dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login1','" + userID + "','0','1')");
refreshBadges();
this.sendData("BKNew Achievement unlocked: Your first login");
}
else if (logins == 5)
{
dbClient.runQuery("UPDATE users_badges SET badgeid = 'ACH_Login2' WHERE badgeid = 'ACH_Login1' AND userid = '" + userID + "'");
refreshBadges();
this.sendData("BKNew Achievement unlocked: 5 logins!");
}
else if (logins == 10)
{
dbClient.runQuery("UPDATE users_badges SET badgeid = 'ACH_Login3' WHERE badgeid = 'ACH_Login2' AND userid = '" + userID + "'");
refreshBadges();
this.sendData("BKNew Achievement unlocked: 10 logins!");
}
else if (logins == 20)
{
dbClient.runQuery("UPDATE users_badges SET badgeid = 'ACH_Login4' WHERE badgeid = 'ACH_Login3' AND userid = '" + userID + "'");
refreshBadges();
this.sendData("BKNew Achievement unlocked: 20 logins!");
}
else if (logins == 30)
{
dbClient.runQuery("UPDATE users_badges SET badgeid = 'ACH_Login5' WHERE badgeid = 'ACH_Login4' AND userid = '" + userID + "'");
refreshBadges();
this.sendData("BKNew Achievement unlocked: 30 logins!");
}
else if (logins == 40)
{
dbClient.runQuery("UPDATE users_badges SET badgeid = 'ACH_Login6' WHERE badgeid = 'ACH_Login5' AND userid = '" + userID + "'");
refreshBadges();
this.sendData("BKNew Achievement unlocked: 40 logins!");
}
else if (logins == 50)
{
dbClient.runQuery("UPDATE users_badges SET badgeid = 'ACH_Login7' WHERE badgeid = 'ACH_Login6' AND userid = '" + userID + "'");
refreshBadges();
this.sendData("BKNew Achievement unlocked: 50 logins!");
}
else if (logins == 60)
{
dbClient.runQuery("UPDATE users_badges SET badgeid = 'ACH_Login8' WHERE badgeid = 'ACH_Login7' AND userid = '" + userID + "'");
refreshBadges();
this.sendData("BKNew Achievement unlocked: 60 logins!");
}
else if (logins == 70)
{
dbClient.runQuery("UPDATE users_badges SET badgeid = 'ACH_Login9' WHERE badgeid = 'ACH_Login8' AND userid = '" + userID + "'");
refreshBadges();
this.sendData("BKNew Achievement unlocked: 70 logins!");
}
else if (logins == 80)
{
dbClient.runQuery("UPDATE users_badges SET badgeid = 'ACH_Login10' WHERE badgeid = 'ACH_Login9' AND userid = '" + userID + "'");
refreshBadges();
this.sendData("BKNew Achievement unlocked: Tra");
}
}
#endregion
3. Now press f5, and your done!
What it does is on each achievement level(1 login, 5 logins etc..)- it will update your badge and remove the previous one you earnt.
If you like this release, then I am more likely to release more things like this.
Required Badges:
http://images.habbo.com/c_images/alb...ACH_Login1.gif
http://images.habbo.com/c_images/alb...ACH_Login2.gif
http://images.habbo.com/c_images/alb...ACH_Login3.gif
http://images.habbo.com/c_images/alb...ACH_Login4.gif
http://images.habbo.com/c_images/alb...ACH_Login5.gif
http://images.habbo.com/c_images/alb...ACH_Login6.gif
http://images.habbo.com/c_images/alb...ACH_Login7.gif
http://images.habbo.com/c_images/alb...ACH_Login8.gif
http://images.habbo.com/c_images/alb...ACH_Login9.gif
http://images.habbo.com/c_images/alb...CH_Login10.gif
Press the 'Like' button and I will release more often :)