- Joined
- Jun 5, 2010
- Messages
- 149
- Reaction score
- 7
now some1 code my command XD
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
.. kay.
ps. can you make Login achievement for Dissi's edit of Holograph Emu ACH_Login1 to ACH_Login10?
number of logins required:
ACH_Login1: 5
ACH_Login2: 25
ACH_Login3: 100
ACH_Login4: 160
ACH_Login5: 210
ACH_Login6: 350
ACH_Login7: 400
ACH_Login8: 430
ACH_Login9: 470
ACH_Login10: 500
case "@H"
break;
#region Badge Login by Bjork
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("BK" + "Good Game! 1 login, you receive a new badge!!");
}
else if (logins == 50)
{
dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login2','" + userID + "','0','1')");
dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login1' AND userid = '" + userID + "'");
refreshBadges();
this.sendData("BK" + "Good Game! 50 logins, you receive a new badge!!");
}
else if (logins == 80)
{
dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login3','" + userID + "','0','1')");
dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login2' AND userid = '" + userID + "'");
refreshBadges();
this.sendData("BK" + "Good Game! 80 logins, you receive a new badge!!");
}
else if (logins == 120)
{
dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login4','" + userID + "','0','1')");
dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login3' AND userid = '" + userID + "'");
refreshBadges();
this.sendData("BK" + "Good Game! 120 logins, you receive a new badge!!");
}
else if (logins == 170)
{
dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login5','" + userID + "','0','1')");
dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login4' AND userid = '" + userID + "'");
refreshBadges();
this.sendData("BK" + "Good Game! 170 logins, you receive a new badge!!");
}
else if (logins == 230)
{
dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login6','" + userID + "','0','1')");
dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login5' AND userid = '" + userID + "'");
refreshBadges();
this.sendData("BK" + "Good Game! 230 logins, you receive a new badge!!");
}
else if (logins == 300)
{
dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login7','" + userID + "','0','1')");
dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login6' AND userid = '" + userID + "'");
refreshBadges();
this.sendData("BK" + "Good Game! 300 logins, you receive a new badge!!");
}
else if (logins == 380)
{
dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login8','" + userID + "','0','1')");
dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login7' AND userid = '" + userID + "'");
refreshBadges();
this.sendData("BK" + "Good Game! 380 logins, you receive a new badge!!");
}
else if (logins == 470)
{
dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login9','" + userID + "','0','1')");
dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login8' AND userid = '" + userID + "'");
refreshBadges();
this.sendData("BK" + "Good Game! 470 logins, you receive a new badge!!");
}
else if (logins == 570)
{
dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login10','" + userID + "','0','1')");
dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login9' AND userid = '" + userID + "'");
refreshBadges();
this.sendData("BK" + "Good Game! 570, you receive a new badge!!");
}
}
}
#endregion
Ok, i just coded this stuff
Don't forget to thank me
You didnt finish mine? ;[
Ok, i just coded this stuff
Search in virtualuser.cs:
Before theCode:case "@H"
place this code:Code:break;
You can change the numbers of logins, badges... if you wantCode:#region Badge Login by Bjork 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("BK" + "Good Game! 1 login, you receive a new badge!!"); } else if (logins == 50) { dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login2','" + userID + "','0','1')"); dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login1' AND userid = '" + userID + "'"); refreshBadges(); this.sendData("BK" + "Good Game! 50 logins, you receive a new badge!!"); } else if (logins == 80) { dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login3','" + userID + "','0','1')"); dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login2' AND userid = '" + userID + "'"); refreshBadges(); this.sendData("BK" + "Good Game! 80 logins, you receive a new badge!!"); } else if (logins == 120) { dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login4','" + userID + "','0','1')"); dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login3' AND userid = '" + userID + "'"); refreshBadges(); this.sendData("BK" + "Good Game! 120 logins, you receive a new badge!!"); } else if (logins == 170) { dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login5','" + userID + "','0','1')"); dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login4' AND userid = '" + userID + "'"); refreshBadges(); this.sendData("BK" + "Good Game! 170 logins, you receive a new badge!!"); } else if (logins == 230) { dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login6','" + userID + "','0','1')"); dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login5' AND userid = '" + userID + "'"); refreshBadges(); this.sendData("BK" + "Good Game! 230 logins, you receive a new badge!!"); } else if (logins == 300) { dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login7','" + userID + "','0','1')"); dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login6' AND userid = '" + userID + "'"); refreshBadges(); this.sendData("BK" + "Good Game! 300 logins, you receive a new badge!!"); } else if (logins == 380) { dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login8','" + userID + "','0','1')"); dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login7' AND userid = '" + userID + "'"); refreshBadges(); this.sendData("BK" + "Good Game! 380 logins, you receive a new badge!!"); } else if (logins == 470) { dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login9','" + userID + "','0','1')"); dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login8' AND userid = '" + userID + "'"); refreshBadges(); this.sendData("BK" + "Good Game! 470 logins, you receive a new badge!!"); } else if (logins == 570) { dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login10','" + userID + "','0','1')"); dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login9' AND userid = '" + userID + "'"); refreshBadges(); this.sendData("BK" + "Good Game! 570, you receive a new badge!!"); } } } #endregion
And add in phpmyadmin a new column in users table named logins like that:
Don't forget to thank me
It doesn't count the disconnect, only if you login.Is that so it will only add +1 loggins per day?
Or will it add +1 loggin every time your disconnect and than reloggin?
For example I disconnect 5 times in 1 day does it say I logged in 5 times?
It doesn't count the disconnect, only if you login.
so if you login it will add +1.
Yeah ovs it's going to add +1 when you login but what i'm saying is does it only work every 24 hours (per day) or will it count every time you login.
Aren't you 'Roper' or the owner of Hectic hotel or something ? You've claimed you can code before. I think if you apply logical thinking and look at the code, you will get your answer right away HURP DERP.
Yea that's right, I can code but I never said I can code c# did I?
And no my names Hayden not Roper
That's the wrong one, but nvm.Go to Packet Processing Then Logged In Ones Find > Enter/Leave Room
If you have a basic knowledge of coding you would clearly see that the code does not have any checker/timer as to when the badges are given out. You also created a Holograph Emulator development thread a few months back. Isn't Holograph in C# ? Yeah it is. Save it, don't bother replying or quoting me although you probably will anyway.