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

Windows Sample Character Problem

I've already tried Vocation Sample but I get this error.

Error
Code:
SQL query:

INSERT INTO  `players` (  `id` ,  `name` ,  `world_id` ,  `group_id` ,  `account_id` ,  `level` ,  `vocation` ,  `health` ,  `healthmax` ,  `experience` ,  `lookbody` ,  `lookfeet` ,  `lookhead` ,  `looklegs` ,  `looktype` ,  `lookaddons` ,  `maglevel` ,  `mana` , `manamax` ,  `manaspent` ,  `soul` ,  `town_id` ,  `posx` ,  `posy` ,  `posz` ,  `conditions` ,  `cap` ,  `sex` ,  `lastlogin` ,  `lastip` ,  `save` ,  `skull` ,  `skulltime` ,  `rank_id` ,  `guildnick` ,  `lastlogout` ,  `blessings` ,  `balance` ,  `stamina` ,  `direction` , `loss_experience` ,  `loss_mana` ,  `loss_skills` ,  `loss_containers` ,  `loss_items` ,  `premend` ,  `online` ,  `marriage` ,  `promotion` ,  `deleted` ,  `description` ,  `created` ,  `nick_verify` ,  `old_name` ,  `hide_char` ,  `comment` ) 
VALUES (

NULL ,  "Sorcerer Sample", 0, 1, 1, 1, 1, 150, 150, 0, 0, 0, 0, 0, 110, 0, 0, 0, 0, 0, 0, 0, 50, 50, 7,  "", 400, 0, 0, 0, 0, 0, 0, 0,  "", 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, "", 0, 0,  "", 0,  ""
);

MySQL said: 

#1452 - Cannot add or update a child row: a foreign key constraint fails (`new2`.`players`, CONSTRAINT `players_ibfk_1` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`) ON DELETE CASCADE)
 
That is why it is not working. It is trying to add these samples to an account with ID of 1. Go ahead and create an account, add change its id to 1 if it isn't by default.
 
Back
Top