Some Usefull SQL's for Mangos servers menu

User Tag List

Results 1 to 1 of 1
  1. #1
    Blizardo's Avatar Member
    Reputation
    1
    Join Date
    Dec 2008
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Some Usefull SQL's for Mangos servers

    delete account with last login more 60 (change your number) days
    Code:
    DELETE FROM `realmd`.`account` WHERE DATEDIFF(NOW(), `lastlogin`)>60;
    delete accounts without characters
    Code:
    DELETE FROM `realmd`.`account` where `id` not in (select account from `mangos`.`character`);
    Search characters with gold more then number in SQL
    Code:
    select name,SUBSTRING_INDEX(SUBSTRING_INDEX(data,' ',1177),' ',-1) 
    from mangos.character where SUBSTRING_INDEX(SUBSTRING_INDEX(data,' ',1177),' ',-1)>2000000
    Search creature with hi gold drop
    Code:
    select * from creature_template where maxgold>10000 and rank=1
    Output creature guids and names on map (Temple of Ahn'Qiraj here). Usefull for check quest npc.
    Code:
    SELECT 
    `creature`.`guid`,  
    (select creature_template.name from creature_template  
    where creature_template.entry = `creature`.`id`) as name,  
    `creature`.`id` 
    FROM 
    `creature`  
    WHERE `map` = '531'
    Delete item from player's inventory
    Code:
    SET @ITEM = 17740;
    SET @GUID = 4;
    DELETE FROM item_instance WHERE guid IN
    (SELECT item FROM character_inventory WHERE item_template=@ITEM AND guid=@GUID);
    DELETE FROM character_inventory WHERE item_template=@ITEM AND guid=@GUID;
    GM Beer (just for fun)
    Code:
    DELETE FROM item_template WHERE entry=99999;
    INSERT INTO item_template VALUES(99999,0,2,"Beer from GM","Beer from GM","Beer from GM","Beer from GM",7921,6,0,1,2001,301,0,1503,511,30,18,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"0","0",0,"0","0",0,"0","0",0,"0","0",0,"0","0",0,0,0,0,0,0,0,0,0,0,"0",11629,0,-1,0,0,0,6615,0,-1,0,0,0,549,0,-1,0,0,0,19645,0,-1,0,0,0,8212,0,-1,0,0,0,0,"ToJIbKo oT 18 JIET :)",0,0,0,0,0,0,0,0,0,0,0,0,0,0,"internalitemhanler",0);
    DELETE FROM page_text WHERE entry=99999;

    Some Usefull SQL's for Mangos servers

Similar Threads

  1. [Mangos] Admin commands for Mangos server
    By jake9789 in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 07-28-2010, 01:47 PM
  2. [Mangos] [Sql] Celestial Steed for Mangos servers
    By wickedmage in forum WoW EMU General Releases
    Replies: 8
    Last Post: 06-20-2010, 06:54 AM
  3. Looking for T5-T7 vendors / cool custom items for MaNgOs server 2.1.3 (Help posts?)
    By phc_chaos in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 09-28-2007, 08:57 PM
All times are GMT -5. The time now is 05:45 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search