Jump to content

Offline Shop Recommendation


Recommended Posts

Great offline shop -> 

This is the hidden content, please

 

VirusTotal: 

This is the hidden content, please

 

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 by AKUROS
  • Metin2 Dev 14
  • Think 1
  • Lmao 1
  • Good 8
  • Love 2
Link to comment
Share on other sites

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

11Od24.jpg

 

2 hours ago, AKUROS said:

Harika çevrimdışı mağaza -> 

This is the hidden content, please

 

VirüsToplam: 

This is the hidden content, please

 

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 by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 2
Link to comment
Share on other sites

  • 9 months later...
On 19.04.2020 at 15:45, AKUROS said:

Great offline shop -> 

This is the hidden content, please

 

VirusTotal: 

This is the hidden content, please

 

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?

  • Metin2 Dev 9
  • Not Good 1
  • Think 1
  • Good 5
  • Love 1
Link to comment
Share on other sites

  • 3 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



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