Alt Account checking

This commit is contained in:
ZomgPonies
2015-04-06 23:12:15 -04:00
parent 807cf437bd
commit cb987d3692
6 changed files with 40 additions and 10 deletions
+3 -3
View File
@@ -41,9 +41,9 @@
////////////////////////////////////
//things that require the database//
////////////////////////////////////
var/player_age = "Requires database" //So admins know why it isn't working - Used to determine how old the account is - in days.
var/related_accounts_ip = "Requires database" //So admins know why it isn't working - Used to determine what other accounts previously logged in from this ip
var/related_accounts_cid = "Requires database" //So admins know why it isn't working - Used to determine what other accounts previously logged in from this computer id
var/player_age = "--" //So admins know why it isn't working - Used to determine how old the account is - in days.
var/list/related_accounts_ip = list() //So admins know why it isn't working - Used to determine what other accounts previously logged in from this ip
var/list/related_accounts_cid = list() //So admins know why it isn't working - Used to determine what other accounts previously logged in from this computer id
preload_rsc = 1 // This is 0 so we can set it to an URL once the player logs in and have them download the resources from a different server.
+10 -6
View File
@@ -307,17 +307,21 @@
var/DBQuery/query_ip = dbcon.NewQuery("SELECT ckey FROM erro_player WHERE ip = '[address]'")
query_ip.Execute()
related_accounts_ip = ""
related_accounts_ip = list()
while(query_ip.NextRow())
related_accounts_ip += "[query_ip.item[1]], "
break
if(ckey != query_ip.item[1])
related_accounts_ip.Add("[query_ip.item[1]]")
var/DBQuery/query_cid = dbcon.NewQuery("SELECT ckey FROM erro_player WHERE computerid = '[computer_id]'")
query_cid.Execute()
related_accounts_cid = ""
related_accounts_cid = list()
while(query_cid.NextRow())
related_accounts_cid += "[query_cid.item[1]], "
break
if(ckey != query_cid.item[1])
related_accounts_cid.Add("[query_cid.item[1]]")
//Log all the alts
if(related_accounts_cid.len)
log_access("Alts: [key_name(src)]:[list2text(related_accounts_cid, " - ")]")
//Just the standard check to see if it's actually a number
if(sql_id)