Cod: Selectaţi tot
if (fDist >= 4000.0f)
if (fDist >= 4000.0f)Cod: Selectaţi tot
if (fDist >= 100.0f)
{
int boss_no_follow[] = {3391, 3591, 3791, 3091, 3191, 3891, 3691, 1191, 1901, 5163, 1304};
for (int i = 0; i < _countof(boss_no_follow); i++)
{
if (m_pkMobData->m_table.dwVnum == boss_no_follow[i])
{
SetVictim(NULL);
return;
}
}
}
if (fDist >= 100.0f)
{
int boss_no_follow[] = {3391, 3591, 3791, 3091, 3191, 3891, 3691, 1191, 1901, 5163, 1304};
for (int i = 0; i < _countof(boss_no_follow); i++)
{
if (m_pkMobData->m_table.dwVnum == boss_no_follow[i])
{
SetVictim(NULL);
return;
}
}
}char_state.cpp cauta:
Cod: Selectaţi tot
if (victim && !victim->IsDead())
if (victim && !victim->IsDead())Cod: Selectaţi tot
if (victim && !victim->IsDead())
{
SECTREE *tree = victim->GetSectree();
if (tree && tree->IsAttr(victim->GetX(), victim->GetY(), ATTR_BANPK))
return;
if (CanBeginFight())
BeginFight(victim);
return;
}
if (victim && !victim->IsDead())
{
SECTREE *tree = victim->GetSectree();
if (tree && tree->IsAttr(victim->GetX(), victim->GetY(), ATTR_BANPK))
return;
if (CanBeginFight())
BeginFight(victim);
return;
}Cod: Selectaţi tot
void CHARACTER::OnMove(bool bIsAttack)
void CHARACTER::OnMove(bool bIsAttack)Cod: Selectaţi tot
SECTREE * sectree = GetSectree();
if (sectree && sectree->IsAttr(GetX(), GetY(), ATTR_BANPK) && IsMonster())
Return();
SECTREE * sectree = GetSectree();
if (sectree && sectree->IsAttr(GetX(), GetY(), ATTR_BANPK) && IsMonster())
Return();Cod: Selectaţi tot
bool NO_MOVE_WHEN_ATTACK(unsigned int vnum)
{
switch (vnum)
{
case 2493:
case 2091:
case 2092:
case 1903:
case 2492:
case 1191:
case 2598:
case 3091:
case 3191:
case 3591:
case 3691:
case 3791:
case 3891:
case 3391:
case 6091:
return true;
}
return false;
}
bool NO_MOVE_WHEN_ATTACK(unsigned int vnum)
{
switch (vnum)
{
case 2493:
case 2091:
case 2092:
case 1903:
case 2492:
case 1191:
case 2598:
case 3091:
case 3191:
case 3591:
case 3691:
case 3791:
case 3891:
case 3391:
case 6091:
return true;
}
return false;
}Cod: Selectaţi tot
bool CActorInstance::__CanPushDestActor(CActorInstance& rkActorDst)
bool CActorInstance::__CanPushDestActor(CActorInstance& rkActorDst)Cod: Selectaţi tot
if (NO_MOVE_WHEN_ATTACK(rkActorDst.GetRace()))
return false;
if (NO_MOVE_WHEN_ATTACK(rkActorDst.GetRace()))
return false;

