Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

Offline Shop Recommendation


vedat1089

Question

3 answers to this question

Recommended Posts

  • 0

Great offline shop -> https://mega.nz/#!n34FlSrD!CDhxcfP1U4CLXuV3aGp2iRW6pkBiFr4KxGxsjU4j_2M

 

VirusTotal: https://www.virustotal.com/gui/file/94436706b8e5ceaf9be61a7dfd84c52ed7aae84adb4ad760ac21f9f87228e47c/detection

 

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 (see edit history)
Link to post
  • 0
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 ->  https://mega.nz/#!n34FlSrD!CDhxcfP1U4CLXuV3aGp2iRW6pkBiFr4KxGxsjU4j_2M

 

VirüsToplam:  https://www.virustotal.com/gui/file/94436706b8e5ceaf9be61a7dfd84c52ed7aae84adb4ad760ac21f9f87228e47c/detection

 

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

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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