Jump to content

Megvagyokkoszi

Inactive Member
  • Posts

    8
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Megvagyokkoszi

  1. Hello.

    My problem that i want,  for example 19 sword upgrade to 290 id sword.

    So, default item_proto

     

    19	µµ+9	ITEM_WEAPON	WEAPON_SWORD	2	ANTI_MUDANG | ANTI_WOLFMAN	ITEM_TUNABLE	WEAR_WEAPON	NONE	100	750	0	0	15	LEVEL	0	LIMIT_NONE	0	APPLY_ATT_SPEED	22	APPLY_NONE	0	APPLY_NONE	0	APPLY_NONE	0	0	15	19	13	15	63	100	1	0

     

    Then i changed to

     

    19	µµ+9	ITEM_WEAPON	WEAPON_SWORD	2	ANTI_MUDANG | ANTI_WOLFMAN	ITEM_TUNABLE	WEAR_WEAPON	NONE	100	750	290	199	15	LEVEL	0	LIMIT_NONE	0	APPLY_ATT_SPEED	22	APPLY_NONE	0	APPLY_NONE	0	APPLY_NONE	0	0	15	19	13	15	63	100	1	0

     

    But when i want to upgrade, on NPCs nothing happens, and when i want with Magic Iron Ore its red.

    Someone can explain what's wrong?

    if i change the 11699 armor refined ID and refine set its works on it. 

    I tried to find answer  but i found nothing. 

  2. What?Why should i buy? I said i don't want open a metin2 server, its just , for me a hobby when i boring. So please don't try to convict me to buy anything.  Becuz i don't want buy something, what not gives back money, i don't want open a metin2 server.... I just want to learn something....

  3. Hello. I want to put the offline shop into my server. 

    That's my leisure activities.

     

    but i now stucked  here.

    I should put 

    #ifdef ENABLE_PREMIUM_PRIVATE_SHOP
    		if(pi->bIsPrivateShop)

    in the code

    But its starting with 

    		if (pi->ip[0] == 0)

     

    how should put the codes ?

    Is it right, if i would like that way?

     

    if (pi->ip[0] == 0)
    #ifdef ENABLE_PREMIUM_PRIVATE_SHOP
            else if(pi->bIsPrivateShop) 

    i didn't compile, and save 'till i don't know its works or not .

    Sorry, i forget the whole lines

     

    Original  code

    		if (pi->ip[0] == 0)
    			pkPeer->EncodeHeader(HEADER_DG_SAFEBOX_LOAD, dwHandle, sizeof(TSafeboxTable) + sizeof(TPlayerItem) * s_items.size());
    		else
    			pkPeer->EncodeHeader(HEADER_DG_MALL_LOAD, dwHandle, sizeof(TSafeboxTable) + sizeof(TPlayerItem) * s_items.size());
    
    		pkPeer->Encode(pi->pSafebox, sizeof(TSafeboxTable));
    
    		if (!s_items.empty())
    			pkPeer->Encode(&s_items[0], sizeof(TPlayerItem) * s_items.size());
    
    		delete pi;

     

    What i have to change:

     

    #ifdef ENABLE_PREMIUM_PRIVATE_SHOP
    		if(pi->bIsPrivateShop)
    			pkPeer->EncodeHeader(HEADER_DG_PREMIUM_PRIVATE_SHOP_LOAD, dwHandle, sizeof(TSafeboxTable) + sizeof(TPlayerItem) * s_items.size());
    		else
    			pkPeer->EncodeHeader(pi->ip[0] == 0 ? HEADER_DG_SAFEBOX_LOAD : HEADER_DG_MALL_LOAD, dwHandle, sizeof(TSafeboxTable) + sizeof(TPlayerItem) * s_items.size());			
    #else
    		pkPeer->EncodeHeader(pi->ip[0] == 0 ? HEADER_DG_SAFEBOX_LOAD : HEADER_DG_MALL_LOAD, dwHandle, sizeof(TSafeboxTable) + sizeof(TPlayerItem) * s_items.size());
    #endif

     

     

    Ofc, i coukd change to my files, how its uses the codes, but idk how to define double statments

  4. 15 hours ago, V0lvox said:
    constexpr auto DiscordClientID = "934963434833997875"; 

    maximum int = +2147483647

    I tried use long, but i still got  that(i checked, the maximum int, and i tried with long :

     

    Error	1	error C2144: syntax error : '__int64' should be preceded by ';'	1	39	UserInterface
    

    But, i got new errors too. 

     

    Error	2	error C2440: 'initializing' : cannot convert from 'const char [6]' to '__int64'		1	39	UserInterface
    
    and
    
    Error	3	error C2664: 'void Discord_Initialize(const char *,DiscordEventHandlers *,int,const char *)' : cannot convert argument 1 from '__int64' to 'const char *'		1	45	UserInterface

     

    14 hours ago, Denizeri24 said:

    int constexpr auto

     

    int constexpr auto

     

     

    int

     

    auto

     

    int auto

     auto cannot be combined with any other type-specifier 
     

  5. Hello.

     

    I have a little problem, but i don't understand what should i do here.

    So i got  these errors in visual studio:

    "Error    1    error C2144: syntax error : 'auto' should be preceded by ';'    D:\VSi\Binary\Source\UserInterface\PythonNetworkStreamPhaseGame.cpp    39    1    UserInterface"

    The code :

    int constexpr auto DiscordClientID = "934963434833997875"; // Change

     

    I had before more error, when i used  static before int, like:

    static constexpr auto DiscordClientID = "934963434833997875"; // Change

    in this situtation i got this message:

    1>..\..\Source\UserInterface\PythonNetworkStreamPhaseGame.cpp(39): error C2144: syntax error : 'auto' should be preceded by ';'
    1>..\..\Source\UserInterface\PythonNetworkStreamPhaseGame.cpp(39): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

    So. I thought i change static to int, but i still get message to auto part. So i think the int instead of static will work, but i'm not sure about it, but i don't get any error message.

     

     Please, someone help me and tell me what's wrong, because i don't understand, it seems for me good.

     

    • Metin2 Dev 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.