As Gunz sugessted I edited tile.cpp, queryADD function,
I'm trying to add something like that
Code:
ReturnValue Tile::queryAdd(int32_t, const Thing& thing, uint32_t, uint32_t flags, Creature*) const
{
***
const Item* item = thing.getItem();
if (const Monster* monster = creature->getMonster()) {
if ((item->getID() == 11099 || item->getID() == 110098) && !monster->isPet()) {
return RETURNVALUE_NOTPOSSIBLE;
}
}
***
}
Maybe someone have idea what i should modify in it becouse its not working.
I recive "Segmentation fault" in console on launch OT