Jump to content

Diablox

Members
  • Posts

    182
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by Diablox

  1. Here is alternative way to delete old accounts

    DELETE FROM `realmd`.`account` WHERE DATE_SUB(CURDATE(),INTERVAL 365 DAY) > `last_login`;

    On the first look at your character_* query's you should do this one

    DELETE FROM `character_social` WHERE `friend` NOT IN( SELECT `guid` FROM `characters` );

    Yours item delete query is very slow (at least for me). This is my version

    CREATE TABLE `tmp_table` (
     `guid` bigint unsigned NOT NULL,
     PRIMARY KEY (`guid`)
    ) ENGINE=InnoDB;
    REPLACE INTO `tmp_table` SELECT      `item` FROM `character_inventory`;
    REPLACE INTO `tmp_table` SELECT  `itemguid` FROM             `auction`;
    REPLACE INTO `tmp_table` SELECT `item_guid` FROM     `guild_bank_item`;
    REPLACE INTO `tmp_table` SELECT `item_guid` FROM          `mail_items`;
    REPLACE INTO `tmp_table` SELECT `item_guid` FROM     `character_gifts`;
    DELETE FROM `item_instance` WHERE `guid` NOT IN( SELECT `guid` FROM `tmp_table` );
    DROP TABLE IF EXISTS `tmp_table`;

  2. It looks like this discussion is pointless. Mangos team will not change the way they do and i hope they don't change (also the sheep will go berserk and kill all devs. We don't want that :D). If they did then mangos will be same as every other project. And trinity will run out of things to do if mangos just accepts every single patch that show up on the forums.

    P.S. This is way offtopic

  3. It's not character copy, it's character transfer, wich means old owner will not have it anymore!

    Somehow i got from your post that you plan on slowly copying char from one account to another.

    Anyway i have the same thing on my server and its very simple current char owner just type in username of account where he wants to move the character and its done and ofc a simple log for GM's (you never now what can go wrong).

  4. been trying this out today/tonight and very very good starting spot. I do have trouble with the donation / voting system so far with it crashing the core when i try to send something to a player. but as far as looks and function its an amazing piece of work. ya theres small things that are buggy but if your running your own server i think you should be able to handle fixing some php and sql issues as they arrise.

    Thank You

    https://github.com/mangos/mangos/commit/735f5bf806a1bcb2284db4c8a9b0de6002cb0965

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use