Using google translater: =/
I would welcome any player had a specific value for a given storage, he could ever walk on the edges.
i'm made this, but if i logout on non-walkable areas, my server crash... =/
need a help!
I would welcome any player had a specific value for a given storage, he could ever walk on the edges.
i'm made this, but if i logout on non-walkable areas, my server crash... =/
Code:
if(!hasBitSet(FLAG_IGNOREBLOCKITEM, flags))
{
//If the FLAG_IGNOREBLOCKITEM bit isn't set we dont have to iterate every single item
if(hasFlag(TILESTATE_BLOCKSOLID))
{
std::string strValue;
if(creature->getPlayer()){
creature->getStorage(7778, strValue);
int32_t intValue = atoi(strValue.c_str());
Position pos = thing->getPosition();
if(intValue == 4)
return RET_NOERROR;
}
return RET_NOTENOUGHROOM;
}
}
need a help!