• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

"Redskulltime" what it mean.

Hameq

Banned User
Joined
Aug 8, 2010
Messages
374
Reaction score
36
Hello Otlanders,
players>>redskulltime this value is in database

Can someone explain me some questions?
1.Why when i get 1 frag, redskulltime value changes to this value: 1355132146
2.Why this value is growing instead of a decreaseing.
3.I've got in config like that "TimeToDecreaseFrags = 24 * 60 * 60 * 1000" how it how it calculates to 1355132146 value?

I want some questions because i want to create getPlayerFrags function. I know some made it before me but that function doesn't work because i using oldest database i guess.

I thought that it might be useful part of config:

Code:
    NotationsToBan = 4
    WarningsToFinalBan = 4
    WarningsToDeletion = 5
    BanLength = 1 * 24 * 60 * 60
    FinalBanLength = 7 * 24 * 60 * 60
    IPBanishmentLength = 24 * 60 * 60
    KillsToBan = 8
 
You have 4 notations in Ruleviolations get Banishments
NotationsToBan = 4
Is Same in Warning to final bans..
WarningsToFinalBan = 4
Warnings for deletion char automatic
WarningsToDeletion = 5
How time banned player
Example:
Code:
1 * 24 * 60 * 60 <-- is 1 moth banned
24 * 60 * 60 <-- 1 day banned
48 * 60 * 60 <-- 2 day banneds
NO need explain here:
Code:
    BanLength = 1 * 24 * 60 * 60
    FinalBanLength = 7 * 24 * 60 * 60
    IPBanishmentLength = 24 * 60 * 60
and..
Kills for banned
KillsToBan = 8
 
You have 4 notations in Ruleviolations get Banishments
NotationsToBan = 4
Is Same in Warning to final bans..
WarningsToFinalBan = 4
Warnings for deletion char automatic
WarningsToDeletion = 5
How time banned player
Example:
Code:
1 * 24 * 60 * 60 <-- is 1 moth banned
24 * 60 * 60 <-- 1 day banned
48 * 60 * 60 <-- 2 day banneds
NO need explain here:
Code:
    BanLength = 1 * 24 * 60 * 60
    FinalBanLength = 7 * 24 * 60 * 60
    IPBanishmentLength = 24 * 60 * 60
and..
Kills for banned
KillsToBan = 8

What about this "redskulltime" how can i create getPlayerFrags function using that "redskulltime"?

Someone created something like this but i don't understand it.
Code:
db.getResult("SELECT `pd`.`time`, `pd`.`level`, `p`.`name` FROM `player_killers` pk LEFT JOIN `killers` k ON `pk`.`kill_id` = `k`.`id` LEFT JOIN `player_deaths` pd ON `k`.`death_id` = `pd`.`id` LEFT JOIN `players` p ON `pd`.`player_id` = `p`.`id` WHERE `pk`.`player_id` = " .. getPlayerGUID(cid) .. " AND `k`.`unjustified` = 1 AND `pd`.`date` >= " .. (time - (30 * 86400)) .. " ORDER BY `pd`.`date` DESC")
 
Back
Top