getMonster() && isSummon()
or getPlayer() && isSummon()
if ((!followCreature || !hasFollowPath) && ([COLOR=rgb(184, 49, 47)]isSummon()[/COLOR] || !isMasterInRange)) {
if (OTSYS_TIME() >= nextDanceStepRound) {
nextDanceStepRound = OTSYS_TIME() + 2000 + getStepDuration();
//choose a random direction
result = getRandomStep(getPosition(), direction);
}
} else if (([COLOR=rgb(41, 105, 176)]isSummon()[/COLOR] && isMasterInRange) || followCreature) {
result = Creature::getNextStep(direction, flags);
if (result) {
flags |= FLAG_PATHFINDING;
You should already have access to isSummon just by having an object that inherits the Creature class.in this case, how can i declare the isSummon() for monster summon
and isSummon() for player summon?
C++:if ((!followCreature || !hasFollowPath) && ([COLOR=rgb(184, 49, 47)]isSummon()[/COLOR] || !isMasterInRange)) { if (OTSYS_TIME() >= nextDanceStepRound) { nextDanceStepRound = OTSYS_TIME() + 2000 + getStepDuration(); //choose a random direction result = getRandomStep(getPosition(), direction); } } else if (([COLOR=rgb(41, 105, 176)]isSummon()[/COLOR] && isMasterInRange) || followCreature) { result = Creature::getNextStep(direction, flags); if (result) { flags |= FLAG_PATHFINDING;