bumxd 16 Posted September 12, 2016 Share Posted September 12, 2016 hi,can anybody say how can do what command /purge all clean all mobs\npc on map.. now it command only clean mobs\npc are near me,how do radius clean more(on all map)? Link to comment Share on other sites More sharing options...
Premium tierrilopes 452 Posted September 12, 2016 Premium Share Posted September 12, 2016 Hi. If you want a different function, duplicate purge (cmd.cpp cmd_gm.cpp) and change its names. After, at cmd_gm.cpp search for (the name will be your duplicated one): struct FuncPurge And edit here the max range: if (!m_bAll && iDist >= 1000) return; Or you can just change the range there for the current purge function. Link to comment Share on other sites More sharing options...
bumxd 16 Posted September 13, 2016 Author Share Posted September 13, 2016 22 hours ago, tierrilopes said: Hi. If you want a different function, duplicate purge (cmd.cpp cmd_gm.cpp) and change its names. After, at cmd_gm.cpp search for (the name will be your duplicated one): struct FuncPurge And edit here the max range: if (!m_bAll && iDist >= 1000) return; Or you can just change the range there for the current purge function. For how much need change 1000? If I need purge mobs on big map? Link to comment Share on other sites More sharing options...
bumxd 16 Posted September 16, 2016 Author Share Posted September 16, 2016 how can delete limit distance command /purge all? what i can with it command clean all mobs from big map.. Link to comment Share on other sites More sharing options...
Premium Istny 79 Posted September 16, 2016 Premium Share Posted September 16, 2016 SECTREE_MANAGER::instance().PurgeMonstersInMap(ch->GetMapIndex()); Link to comment Share on other sites More sharing options...
bumxd 16 Posted September 17, 2016 Author Share Posted September 17, 2016 23 hours ago, Istny said: SECTREE_MANAGER::instance().PurgeMonstersInMap(ch->GetMapIndex()); you mean so? struct FuncPurge { LPCHARACTER m_pkGM; bool m_bAll; FuncPurge(LPCHARACTER ch) : m_pkGM(ch), m_bAll(false) { } void operator () (LPENTITY ent) { if (!ent->IsType(ENTITY_CHARACTER)) return; LPCHARACTER pkChr = (LPCHARACTER) ent; SECTREE_MANAGER::instance().PurgeMonstersInMap(ch->GetMapIndex()); return; sys_log(0, "PURGE: %s %d", pkChr->GetName(), iDist); if (pkChr->IsNPC() && !pkChr->IsPet() && pkChr->GetRider() == NULL) { M2_DESTROY_CHARACTER(pkChr); } } }; 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