MMOCoin

Likes Likes:  0
Results 1 to 8 of 8

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Founder
    Apple's Avatar
    Join Date
    Jul 2008
    Location
    HeaveN
    Posts
    15,917
    Post Thanks / Like
    Rep Power
    10
    Reputation
    295
    Quote Originally Posted by JoshCarter View Post
    Hmm... Everything applied fine using patch -p1 < patchname.patch... Compiled fine... I can see 49 fake players, but their names appear as numbers, and their 'class' returns unknown. Did you test this b4 releasing it?
    if someone can fix this script without any editing then it will be awesome
    but for temporary fix or you can say to make it working with current script's layout you will need to do following steps

    Go to src/server/game/Entities/Player/Player.cpp
    Find Line
    CharacterDatabase.PExecute("UPDATE characters_fake SET zone = (FLOOR(50 * RAND()) + 1) WHERE online>1");
    & Replace with
    CharacterDatabase.PExecute("UPDATE characters_fake SET gender = (FLOOR(50 * RAND()) + 1) WHERE online>1");

    then

    Find line
    CharacterDatabase.PExecute("UPDATE characters_fake SET level=level+1 WHERE online>1 AND level<5");
    & Replace with
    CharacterDatabase.PExecute("UPDATE characters_fake SET zone=zone+1 WHERE online>1 AND level<5");

    & then you will need to execute this query in characters db, which has some with some annoying structure
    Code:
    SET FOREIGN_KEY_CHECKS=0;-- ----------------------------
    -- Table structure for `characters_fake`
    -- ----------------------------
    DROP TABLE IF EXISTS `characters_fake`;
    CREATE TABLE `characters_fake` (
      `race` varchar(36) NOT NULL,
      `name` mediumint(3) NOT NULL DEFAULT '0',
      `class` mediumint(3) NOT NULL DEFAULT '0',
      `level` mediumint(3) NOT NULL DEFAULT '0',
      `gender` mediumint(9) NOT NULL DEFAULT '0',
      `zone` mediumint(3) NOT NULL DEFAULT '0',
      `online` mediumint(3) NOT NULL DEFAULT '0',
      PRIMARY KEY (`race`,`name`,`class`,`level`,`gender`,`zone`,`online`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    
    
    -- ----------------------------
    -- Records of characters_fake
    -- ----------------------------
    
    
    INSERT INTO `characters_fake` VALUES ('Seventeem', '5', '9', '8', '39', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Siwftkim', '3', '7', '5', '6', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Stdchrtd', '8', '9', '2', '46', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Thefreakz', '8', '8', '8', '7', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Treaex', '5', '7', '2', '29', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Trillium', '4', '5', '5', '47', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Turtlae', '6', '5', '6', '33', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Uganhja', '5', '6', '1', '25', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Valmartend', '9', '2', '6', '1', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Vineth', '6', '5', '4', '26', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Walmortq', '3', '5', '3', '9', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Xonosek', '3', '3', '3', '40', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Youzuga', '7', '7', '7', '3', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Zauktaji', '5', '4', '3', '43', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Zebinar', '6', '2', '11', '44', '80', '2');


    in this table

    race = name
    name = race?
    class = ?
    level = class
    gender = zone
    zone = level
    online = online,

    Special Thanks to Exonation for helping



    its a really annoying solution for current layout of this patch. I hope a pro C++ developer will find what is wrong in Script & will make it working with normal/default "characters_fake" table structure











  2. Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread

  3. #2
    Premium
    Asbonia's Avatar
    Join Date
    Oct 2013
    Location
    Norway
    Posts
    151
    Post Thanks / Like
    Rep Power
    13
    Reputation
    35
    Quote Originally Posted by MysteriousSouL View Post
    if someone can fix this script without any editing then it will be awesome
    but for temporary fix or you can say to make it working with current script's layout you will need to do following steps

    Go to src/server/game/Entities/Player/Player.cpp
    Find Line
    CharacterDatabase.PExecute("UPDATE characters_fake SET zone = (FLOOR(50 * RAND()) + 1) WHERE online>1");
    & Replace with
    CharacterDatabase.PExecute("UPDATE characters_fake SET gender = (FLOOR(50 * RAND()) + 1) WHERE online>1");

    then

    Find line
    CharacterDatabase.PExecute("UPDATE characters_fake SET level=level+1 WHERE online>1 AND level<5");
    & Replace with
    CharacterDatabase.PExecute("UPDATE characters_fake SET zone=zone+1 WHERE online>1 AND level<5");

    & then you will need to execute this query in characters db, which has some with some annoying structure
    Code:
    SET FOREIGN_KEY_CHECKS=0;-- ----------------------------
    -- Table structure for `characters_fake`
    -- ----------------------------
    DROP TABLE IF EXISTS `characters_fake`;
    CREATE TABLE `characters_fake` (
      `race` varchar(36) NOT NULL,
      `name` mediumint(3) NOT NULL DEFAULT '0',
      `class` mediumint(3) NOT NULL DEFAULT '0',
      `level` mediumint(3) NOT NULL DEFAULT '0',
      `gender` mediumint(9) NOT NULL DEFAULT '0',
      `zone` mediumint(3) NOT NULL DEFAULT '0',
      `online` mediumint(3) NOT NULL DEFAULT '0',
      PRIMARY KEY (`race`,`name`,`class`,`level`,`gender`,`zone`,`online`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    
    
    -- ----------------------------
    -- Records of characters_fake
    -- ----------------------------
    
    
    INSERT INTO `characters_fake` VALUES ('Seventeem', '5', '9', '8', '39', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Siwftkim', '3', '7', '5', '6', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Stdchrtd', '8', '9', '2', '46', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Thefreakz', '8', '8', '8', '7', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Treaex', '5', '7', '2', '29', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Trillium', '4', '5', '5', '47', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Turtlae', '6', '5', '6', '33', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Uganhja', '5', '6', '1', '25', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Valmartend', '9', '2', '6', '1', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Vineth', '6', '5', '4', '26', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Walmortq', '3', '5', '3', '9', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Xonosek', '3', '3', '3', '40', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Youzuga', '7', '7', '7', '3', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Zauktaji', '5', '4', '3', '43', '80', '2');
    INSERT INTO `characters_fake` VALUES ('Zebinar', '6', '2', '11', '44', '80', '2');


    in this table

    race = name
    name = race?
    class = ?
    level = class
    gender = zone
    zone = level
    online = online,

    Special Thanks to Exonation for helping

    its a really annoying solution for current layout of this patch. I hope a pro C++ developer will find what is wrong in Script & will make it working with normal/default "characters_fake" table structure




    Like this ^

 

 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •