vedat1089 3 Posted April 19, 2020 Share Posted April 19, 2020 Hello, is there any offline shop you can recommend? Link to comment Share on other sites More sharing options...
AKUROS 27 Posted April 19, 2020 Share Posted April 19, 2020 (edited) Great offline shop -> This is the hidden content, please Sign In or Sign Up VirusTotal: This is the hidden content, please Sign In or Sign Up Fix 1: https://paste2.org/Bv0APE95 Fix 2: https://paste2.org/ajLImBNf Fix 3: #include "../libgame/include/grid.h" // Aratılır. #include "../../libgame/include/grid.h" //Şeklinde değiştirilir. #ifdef SHOP_ONLY_ALLOWED_INDEX bool block = (shop_max > 0 ? (get_offline_shops_count() >= shop_max): false); #else bool block = (get_offline_shops_count() >= shop_max); #endif if (block) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("SHOP_MAP_MAX")); return; } } // Aratılır. {char.cpp} bool block = false; #ifdef SHOP_ONLY_ALLOWED_INDEX if (shop_max > 0) { #else if (shop_max == 0) block = true; else { #endif std::auto_ptr <SQLMsg> pkMsg(DBManager::instance().DirectQuery("SELECT map_index from player_shop WHERE channel=%d and status='OK' and map_index=%d", g_bChannel, GetMapIndex())); SQLResult* pRes = pkMsg->Get(); if (pRes->uiNumRows >= shop_max) block = true; } if (block) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("SHOP_MAP_MAX")); return; } } // Şeklinde değiştirilir. I advise against other systems. They will ask you for money for this shop specially only aesthetically by adding some functions. I use this system in my server since 2018. Edited April 19, 2020 by AKUROS 14 1 1 8 3 Link to comment Share on other sites More sharing options...
Itachi 44 Posted April 19, 2020 Share Posted April 19, 2020 ikarus offlineshop. very good and clean code. highly recommended. 1 Link to comment Share on other sites More sharing options...
vedat1089 3 Posted April 19, 2020 Author Share Posted April 19, 2020 (edited) 59 minutes ago, Itachi said: ikarus offlineshop. çok iyi ve temiz kod. önemle tavsiye edilir. Thanks for your suggestion. I'm looking for a more nostalgic offline shop system I'm looking for something more like this 2 hours ago, AKUROS said: Harika çevrimdışı mağaza -> This is the hidden content, please Sign In or Sign Up VirüsToplam: This is the hidden content, please Sign In or Sign Up Düzeltme 1: https://paste2.org/Bv0APE95 Düzeltme 2: https://paste2.org/ajLImBNf Düzeltme 3: #include "../libgame/include/grid.h" // Aratılır. #include "../../libgame/include/grid.h" //Şeklinde değiştirilir. #ifdef SHOP_ONLY_ALLOWED_INDEX bool block = (shop_max > 0 ? (get_offline_shops_count() >= shop_max): false); #else bool block = (get_offline_shops_count() >= shop_max); #endif if (block) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("SHOP_MAP_MAX")); return; } } // Aratılır. {char.cpp} bool block = false; #ifdef SHOP_ONLY_ALLOWED_INDEX if (shop_max > 0) { #else if (shop_max == 0) block = true; else { #endif std::auto_ptr <SQLMsg> pkMsg(DBManager::instance().DirectQuery("SELECT map_index from player_shop WHERE channel=%d and status='OK' and map_index=%d", g_bChannel, GetMapIndex())); SQLResult* pRes = pkMsg->Get(); if (pRes->uiNumRows >= shop_max) block = true; } if (block) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("SHOP_MAP_MAX")); return; } } // Şeklinde değiştirilir. Diğer sistemlere karşı tavsiye ediyorum. Bu mağaza için sizden özel olarak sadece estetik olarak bazı fonksiyonlar ekleyerek para isteyecekler. Bu sistemi 2018'den beri sunucumda kullanıyorum. thanks i will look Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 2 Link to comment Share on other sites More sharing options...
Suzar 21 Posted February 5, 2021 Share Posted February 5, 2021 On 19.04.2020 at 15:45, AKUROS said: Great offline shop -> This is the hidden content, please Sign In or Sign Up VirusTotal: This is the hidden content, please Sign In or Sign Up Fix 1: https://paste2.org/Bv0APE95 Fix 2: https://paste2.org/ajLImBNf Fix 3: #include "../libgame/include/grid.h" // Aratılır. #include "../../libgame/include/grid.h" //Şeklinde değiştirilir. #ifdef SHOP_ONLY_ALLOWED_INDEX bool block = (shop_max > 0 ? (get_offline_shops_count() >= shop_max): false); #else bool block = (get_offline_shops_count() >= shop_max); #endif if (block) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("SHOP_MAP_MAX")); return; } } // Aratılır. {char.cpp} bool block = false; #ifdef SHOP_ONLY_ALLOWED_INDEX if (shop_max > 0) { #else if (shop_max == 0) block = true; else { #endif std::auto_ptr <SQLMsg> pkMsg(DBManager::instance().DirectQuery("SELECT map_index from player_shop WHERE channel=%d and status='OK' and map_index=%d", g_bChannel, GetMapIndex())); SQLResult* pRes = pkMsg->Get(); if (pRes->uiNumRows >= shop_max) block = true; } if (block) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("SHOP_MAP_MAX")); return; } } // Şeklinde değiştirilir. Odradzam inne systemy. Poproszą cię o pieniądze za ten sklep specjalnie tylko estetycznie, dodając kilka funkcji. Używam tego systemu na swoim serwerze od 2018 roku. These are all fixes, has anything changed by then? PS: Can you have a reupload? 9 1 1 5 1 Link to comment Share on other sites More sharing options...
naoestu 0 Posted May 6, 2021 Share Posted May 6, 2021 Dead link. 1 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