Hello, i've got a problem. I made reborn command on my server, it's working fine, but when i try to enter a map with eg. 0lvl and 1rb i cant get through, level issue. I tried this
if (warp)
{
if ((from->level >= warp.levelreq || from->reborn > 0) && (warp.spec == Map_Warp::NoDoor || warp.open))
{
Map* map = this->world->GetMap(warp.map);
if (from->SourceAccess() < ADMIN_GUIDE && map->evacuate_lock && map->id != from->map->id)
{
from->StatusMsg(this->world->i18n.Format("map_evacuate_block"));
from->Refresh();
}
else
{
from->Warp(warp.map, warp.x, warp.y);
}
return WalkWarped;
}
but it doesn't work. It works on command like this
if(X > 0 && Y > 0 && (character->level >= lvl || character->reborn > 0))
{
if(static_cast<std::string>(character->world->warps_config["WarpsAnimation"]) == "none")
{
character->Warp(Map, X, Y, WARP_ANIMATION_NONE);
}
else
{
character->Warp(Map, X, Y, WARP_ANIMATION_ADMIN);
}
}
Any ideas?