Premium WeedHex 635 Posted June 18, 2018 Premium Share Posted June 18, 2018 (edited) Fix Dungeon count monsters: Dungeon.cpp struct FCountMonster { int n; FCountMonster() : n(0) {}; void operator()(LPENTITY ent) { if (ent->IsType(ENTITY_CHARACTER)) { LPCHARACTER ch = (LPCHARACTER) ent; if (ch->IsMonster() || ch->IsStone())//FIX n++; } } }; (Function was keeping also NPC, it could make you ugly problems). Fix Dungeon memory usage: namespace { struct FNotice { FNotice(const char * psz) : m_psz(psz) { } void operator() (LPENTITY ent) { if (ent->IsType(ENTITY_CHARACTER)) { LPCHARACTER ch = (LPCHARACTER) ent; if (ch->IsPC()) //FIX ch->ChatPacket(CHAT_TYPE_NOTICE, "%s", m_psz); } } const char * m_psz; }; } Just 2 errors. I hope that it'll be useful Edited February 13, 2022 by WeedHex 1 26 Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted June 21, 2018 Author Premium Share Posted June 21, 2018 10 React == New Release about Korean Errors! 1 Link to comment Share on other sites More sharing options...
Forum Moderator Raylee 656 Posted June 21, 2018 Forum Moderator Share Posted June 21, 2018 54 minutes ago, WeedHex said: 10 Like == New Release about Korean Errors! NOOO THANKSTRADING MY FRIEND!! Where did we land here? Best regards Raylee 2 Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted June 21, 2018 Author Premium Share Posted June 21, 2018 (edited) On 6/21/2018 at 9:02 PM, Raylee said: NOOO THANKSTRADING MY FRIEND!! Where did we land here? Best regards Raylee what do you mean? Edited July 25, 2022 by WeedHex Link to comment Share on other sites More sharing options...
Developer PACI 920 Posted June 23, 2018 Developer Share Posted June 23, 2018 !ch->IsDead() for FCountMonster is also handy. 1 3 when you return 0 and server doesn't boot: Link to comment Share on other sites More sharing options...
Aerrow 41 Posted April 1, 2019 Share Posted April 1, 2019 On 6/21/2018 at 8:06 PM, WeedHex said: 10 React == New Release about Korean Errors! We reached it! 2 Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted April 1, 2019 Author Premium Share Posted April 1, 2019 When i find time I'll post something else new 2 Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted June 6, 2019 Author Premium Share Posted June 6, 2019 1 Link to comment Share on other sites More sharing options...
Recommended Posts