Jump to content

DarkAng3l

Inactive Member
  • Posts

    62
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by DarkAng3l

  1. 16 minutes ago, alondark said:

    Thirdly when riding an animal Only in the lycan make bug like that 
    https://www.youtube.com/watch?v=H4IGOhkWhy0

     

    Open game/src/input_main.cpp 

     

    Search  : 

     

    if (((false == ch->IsRiding() && fDist > 25) || fDist > 40) && OXEVENT_MAP_INDEX != ch->GetMapIndex())

     

    Replace:

     

    if (((false == ch->IsRiding() && fDist > 750) || fDist > 999) && OXEVENT_MAP_INDEX != ch->GetMapIndex())

     

    Mount bug fixed.

     

    Really? You're funny.

  2. Just create new function like this. The function regein_in_map spawn mobs once.

    Spoiler

    questlua_global.cpp

    add below _regen_in_map function

    int _regen_in_map_spawn(lua_State * L)
        {
            int iMapIndex = static_cast<int>(lua_tonumber(L, 1));
            std::string szFilename(lua_tostring(L, 2));

            LPSECTREE_MAP pkMap = SECTREE_MANAGER::instance().GetMap(iMapIndex);

            if (pkMap != NULL)
            {
                regen_load(szFilename.c_str(), iMapIndex, pkMap->m_setting.iBaseX, pkMap->m_setting.iBaseY);
            }

            return 0;
        }

    add bellow {    "regen_in_map",                    _regen_in_map                    },

    {    "regen_in_map_spawn",            _regen_in_map_spawn                },

     

  3. You must add path to msm file. This pet has other path (npc_pet). Just replace this statement in RaceManager.cpp in gamelib. Like on Official.

    Spoiler

    function __GetRaceResourcePathes

    else if (__IsNPCRace(race))
        {
            if (race >= 34028 && race <= 34057)
            {
                vec_stPathes.push_back("d:/ymir work/npc_pet/");
                vec_stPathes.push_back("d:/ymir work/npc2/");
                vec_stPathes.push_back("d:/ymir work/npc/");
                vec_stPathes.push_back("d:/ymir work/monster/");
                vec_stPathes.push_back("d:/ymir work/monster2/");
                vec_stPathes.push_back("d:/ymir work/guild/");
            }
            else if (race >= 30000)
            {
                vec_stPathes.push_back("d:/ymir work/npc2/");
                vec_stPathes.push_back("d:/ymir work/npc/");
                vec_stPathes.push_back("d:/ymir work/monster/");
                vec_stPathes.push_back("d:/ymir work/monster2/");
                vec_stPathes.push_back("d:/ymir work/guild/");
            }
            else if (race >= 20233 && race < 20300)
            {
                vec_stPathes.push_back("d:/ymir work/npc_mount/");
                vec_stPathes.push_back("d:/ymir work/npc/");
                vec_stPathes.push_back("d:/ymir work/npc2/");
                vec_stPathes.push_back("d:/ymir work/monster/");
                vec_stPathes.push_back("d:/ymir work/monster2/");
                vec_stPathes.push_back("d:/ymir work/guild/");
            }
            else
            {
                vec_stPathes.push_back("d:/ymir work/npc/");
                vec_stPathes.push_back("d:/ymir work/npc2/");
                vec_stPathes.push_back("d:/ymir work/npc_mount/");
                vec_stPathes.push_back("d:/ymir work/monster/");
                vec_stPathes.push_back("d:/ymir work/monster2/");
                vec_stPathes.push_back("d:/ymir work/guild/");
            }
        }

     

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