Türkiye'de ilk Mobil & PC Aynı Anda Metin2 Oyna. Triarchonline kalıcı ve uzun ömürlü yapısı ile 24 Temmuz'da açılıyor. | 1-99 Mobil Metin2 Triarch HEMEN TIKLA!
@gpackg Yes i too.
Son düzenleme:
Türkiye'de ilk Mobil & PC Aynı Anda Metin2 Oyna. Triarchonline kalıcı ve uzun ömürlü yapısı ile 24 Temmuz'da açılıyor. | 1-99 Mobil Metin2 Triarch HEMEN TIKLA!
EDIT: It seems that i can perfectly attack in other places except the pyungmoo city. Please help someone!
upload your battle.cpp & input_main.cpp and let us have a look at them
also are you using one of the public files? do you have bot control system? maybe bad flagging ending up to misses? is it always happening?
#ifdef NEW_ICEDAMAGE_SYSTEM
if (!battle_is_icedamage(ch, victim))
return false;
#endif
but If you want to apply this ice damage only to MOBS(npcs) change your statement in battle_is_attackable to if(victim->IsNPC()) //do stuff #ifdef NEW_ICEDAMAGE_SYSTEM
bool battle_is_icedamage(LPCHARACTER pAttacker, LPCHARACTER pVictim)
{
if (pAttacker && pAttacker->IsPC())
{
DWORD race = pAttacker->GetRaceNum();
const DWORD tmp_dwNDRFlag = pVictim->GetNoDamageRaceFlag();
if (tmp_dwNDRFlag &&
(race < MAIN_RACE_MAX_NUM) &&
(IS_SET(tmp_dwNDRFlag, 1<<race))
)
{
return false;
}
const std::set<DWORD> & tmp_setNDAFlag = pVictim->GetNoDamageAffectFlag();
if (tmp_setNDAFlag.size())
{
for (std::set<DWORD>::iterator it = tmp_setNDAFlag.begin(); it != tmp_setNDAFlag.end(); ++it)
{
if (!pAttacker->IsAffectFlag(*it))
{
return false;
}
}
}
}
return true;
}
#endif
if (!battle_is_icedamage(ch, victim) && victim->IsNPC())
sys_log(0, "this is not an ice damage! and this function only work for mobs")
return false;
#endif
