felipeard1 167 Posted December 20, 2015 Share Posted December 20, 2015 Hi I have a problem with the function regen_in_map the problem is to kill the mob does not regenerate as does the role of regen in dungeon if anyone can help me I appreciate it Link to comment Share on other sites More sharing options...
gancy94 0 Posted December 20, 2015 Share Posted December 20, 2015 you have to use d.set_regen_file for regenerate Link to comment Share on other sites More sharing options...
felipeard1 167 Posted December 20, 2015 Author Share Posted December 20, 2015 but I do not want it to be dungeon, so use the function regen_in_map Link to comment Share on other sites More sharing options...
gancy94 0 Posted December 20, 2015 Share Posted December 20, 2015 you can it create this function with the game source or you can simply use a timer. Link to comment Share on other sites More sharing options...
DarkAng3l 25 Posted December 21, 2015 Share Posted December 21, 2015 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 }, 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