Jump to content

Shisui

Former Staff
  • Posts

    977
  • Joined

  • Last visited

  • Days Won

    15
  • Feedback

    0%

Posts posted by Shisui

  1. I want to create a server. I'm bad at source, client and quests. Can somebody help me on this subject. I'm grateful who can help me. In short, I don't know what is the source and game ? I want to unbugged source or game. I'm learning English at university where I study at. I'm developing from day to day. This means that I can translate quests English to Turkish. I want to add lycan character because all of players want to lycan character. I think this is a good character but how can I add in my server that I don't know. In my opinion I want a lot. I'm sorry for that but I need to create a server and I should earn money because I'm studying at private university and my father didn't pay for university's cost. If I won't pay for my university's cost, I will have to leave the university. It is very difficult for me. I love my university and depertmant. Please help me. Thanks for everyhing.

     

    Best regards

    DontCare

    So you want someone to work for you without getting paid?

    If that's not the case then I recommend you this guy ().

    He's hard worker and has what you need.

     

    If you don't have money atm I recommend you to see some tutorials, reading them carefuly and eventualy you'll understand.

    Or if you don't have the patience to see/read tutorials nor paying someone, then you should quit this and focus on studies

    or back at the first option and pay someone to do your job.

  2. Hey guys,

     

    I have an error when I want to compile the [D]ataase Core.

    /usr/bin/ld: skipping incompatible ../../libthecore/lib/libthecore.a when searching for -lthecore
    /usr/bin/ld: skipping incompatible /usr/lib/libthecore.a when searching for -lthecore
    /usr/bin/ld: skipping incompatible /usr/lib/libthecore.a when searching for -lthecore
    /usr/bin/ld: skipping incompatible /usr/lib/libthecore.a when searching for -lthecore
    /usr/bin/ld: cannot find -lthecore
    
    Any one can help me maybe? :)

     From libthecore/From lib copy the From libthecore.a files into /usr/lib

  3.     if (ch->GetGMLevel() == GM_IMPLEMENTOR)
        {
            strlcpy(buf, LC_TEXT("Implementor"), sizeof(buf));
            std::string staff_color = "|cFFFFC700|H|h[";
            staff_color += buf;
            staff_color += "]|cFFA7FFD4|H|h";
            sprintf(chatbuf_global, "%s %s", staff_color.c_str(), chatbuf);
        }
        else if (ch->GetGMLevel() == GM_HIGH_WIZARD)
        {
            strlcpy(buf, LC_TEXT("High Wizard"), sizeof(buf));
            std::string staff_color = "|cFFFFC700|H|h[";
            staff_color += buf;
            staff_color += "]|cFFA7FFD4|H|h";
            sprintf(chatbuf_global, "%s %s", staff_color.c_str(), chatbuf);
        }
     

     

    It could be like this

    That's what I have.

    I want to know more about that switch function.

  4. just wondering you guys ever heard something from switch?

     

    if (ch->GetGMLevel() == GM_IMPLEMENTOR)
        else if (ch->GetGMLevel() == GM_HIGH_WIZARD)
        else if (ch->GetGMLevel() == GM_LOW_WIZARD)
        else if (ch->GetGMLevel() == GM_GOD)
    switch(ch->GetGMLevel() ) {
    case GM_IMPLEMENTOR:
    ......
    }

    So will be like this?

     

    if (ch->GetGMLevel() == GM_IMPLEMENTOR)
        else if (ch->GetGMLevel() == GM_HIGH_WIZARD)
        else if (ch->GetGMLevel() == GM_LOW_WIZARD)
        else if (ch->GetGMLevel() == GM_GOD)
    switch(ch->GetGMLevel() ) {
    case GM_IMPLEMENTOR:
            strlcpy(buf, LC_TEXT("Implementor"), sizeof(buf));
            std::string staff_color = "|cFFFFC700|H|h[";
            staff_color += buf;
            staff_color += "]|cFFA7FFD4|H|h";
            sprintf(chatbuf_global, "%s %s", staff_color.c_str(), chatbuf);
    case GM_HIGH_WIZARD:
            strlcpy(buf, LC_TEXT("High"), sizeof(buf));
            std::string staff_color = "|cFFFFC700|H|h[";
            staff_color += buf;
            staff_color += "]|cFFA7FFD4|H|h";
            sprintf(chatbuf_global, "%s %s", staff_color.c_str(), chatbuf);
    }
  5. Hello, I want to make the tag for GM's when they talk in chat.

    I followed this tutorial

    My input_main.cpp

     

    		if(global_chat)
    		{
    			char buf[256];
    			char chatbuf_global[CHAT_MAX_LEN + 1];
    			const BYTE char_empire = ch->GetEmpire();
    			if(char_empire == 1)
    			{
    				strlcpy(buf, LC_TEXT("Shinsoo"), sizeof(buf));
    				std::string kingdom_red = "|cFFff0000|H|h[";
    				kingdom_red += buf;
    				kingdom_red += "]|cFFA7FFD4|H|h";
    				sprintf(chatbuf_global, "%s %s", kingdom_red.c_str(), chatbuf);
    			} 
    			else if (char_empire == 2)
    			{
    				strlcpy(buf, LC_TEXT("Chunjo"), sizeof(buf));
    				std::string kingdom_yel = "|cFFFFFF00|H|h[";
    				kingdom_yel += buf;
    				kingdom_yel += "]|cFFA7FFD4|H|h";
    				sprintf(chatbuf_global, "%s %s", kingdom_yel.c_str(), chatbuf);
    			} 
    			else if (char_empire == 3) 
    			{
    				strlcpy(buf, LC_TEXT("Jinno"), sizeof(buf));
    				std::string kingdom_blue = "|cFF0080FF|H|h[";
    				kingdom_blue += buf;
    				kingdom_blue += "]|cFFA7FFD4|H|h";
    				sprintf(chatbuf_global, "%s %s", kingdom_blue.c_str(), chatbuf);
    			}
    			else if (ch->GetGMLevel() != GM_PLAYER)
    			{
    				strlcpy(buf, LC_TEXT("Staff"), sizeof(buf));
    				std::string staff_color = "|cFFFFC700|H|h[";
    				staff_color += buf;
    				staff_color += "]|cFFA7FFD4|H|h";
    				sprintf(chatbuf_global, "%s %s", staff_color.c_str(), chatbuf);
    			}

     

    locale_string.txt

    "Staff";
    "Staff";
    When I speak shows the kingdom tag.

    What am I missing?

  6. How can i build it? Can you help me, please?

    I have a error:

    https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

    In PythonLauncher.cpp:

     

    search:

    PyModule_AddIntConstant(builtins, "TRUE", 1);

     

    and add:

     

    PyModule_AddIntConstant(builtins, "TRUE", 1);

    PyModule_AddIntConstant(builtins, "FALSE", 0);

    PyModule_AddIntConstant(builtins, "True", 1);

    PyModule_AddIntConstant(builtins, "False", 0);

     

    Now TRUE and True works

    • Love 1
  7.  

     

    packet.h

    SHOP_HOST_ITEM_MAX_NUM = 40,
    to
    SHOP_HOST_ITEM_MAX_NUM = 80,

    src/Server/common/length.h

    SHOP_HOST_ITEM_MAX_NUM = 40,
    SHOP_PRICELIST_MAX_NUM = 40,
    to 
    SHOP_HOST_ITEM_MAX_NUM = 80,
    SHOP_PRICELIST_MAX_NUM = 80,

    src/Server/game/shop.cpp

    m_pGrid = M2_NEW CGrid(5, 9);
    
    to
    m_pGrid = M2_NEW CGrid(10, 9);

    shopdialog.py

    import uiScriptLocale

     

    window = {

    "name" : "ShopDialog",

     

    "x" : SCREEN_WIDTH - 400,

    "y" : 10,

     

    "style" : ("movable", "float",),

     

    "width" : 184 + 160,

    "height" : 328,

     

    "children" :

    (

    {

    "name" : "board",

    "type" : "board",

    "style" : ("attach",),

     

    "x" : 0,

    "y" : 0,

     

    "width" : 184 + 160,

    "height" : 328,

     

    "children" :

    (

    ## Title

    {

    "name" : "TitleBar",

    "type" : "titlebar",

    "style" : ("attach",),

     

    "x" : 8,

    "y" : 8,

     

    "width" : 169 + 160,

    "color" : "gray",

     

    "children" :

    (

    { "name":"TitleName", "type":"text", "x":84+80, "y":4, "text":uiScriptLocale.SHOP_TITLE, "text_horizontal_align":"center" },

    ),

    },

     

    ## Item Slot

    {

    "name" : "ItemSlot",

    "type" : "grid_table",

     

    "x" : 12,

    "y" : 34,

     

    "start_index" : 0,

    "x_count" : 10,

    "y_count" : 8,

    "x_step" : 32,

    "y_step" : 32,

     

    "image" : "d:/ymir work/ui/public/Slot_Base.sub",

    },

     

    ## Buy

    {

    "name" : "BuyButton",

    "type" : "toggle_button",

     

    "x" : 21,

    "y" : 295,

     

    "width" : 61,

    "height" : 21,

     

    "text" : uiScriptLocale.SHOP_BUY,

     

    "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",

    "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",

    "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",

    },

     

    ## Sell

    {

    "name" : "SellButton",

    "type" : "toggle_button",

     

    "x" : 104 + 160,

    "y" : 295,

     

    "width" : 61,

    "height" : 21,

     

    "text" : uiScriptLocale.SHOP_SELL,

     

    "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",

    "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",

    "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",

    },

     

    ## Close

    {

    "name" : "CloseButton",

    "type" : "button",

     

    "x" : 0,

    "y" : 295,

     

    "horizontal_align" : "center",

     

    "text" : uiScriptLocale.PRIVATE_SHOP_CLOSE_BUTTON,

     

    "default_image" : "d:/ymir work/ui/public/large_button_01.sub",

    "over_image" : "d:/ymir work/ui/public/large_button_02.sub",

    "down_image" : "d:/ymir work/ui/public/large_button_03.sub",

    },

     

    ),

    },

    ),

    }

     

    by @Endymion & .py by @Theodor

     

    I swear that doenst work so you get bugs and cant buy any items from slots 46+ ;)

     

    I've done it by myself...

  8. packet.h

    SHOP_HOST_ITEM_MAX_NUM = 40,
    to
    SHOP_HOST_ITEM_MAX_NUM = 80,
    src/Server/common/length.h

    SHOP_HOST_ITEM_MAX_NUM = 40,
    SHOP_PRICELIST_MAX_NUM = 40,
    to 
    SHOP_HOST_ITEM_MAX_NUM = 80,
    SHOP_PRICELIST_MAX_NUM = 80,
    src/Server/game/shop.cpp

    m_pGrid = M2_NEW CGrid(5, 9);
    
    to
    m_pGrid = M2_NEW CGrid(10, 9);
    shopdialog.py

    import uiScriptLocale

     

    window = {

    "name" : "ShopDialog",

     

    "x" : SCREEN_WIDTH - 400,

    "y" : 10,

     

    "style" : ("movable", "float",),

     

    "width" : 184 + 160,

    "height" : 328,

     

    "children" :

    (

    {

    "name" : "board",

    "type" : "board",

    "style" : ("attach",),

     

    "x" : 0,

    "y" : 0,

     

    "width" : 184 + 160,

    "height" : 328,

     

    "children" :

    (

    ## Title

    {

    "name" : "TitleBar",

    "type" : "titlebar",

    "style" : ("attach",),

     

    "x" : 8,

    "y" : 8,

     

    "width" : 169 + 160,

    "color" : "gray",

     

    "children" :

    (

    { "name":"TitleName", "type":"text", "x":84+80, "y":4, "text":uiScriptLocale.SHOP_TITLE, "text_horizontal_align":"center" },

    ),

    },

     

    ## Item Slot

    {

    "name" : "ItemSlot",

    "type" : "grid_table",

     

    "x" : 12,

    "y" : 34,

     

    "start_index" : 0,

    "x_count" : 10,

    "y_count" : 8,

    "x_step" : 32,

    "y_step" : 32,

     

    "image" : "d:/ymir work/ui/public/Slot_Base.sub",

    },

     

    ## Buy

    {

    "name" : "BuyButton",

    "type" : "toggle_button",

     

    "x" : 21,

    "y" : 295,

     

    "width" : 61,

    "height" : 21,

     

    "text" : uiScriptLocale.SHOP_BUY,

     

    "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",

    "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",

    "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",

    },

     

    ## Sell

    {

    "name" : "SellButton",

    "type" : "toggle_button",

     

    "x" : 104 + 160,

    "y" : 295,

     

    "width" : 61,

    "height" : 21,

     

    "text" : uiScriptLocale.SHOP_SELL,

     

    "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",

    "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",

    "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",

    },

     

    ## Close

    {

    "name" : "CloseButton",

    "type" : "button",

     

    "x" : 0,

    "y" : 295,

     

    "horizontal_align" : "center",

     

    "text" : uiScriptLocale.PRIVATE_SHOP_CLOSE_BUTTON,

     

    "default_image" : "d:/ymir work/ui/public/large_button_01.sub",

    "over_image" : "d:/ymir work/ui/public/large_button_02.sub",

    "down_image" : "d:/ymir work/ui/public/large_button_03.sub",

    },

     

    ),

    },

    ),

    }

     

    by @Endymion & .py by @Theodor

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