If you find any bugs let me to know.
Open pvp.h search for : Find(DWORD dwCRC); under add :
PHP Code:
Code:
bool HasDuel(LPCHARACTER pkChar);
PHP Code:
Code:
bool CPVPManager::HasDuel(LPCHARACTER pkChar) { CPVPSetMap::iterator it = m_map_pkPVPSetByID.find(pkChar->GetPlayerID()); if (it != m_map_pkPVPSetByID.end()) { itertype(it->second) it2 = it->second.begin(); while (it2 != it->second.end()) { CPVP * pvp = *it2++; if (pvp->IsFight()) return true; } } return false; }
If some idiots from turkmmo or other boards repost this. Please add credits.
With this you can block red potion in a duel , horse in duel.. .. and soo on..
Original topic here.