I have this line-codes:
creature.cpp
It makes a ghost walk creatures, but don't work the getNameDescription() line.
That it's my dark abra.xml of my monsters :
Someone can help me? thanks
Edited: Yep, i test with summons, not monsters
creature.cpp
Code:
void Creature::getPathSearchParams(const Creature* creature, FindPathParams& fpp) const
{
fpp.fullPathSearch = !hasFollowPath;
fpp.clearSight = true;
if(creature->isPlayerSummon())
{
if(creature->getName() == "Gengar")
fpp.clearSight = false;
if(creature->getName() == "Haunter")
fpp.clearSight = false;
if(creature->getName() == "Gastly")
fpp.clearSight = false;
if(creature->getName() == "Shiny Gengar")
fpp.clearSight = false;
if(creature->getNameDescription() == "thedarkabra")
fpp.clearSight = false;
if(creature->getName() == "Shiny Alakazam")
fpp.clearSight = false;
}
fpp.clearSight = true;
fpp.maxSearchDist = 12;
fpp.minTargetDist = fpp.maxTargetDist = 1;
}
It makes a ghost walk creatures, but don't work the getNameDescription() line.
That it's my dark abra.xml of my monsters :
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Dark Abra" nameDescription="thedarkabra" race="ghost" experience="600" speed="250" manacost="450">
<health now="5000" max="5000"/>
<look type="491" corpse="8771"/>
<targetchange interval="1000" chance="1000"/>
<strategy attack="100" defense="0"/>
<flags>
<flag summonable="1"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="1"/>
<flag convinceable="1"/>
<flag pushable="0"/>
<flag canpushitems="1"/>
<flag canpushcreatures="0"/>
<flag targetdistance="1"/>
<flag staticattack="90"/>
<flag runonhealth="0"/>
</flags>
<attacks>
<attack name="physical" interval="1700" chance="100" range="3" min="-190" max="-230">
<attribute key="shootEffect" value="eartharrow"/>
</attack>
</attacks>
<voices interval="5000" chance="10">
<voice sentence="ABRA!"/>
<voice sentence="ABRAAA!"/>
</voices>
</monster>
Someone can help me? thanks
Edited: Yep, i test with summons, not monsters