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

Help with skill problem :/

andrew95434

Banned User
Joined
May 6, 2010
Messages
86
Reaction score
0
Location
chile
The problem is that people skills in training monks.. or wherever, and they go up with skills,
but when they log out and log in, or die, etc..
they have skill 10 :/ plz help what should i do??
 
okay, this is what you have to execute in phpMyAdmin:
SQL:
INSERT IGNORE INTO `player_skills`
SELECT `id` , 0, 10, 0
FROM `players`
UNION SELECT `id` , 1, 10, 0
FROM `players`
UNION SELECT `id` , 2, 10, 0
FROM `players`
UNION SELECT `id` , 3, 10, 0
FROM `players`
UNION SELECT `id` , 4, 10, 0
FROM `players`
UNION SELECT `id` , 5, 10, 0
FROM `players`
UNION SELECT `id` , 6, 10, 0
FROM `players` ;
ideally, all players should be offline
 
okay, this is what you have to execute in phpMyAdmin:
SQL:
INSERT IGNORE INTO `player_skills`
SELECT `id` , 0, 10, 0
FROM `players`
UNION SELECT `id` , 1, 10, 0
FROM `players`
UNION SELECT `id` , 2, 10, 0
FROM `players`
UNION SELECT `id` , 3, 10, 0
FROM `players`
UNION SELECT `id` , 4, 10, 0
FROM `players`
UNION SELECT `id` , 5, 10, 0
FROM `players`
UNION SELECT `id` , 6, 10, 0
FROM `players` ;
ideally, all players should be offline

that works but.. i have to execute it every time when someone create a new player, how can i do it to always that code works??
sorry about my english :/
 
how do players create their characters? through account manager or website? if website, which AAC are you using?
 
maybe is it this:


Trigger: ondelete_accounts does not exist, creating it...
[09/05/2011 16:27:58] mysql_real_query(): CREATE TRIGGER `ondelete_accounts` BEFORE DELETE ON `accounts` FOR EACH ROW BEGIN DELETE FROM `bans` WHERE `type` NOT IN(1, 2) AND `value` = OLD.`id`; END; - MYSQL ERROR: Trigger already exists (1359)
[09/05/2011 16:27:58] > Trigger: oncreate_guilds does not exist, creating it...
[09/05/2011 16:27:58] mysql_real_query(): CREATE TRIGGER `oncreate_guilds` AFTER INSERT ON `guilds` FOR EACH ROW BEGIN INSERT INTO `guild_ranks` (`name`, `level`, `guild_id`) VALUES ('Leader', 3, NEW.`id`); INSERT INTO `guild_ranks` (`name`, `level`, `guild_id`) VALUES ('Vice-Leader', 2, NEW.`id`); INSERT INTO `guild_ranks` (`name`, `level`, `guild_id`) VALUES ('Member', 1, NEW.`id`); END; - MYSQL ERROR: Trigger already exists (1359)
[09/05/2011 16:27:58] > Trigger: ondelete_guilds does not exist, creating it...
[09/05/2011 16:27:58] mysql_real_query(): CREATE TRIGGER `ondelete_guilds` BEFORE DELETE ON `guilds` FOR EACH ROW BEGIN UPDATE `players` SET `guildnick` = '', `rank_id` = 0 WHERE `rank_id` IN (SELECT `id` FROM `guild_ranks` WHERE `guild_id` = OLD.`id`); END; - MYSQL ERROR: Trigger already exists (1359)
[09/05/2011 16:27:59] > Trigger: oncreate_players does not exist, creating it...
[09/05/2011 16:27:59] mysql_real_query(): CREATE TRIGGER `oncreate_players` AFTER INSERT ON `players` FOR EACH ROW BEGIN INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 0, 10); INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 1, 10); INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 2, 10); INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 3, 10); INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 4, 10); INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 5, 10); INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 6, 10); END; - MYSQL ERROR: Trigger already exists (1359)
[09/05/2011 16:27:59] > Trigger: ondelete_players does not exist, creating it...
[09/05/2011 16:27:59] mysql_real_query(): CREATE TRIGGER `ondelete_players` BEFORE DELETE ON `players` FOR EACH ROW BEGIN DELETE FROM `bans` WHERE `type` = 2 AND `value` = OLD.`id`; UPDATE `houses` SET `owner` = 0 WHERE `owner` = OLD.`id`; END; - MYSQL ERROR: Trigger already exists (1359)


that apears in the executer of the server...
 
Back
Top