Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Quote:
Originally Posted by
Bjork
Ok, i just coded this stuff
Search in virtualuser.cs:
Before the
place this code:
Code:
#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
You can change the numbers of logins, badges... if you want ;)
And add in phpmyadmin a new column in
users table named
logins like that:
http://i35.tinypic.com/24qs4z9.jpg
Don't forget to thank me :)
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?
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Quote:
Originally Posted by
Hydros1
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.
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Quote:
Originally Posted by
Eronisch
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.
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Quote:
Originally Posted by
Hydros1
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.
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Quote:
Originally Posted by
MattUK
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
---------- Post added at 08:18 AM ---------- Previous post was at 08:14 AM ----------
Btw I think it might start with this string to get it to only work for today: string now = DateTime.Today.ToString(); ?
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Go to Packet Processing Then Logged In Ones Find > Enter/Leave Room
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Quote:
Originally Posted by
Hydros1
Yea that's right, I can code but I never said I can code c# did I?
And no my names Hayden not Roper
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.
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Quote:
Originally Posted by
Zak
Go to Packet Processing Then Logged In Ones Find > Enter/Leave Room
That's the wrong one, but nvm.
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
thanks for login achievements.
rated this thread 10/10.
wants new code:
emulator:lost_memory's emulator
command: :buyfurni FURNI-TID AMOUNT
what it does:
It will buy you furni with the tid FURNI-TID and the amount of furni are AMOUNT (replace FURNI-TID with the furni tid in db and AMOUNT with the amount of furni.
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Quote:
Originally Posted by
MattUK
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.
Wow, ur a looser.
Link me to my "Thread" that I made?
By the way, i'm pretty sure I can code, I dont need you to say I can't because I know it's not true, I will admit that I didnt read through his snippet before I posted, as I realise that now.
So please stop making up stories.
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Quote:
Originally Posted by
MattUK
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.
Sorry but why are you asking if he is me?
ontopic;
Great commands being released here tbh.
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Emulator: Dissi's edit R26
Command: Sso ticket nuller
What it does: Nulls ur sso ticket before logging in. someon did it in the cms but that didn't work, so idk if it works in the emu?
Emulator: Dissi's edit R26
Command: :happyhour on/off
What it does: It puts the Rares catalogue_pages to rank 1 every friday night on 9pm and it refresh the cata too >;)
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Quote:
Originally Posted by
Eronisch
Emulator: Dissi's edit R26
Command: Sso ticket nuller
What it does: Nulls ur sso ticket before logging in. someon did it in the cms but that didn't work, so idk if it works in the emu?
Emulator: Dissi's edit R26
Command: :happyhour on/off
What it does: It puts the Rares catalogue_pages to rank 1 every friday night on 9pm and it refresh the cata too >;)
Seo null'er can be done via the cms weather it be on login or on load the client.
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Closed thread.
Read first post for info.