Jump to content

Mali

Honorable Member
  • Posts

    918
  • Joined

  • Days Won

    877
  • Feedback

    100%

Posts posted by Mali

  1. 8 hours ago, .InyaProduction said:

    Just a warning to those who really value their discord Account, this is seen as a User Bot, which is forbidden by discord and you will get you banned if you are out of luck (unless you are using a bot, which needs to be invited by the server owner)

    I also recommend using bot accounts.  It was just an example in the video. I have already added what needs to be done about the bot to the readme file.

    Can you add that rule here? So other people can read it and find out what it is.

    Edit: 

    https://support.discord.com/hc/en-us/articles/115002192352-Automated-user-accounts-self-bots-

    • Metin2 Dev 1
  2. 18 minutes ago, Debloat said:

    Works absolutely great! Thank you so much for sharing! Just a small question tho, where to localize this text? 

    spacer.png

    This is the hidden content, please

    Use LC_TEXT to avoid problems with special characters of your language.

    • Metin2 Dev 27
    • Eyes 2
    • Good 5
    • Love 8
  3. 37 minutes ago, hasanmacit said:

    @ Mali

    While the item is in the inventory, the transmutated icon is not visible even though it has been transmutated , but there is no problem when wearing the item. I added the codes again, but it didn't help, what could it be? no syserr

     

    spacer.png

    You did a mistake. Just compare your codes with official codes.

    • Love 1
  4. return value: number of results (https://www.lua.org/pil/26.1.html)

    static int l_sin (lua_State *L) {
          double d = luaL_checknumber(L, 1);
          lua_pushnumber(L, sin(d));
          return 1;  /* number of results */
        }

    Example from m2:

    Spoiler
    	int forked_sungzi_start_pos( lua_State* L )
    	{
    		LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();
    
    		const ForkedSungziMapInfo& info = CThreeWayWar::instance().GetEventSungZiMapInfo();
    
    		lua_pushnumber( L, info.m_iForkedSungziStartPosition[ch->GetEmpire()-1][0] );
    		lua_pushnumber( L, info.m_iForkedSungziStartPosition[ch->GetEmpire()-1][1] );
    
    		return 2; // 2 result
    	}
    
    	int game_get_event_flag(lua_State* L)
    	{
    		CQuestManager& q = CQuestManager::instance();
    
    		if (lua_isstring(L,1))
    			lua_pushnumber(L, q.GetEventFlag(lua_tostring(L,1)));
    		else
    			lua_pushnumber(L, 0);
    
    		return 1; // 1 result
    	}
      
      	int game_open_safebox(lua_State* /*L*/)
    	{
    		CQuestManager& q = CQuestManager::instance();
    		LPCHARACTER ch = q.GetCurrentCharacterPtr();
    		ch->SetSafeboxOpenPosition();
    		ch->ChatPacket(CHAT_TYPE_COMMAND, "ShowMeSafeboxPassword");
    		return 0; // no result
    	}
      	
      

     

    Other examples:

    Spoiler
    static int c_swap (lua_State *L) {
        //check and fetch the arguments
        double arg1 = luaL_checknumber (L, 1);
        double arg2 = luaL_checknumber (L, 2);
    
        //push the results
        lua_pushnumber(L, arg2);
        lua_pushnumber(L, arg1);
      
        return 2; // number of results
    }

     

     

    • Metin2 Dev 1
    • Good 1
  5. #Version: 2.5

    Without-LZO brach

    For enable LZO:

    Spoiler

    1) Set UseLZO option to true (at config.json)

    2) Enable __CHEST_DROP_USELZO__ macro (at ItemManager.cpp)

    Now you can see chests which contains that item:

    0420270105-005831.jpg0420270105-005857.jpg

     

    #Version: 3.0

    Tooltip fix

    fishing.txt info

    and many important things...

    • Good 1
    • Love 3
×
×
  • 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.