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

Sql query guild points

The extros

New Member
Joined
Jun 28, 2010
Messages
98
Reaction score
1
Hi everyone, I am having some problems, I want to give 500 points to all the players from X guild, but it has like 60 players, does anyone knows any sql query that gives 500 points to everyone in guild id X ?

Thanks!
 
Hello!!

First search the table of contains Points, i look this and I have not found.

please respond and tell me what this table, and try to create the sql query

:)
 
SQL:
UPDATE accounts SET premium_points = premium_points+500 WHERE id IN 
(SELECT DISTINCT account_id FROM players WHERE rank_id in 
	(SELECT id FROM guild_ranks WHERE guild_id = 
		(SELECT id FROM guilds WHERE name = 'name')))
 
Try this:

SQL:
DROP TABLE IF EXISTS `accounts`
(
	`premium_points` INT NOT NULL DEFAULT 0,
	PRIMARY KEY (`id`), UNIQUE (`name`)
) ENGINE = InnoDB;
 
Back
Top