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

PHP [phpMyAdmin] Commands to edit database.

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE itemtype = 6119' at line 1

I tried to use:

DELETE FROM player_depotitems, player_items, tile_items WHERE itemtype = 6119
 
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE itemtype = 6119' at line 1

I tried to use:

DELETE FROM player_depotitems, player_items, tile_items WHERE itemtype = 6119
Try doing:

DELETE FROM player_depotitems WHERE itemtype = 6119
DELETE FROM player_items WHERE itemtype = 6119
DELETE FROM tile_items WHERE itemtype = 6119
 
could you add a command to make players know all the spells? i can't find it anywhere.
 
In your data/spells/spells.xml, replace all the needLearn="1" against needLearn="0".
 
Anytime, feel free to give me a reputation point! : )
 
@ Jester / Jonern

>> Have you a command to add itens on player in table???

-- Exemple... give 10k all player >= level 20

Many thx...
 
Last edited:
Would this work?

PHP:
DELETE
FROM accounts
WHERE id NOT
IN (
SELECT account_id
FROM players
);

(Delete all accounts with no players in it).
 
Last edited:
Replace "DELETE" with "SELECT *" and you will find your answer.
But yes, it looks like it to me.
 
I thing somone want this?
UPDATE players SET `town_id` = 2
to make all player got 2 town id
u can change it.
 
Thanks, I wasn't sure on how to delete inactive players.
 
Code:
UPDATE players SET loss_experience = 6, loss_mana = 6, loss_skills = 6;

Does this one work? ;p
 
DROP USER 'pma'@'localhost';

Probably the most important these day.
 
Hey I was wondering if it was possible to add skills to all players the same way the trigger would do? The reason for this is the at first, my triggers werent working, but I got them working now, but all the characters created before I put in the oncreate_player trigger have no skills. What would I use to add them?
 
I think everybody knows these commands, they are basic information about SQL.
 
Back
Top Bottom