Jump to content

TheR3LAX13

Inactive Member
  • Posts

    12
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by TheR3LAX13

  1. On 5/22/2016 at 2:57 PM, Wahmon said:

    Hello everyone, today I`m going to show to how to make a VIP system from SRC.

    You need Launcher SRC, Server SRC.

    So, let`s begin.

    1.Launcher:

    Go to UserInterface/InstanceBase.h and search 

      Reveal hidden contents

    AFFECT_CHINA_FIREWORK,            // 38

    After that add:

      Reveal hidden contents

    AFFECT_VIP = 39,

    Search

      Reveal hidden contents

    BOOL                    IsGameMaster();

    After that add: 

      Reveal hidden contents

    BOOL                    IsVIP();

    1.2 Go to InstanceBase.cpp and search

      Reveal hidden contents

    BOOL CInstanceBase::IsGameMaster()
    {
        if (m_kAffectFlagContainer.IsSet(AFFECT_YMIR))
            return true;
        return false;
    }

    After that add: 

      Reveal hidden contents

    BOOL CInstanceBase::IsVIP()
    {
        if (m_kAffectFlagContainer.IsSet(AFFECT_VIP))
            return true;
        return false;
    }

    In same file search:

      Reveal hidden contents

    if (IsGameMaster())
            return TRUE;

    And after that add: 

      Reveal hidden contents

    if (IsVIP())
            return TRUE;

    //if you got bugs don`t add this line.

    Search: 

      Reveal hidden contents

    if (rkInstDst.IsGameMaster())
            return TRUE;

    After that add:

      Reveal hidden contents

    if (rkInstDst.IsVIP())
            return TRUE;

    1.3: In file InstanceBaseEffect.cpp search

      Reveal hidden contents

    if (pkInstMain->IsGameMaster())
        {
        }

    After that add:

      Reveal hidden contents

    else if (pkInstMain->IsVIP())
        {
        }

    Search: 

      Reveal hidden contents

    if (IsGameMaster())
            return;

    After that add:

      Reveal hidden contents

    if (IsVIP())
            return;

    Search:

      Reveal hidden contents

    case AFFECT_YMIR:
                if (IsAffect(AFFECT_INVISIBILITY))
                    return;
                break;

    After that add:

      Reveal hidden contents

    case AFFECT_VIP:
                if (IsAffect(AFFECT_INVISIBILITY))
                    return;
                break;
    /*

    1.4 In fine PythonCharacterModule.cpp search:

      Reveal hidden contents

    PyObject * chrIsGameMaster(PyObject* poSelf, PyObject* poArgs)
    {
        int iVirtualID;
        if (!PyTuple_GetInteger(poArgs, 0, &iVirtualID))
            return Py_BuildException();

        CInstanceBase * pInstance = CPythonCharacterManager::Instance().GetInstancePtr(iVirtualID);
        if (!pInstance)
            return Py_BuildValue("i", 0);

        return Py_BuildValue("i", pInstance->IsGameMaster());
    }

    And after that add: 

      Reveal hidden contents

    PyObject * chrIsVIP(PyObject* poSelf, PyObject* poArgs)
    {
        int iVirtualID;
        if (!PyTuple_GetInteger(poArgs, 0, &iVirtualID))
            return Py_BuildException();

        CInstanceBase * pInstance = CPythonCharacterManager::Instance().GetInstancePtr(iVirtualID);
        if (!pInstance)
            return Py_BuildValue("i", 0);

        return Py_BuildValue("i", pInstance->IsVIP());
    }

    Search: 

      Reveal hidden contents

    { "IsGameMaster",                chrIsGameMaster,                    METH_VARARGS },

    And after that add:

      Reveal hidden contents

    { "IsVIP",                        chrIsVIP,                            METH_VARARGS },

    Launcher part done.

    2.SERVER

    2.1 In file common/length.h search:

      Reveal hidden contents

    GM_PLAYER,

    And after that add: 

      Reveal hidden contents

    GM_VIP,

    2.2 In file game/src/affect.h search:

      Reveal hidden contents

    AFF_CHINA_FIREWORK,

    And after add: 

      Reveal hidden contents

    AFF_VIP = 39,

    2.3 In file game/src/char.cpp search: 

      Reveal hidden contents

    if (GetGMLevel() > GM_LOW_WIZARD)
            {
                m_afAffectFlag.Set(AFF_YMIR);
                m_bPKMode = PK_MODE_PROTECT;
            }

    And after add: 

      Reveal hidden contents

    else if (GetGMLevel() == GM_VIP)
            {
                m_afAffectFlag.Set(AFF_VIP);
                //m_bPKMode = PK_MODE_PROTECT; //delete '//' if you want GM protection for VIP.
            

    }

    Search 

      Reveal hidden contents

    if (GetLevel() < PK_PROTECT_LEVEL)
            m_bPKMode = PK_MODE_PROTECT;

    And after that add: 

      Reveal hidden contents

    else if (GetGMLevel() == GM_VIP)
        {
            m_afAffectFlag.Set(AFF_VIP);
            //m_bPKMode = PK_MODE_PROTECT; //delete '//' if you want GM protection for VIP.
        }

    2.4 In file game/src/config.cpp search

      Reveal hidden contents

    if (!strcasecmp(levelname, "LOW_WIZARD"))
                    level = GM_LOW_WIZARD;

    And mofify like that:

      Reveal hidden contents

    if (!strcasecmp(levelname, "VIP"))
                    level = GM_VIP;
                
                else if (!strcasecmp(levelname, "LOW_WIZARD"))
                    level = GM_LOW_WIZARD;

    2.5 In file db/src/ClientManager.cpp search:

      Reveal hidden contents

    else if (!stAuth.compare("WIZARD"))
                Info.m_Authority = GM_WIZARD;

    And after that add:

      Reveal hidden contents

    else if (!stAuth.compare("VIP"))
                Info.m_Authority = GM_VIP;

    3.MYSQL

    3.1 Go to your database->COMMON->RIGHT CLICK ON gmlist->DESIGN TABLE->SELECT mAuthority from Fields TAB->VALUES->ADD VIP AFTER PLAYER.

    4.CLIENT

    4.1. In file ROOT/PlayerSettingModule.py search 

      Reveal hidden contents

    chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT+37, "", "d:/ymir work/effect/etc/guild_war_flag/flag_yellow.mse")

    And after that add:

      Reveal hidden contents

    chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT+38, "Bip01", "locale/en/effect/vip.mse")

    Edit locale/en with your locale : ex locale/ro || locale/de

    4.2 In locale go to effect folder(WHERE YOU HAVE GM.MSE) and add THIS FILES:

    This is the hidden content, please

    In game will be like that:

    kTKlbja.jpg
       Post any problems/bugs and we will solve them tohether ;)

    Sorry for my bad english..:(

    whisper font color and icon have problem how do i fix it?

    vip speaks as gm how do i fix it ?

     

    Adsiz.png

  2. 6 minutes ago, VegaS™ said:

    I suppose you use the system which i made 4 years ago (2015-2016), i published it, so it's fine.
    The problem is in root/introLoading.py.
    You added the self.__RegisterTitlePrestigeName() inside of the function def DEBUG_LoadData(self, playerX, playerY), need to be in def LoadData(self, playerX, playerY) too.

     

    Thank you so much ❤️

    M1YY1k.png

  3. Hi,

    I added vegas title system but I have a problem

    system running smoothly but single troubles title does not appear on top of the character

    No Syser

    No Warning

    No Error

    How can I solve this problem ?

    I've been dealing for 2 days, but I couldn't

    I'm sorry for my bad english?

     

    6D74M7.png

     

     

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