• 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!

Lua No frags after kill

Dark ShaoOz

Member
Joined
Apr 19, 2009
Messages
80
Reaction score
5
This is the problem: When I kill someone, you get the white skulls and the msg: Unjustified Kill!
But frag doesnt save, because I use the command !frags, and says that I have 0 frags, I see the website on the top fragers section and nothing. So I think that maybe is a script that save the unjustified in the database, but I dont find that script... And when someone dies by anyone or a monster, deathlist shows nothing too..So can you please guys help me? Thanks.
 
Solution
Resolved \/

in mysql delet 'killers'
and add new

Lua:
DROP TABLE IF EXISTS `killers`;
CREATE TABLE `killers`
(
    `id` INT NOT NULL AUTO_INCREMENT,
    `death_id` INT NOT NULL,
    `final_hit` TINYINT(1) UNSIGNED NOT NULL DEFAULT FALSE,
    `unjustified` TINYINT(1) UNSIGNED NOT NULL DEFAULT FALSE,
    `war` INT NOT NULL DEFAULT 0,
    PRIMARY KEY (`id`),
    FOREIGN KEY (`death_id`) REFERENCES `player_deaths`(`id`) ON DELETE CASCADE
) ENGINE = InnoDB;


in mysql delet 'player_deaths'
and add new

Lua:
DROP TABLE IF EXISTS `player_deaths`;
CREATE TABLE `player_deaths` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `player_id` int(11) NOT NULL,
  `date` bigint(20) unsigned NOT NULL,
  `level` int(10) unsigned NOT NULL,
  PRIMARY KEY...
I think the error is very descriptive: MYSQL ERROR: Field 'altkilled_by' doesn't have a default value (1364)

Maybe the field `altkilled_by` needs a default value, maybe.
 
Everyday the fucking same shit. What your the TFS version you use.
Do you think we can smell that?
Every version is different, and you asking OTLAND without reading the god damn Rules, they do exist for a reason.
And this is exactly why I think we should drop support to tfs <1.x
 
Resolved \/

in mysql delet 'killers'
and add new

Lua:
DROP TABLE IF EXISTS `killers`;
CREATE TABLE `killers`
(
    `id` INT NOT NULL AUTO_INCREMENT,
    `death_id` INT NOT NULL,
    `final_hit` TINYINT(1) UNSIGNED NOT NULL DEFAULT FALSE,
    `unjustified` TINYINT(1) UNSIGNED NOT NULL DEFAULT FALSE,
    `war` INT NOT NULL DEFAULT 0,
    PRIMARY KEY (`id`),
    FOREIGN KEY (`death_id`) REFERENCES `player_deaths`(`id`) ON DELETE CASCADE
) ENGINE = InnoDB;


in mysql delet 'player_deaths'
and add new

Lua:
DROP TABLE IF EXISTS `player_deaths`;
CREATE TABLE `player_deaths` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `player_id` int(11) NOT NULL,
  `date` bigint(20) unsigned NOT NULL,
  `level` int(10) unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `date` (`date`),
  KEY `player_deaths_ibfk_1` (`player_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=42 ;
 
Solution
Back
Top