Megvagyokkoszi 1 Posted April 25, 2023 Share Posted April 25, 2023 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 Link to comment Share on other sites More sharing options...
Active Member Draveniou1 715 Posted April 25, 2023 Active Member Share Posted April 25, 2023 offshop paid or unpaid ? 1 Link to comment Share on other sites More sharing options...
Megvagyokkoszi 1 Posted April 26, 2023 Author Share Posted April 26, 2023 (edited) Its the free version. I don't want to pay, becuz i don't planed to open a server Edited April 26, 2023 by Megvagyokkoszi Link to comment Share on other sites More sharing options...
Active Member Draveniou1 715 Posted April 26, 2023 Active Member Share Posted April 26, 2023 35 minutes ago, Megvagyokkoszi said: Its the free version. I don't want to pay, becuz i don't planed to open a server Free = Better demon you go buy for better and greater security if buy offlineshop not search people from turkey-romania-germany = not good method you buy from people arabic Link to comment Share on other sites More sharing options...
Megvagyokkoszi 1 Posted April 26, 2023 Author Share Posted April 26, 2023 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.... Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now