Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Web MySQL Selecting Users with a value

Experienced Elementalist
Joined
Jul 19, 2011
Messages
288
Reaction score
32
Here is a mysql command to find out who is a GM on your server.
You probably already know the command though. xD

PHP:
SELECT name
FROM `characters`
WHERE gm > 0

You can obviously change it around to suit your needs

PHP:
SELECT name
FROM `characters`
WHERE gm = 1

That would make it so it selects all characters with the GM Level of 1. (Change characters to accounts if you want.)

PHP:
SELECT `level`, `name`, `str`, `dex`, `luk`, `int`
FROM `characters`
WHERE level = 200

This would make it find all the level 200's along with the stats of them.

PHP:
SELECT `name`, `banned`
FROM `accounts`
WHERE banned = 1
Lists the banned people from the server.

If you need the codes for listing any others, just post here and i'll try an reply asap.
PS: Instead of making it three lined, you can merge it to one line (Ex: SELECT name FROM `characters` WHERE gm > 0)
 
Last edited:
Back
Top