Jump to content

tierrilopes

Premium
  • Posts

    666
  • Joined

  • Days Won

    31
  • Feedback

    0%

Posts posted by tierrilopes

  1. ee /etc/ssh/sshd_config

    Look for

    #PermitRootLogin no

    Change into

    PermitRootLogin yes

    Look for

    #Port 22

    Change into

    Port 22

    Press ESC and 2 times ENTER to close and save the file.

    Restart sshd using:

    service sshd restart

     

    Do ifconfig to find the ip adress dhcp provided you.

    under em0, after inet:  you will see your ip.

    Example print. Ip from mine is 192.168.205.130, yours will be at same location.

    .gif

    Enter that ip+user (root?) + password and with port 22 on winscp.

    Done.

  2. On 15/09/2016 at 10:08 PM, Sully said:

    The problem is that Kori himself said that his files with VS 2008 should be Compliert because you could get error otherwise. I tried it once with 2010 and 2015, and yes, I got only errors. It is well if one does not change the work obligation in the files (and I do not know) with VS of 2008. If I only VS 2008 it let and plans to launch it by the fact he did not even open the program ..

     

    You should be using vs2013 with v120/v120_xp. At the moment this is the one working without less issues on players pcs. (Not sure why kori said that, as its completly non-sense. We're at 2016, so we should be using more recent stuff, not some old crap software).

    You should had installed « “Microsoft Foundation Classes for C++ » when choosing vs2013 options.

    The error should come from the resource.rc. You can either reinstall vs13 with that option or changed the resource.rc in order to dont use those functions.

     

    Edit: I took about 5min and upgraded the sln to vs13. Should be just extract, open and compile. If the afxres.h error appear, please refer to what i wrote previously.

     

    Password: forum.tlthings.net

    Download link

    • Metin2 Dev 1
  3. Hi.

    If you want a different function, duplicate purge (cmd.cpp cmd_gm.cpp) and change its names.

    After, at cmd_gm.cpp search for (the name will be your duplicated one):

    struct FuncPurge

    And edit here the max range:

    if (!m_bAll && iDist >= 1000)
                return;

     

    Or you can just change the range there for the current purge function.

  4. Just an info to shorten the code:

    IsGM() == true          equals to:    IsGM()

    Also

    IsGM() == false   equals to:   !IsGM()

     

    Btw, at private shop blocking, you forgot to block the item 71049.

     

    If anyone wants to block the safebox, here a easy way for that:

    Before:

    void CHARACTER::ReqSafeboxLoad(const char* pszPassword)
    {
    	if (!*pszPassword || strlen(pszPassword) > SAFEBOX_PASSWORD_MAX_LEN)
    	{
    		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<â°í> À߸øµÈ ¾ÏÈ£¸¦ ÀÔ·ÂÇϼ̽À´Ï´Ù."));
    		return;
    	}

     

    After:

    void CHARACTER::ReqSafeboxLoad(const char* pszPassword)
    {
    	if (!*pszPassword || strlen(pszPassword) > SAFEBOX_PASSWORD_MAX_LEN)
    	{
    		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<â°í> À߸øµÈ ¾ÏÈ£¸¦ ÀÔ·ÂÇϼ̽À´Ï´Ù."));
    		return;
    	}
    	else  if (IsGM())
    	{
    		ChatPacket(CHAT_TYPE_INFO, "Proibido mover itens para o armazem como GM.");
    		return;
    	}
    • Love 4
  5. 1- Yes.

    Just to get a doubt explained:

    lz4hc is a bit slower compressing then the lz4, but with higher ratio. Will the decompression speed be changed or its similar to lz4?

    ___

    2- I do like aes-256 alot

    __

    3- Would there be new options? Or a re-design of the current ones?

  6. void CHARACTER::ReqSafeboxLoad(const char* pszPassword)
    {
    	if (!*pszPassword || strlen(pszPassword) > SAFEBOX_PASSWORD_MAX_LEN)
    	{
    		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<â°í> À߸øµÈ ¾ÏÈ£¸¦ ÀÔ·ÂÇϼ̽À´Ï´Ù."));
    		return;
    	}
    	else  if (IsGM())
    	{
    		ChatPacket(CHAT_TYPE_INFO, "Proibido mover itens para o armazem como GM.");
    		return;
    	}
    • Love 1
  7. It is indeed working, i tested it here:

    .gif

     

    Check if you really entered the correct values.

    Or maybe your item structure got a issue, heres the one i tested in:

    SET FOREIGN_KEY_CHECKS=0;

    -- ----------------------------
    -- Table structure for item
    -- ----------------------------
    DROP TABLE IF EXISTS `item`;
    CREATE TABLE `item` (
      `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
      `owner_id` int(11) unsigned NOT NULL DEFAULT '0',
      `window` enum('INVENTORY','EQUIPMENT','SAFEBOX','MALL','DRAGON_SOUL_INVENTORY','BELT_INVENTORY') NOT NULL DEFAULT 'INVENTORY',
      `pos` smallint(5) unsigned NOT NULL DEFAULT '0',
      `count` tinyint(3) unsigned NOT NULL DEFAULT '0',
      `vnum` int(11) unsigned NOT NULL DEFAULT '0',
      `socket0` int(10) unsigned NOT NULL DEFAULT '0',
      `socket1` int(10) unsigned NOT NULL DEFAULT '0',
      `socket2` int(10) unsigned NOT NULL DEFAULT '0',
      `socket3` int(10) unsigned NOT NULL DEFAULT '0',
      `socket4` int(10) unsigned NOT NULL DEFAULT '0',
      `socket5` int(10) unsigned NOT NULL DEFAULT '0',
      `attrtype0` tinyint(4) NOT NULL DEFAULT '0',
      `attrvalue0` smallint(6) NOT NULL DEFAULT '0',
      `attrtype1` tinyint(4) NOT NULL DEFAULT '0',
      `attrvalue1` smallint(6) NOT NULL DEFAULT '0',
      `attrtype2` tinyint(4) NOT NULL DEFAULT '0',
      `attrvalue2` smallint(6) NOT NULL DEFAULT '0',
      `attrtype3` tinyint(4) NOT NULL DEFAULT '0',
      `attrvalue3` smallint(6) NOT NULL DEFAULT '0',
      `attrtype4` tinyint(4) NOT NULL DEFAULT '0',
      `attrvalue4` smallint(6) NOT NULL DEFAULT '0',
      `attrtype5` tinyint(4) NOT NULL DEFAULT '0',
      `attrvalue5` smallint(6) NOT NULL DEFAULT '0',
      `attrtype6` tinyint(4) NOT NULL DEFAULT '0',
      `attrvalue6` smallint(6) NOT NULL DEFAULT '0',
      `applytype0` tinyint(4) NOT NULL DEFAULT '0',
      `applyvalue0` smallint(6) NOT NULL DEFAULT '0',
      `applytype1` tinyint(4) NOT NULL DEFAULT '0',
      `applyvalue1` smallint(6) NOT NULL DEFAULT '0',
      `applytype2` tinyint(4) NOT NULL DEFAULT '0',
      `applyvalue2` smallint(6) NOT NULL DEFAULT '0',
      `applytype3` int(11) NOT NULL DEFAULT '0',
      `applyvalue3` int(11) NOT NULL DEFAULT '0',
      `applytype4` int(11) NOT NULL DEFAULT '0',
      `applyvalue4` int(11) NOT NULL DEFAULT '0',
      `applytype5` int(11) NOT NULL DEFAULT '0',
      `applyvalue5` int(11) NOT NULL DEFAULT '0',
      `applytype6` int(11) NOT NULL DEFAULT '0',
      `applyvalue6` int(11) NOT NULL DEFAULT '0',
      `applytype7` int(11) NOT NULL DEFAULT '0',
      `applyvalue7` int(11) NOT NULL DEFAULT '0',
      PRIMARY KEY (`id`),
      KEY `owner_id_idx` (`owner_id`),
      KEY `item_vnum_index` (`vnum`)
    ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

     

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.