Пример #1
0
bool OPvPCapturePoint::AddCreature(uint32 type, uint32 entry, uint32 team,
        uint32 map, float x, float y, float z, float o, uint32 spawntimedelay) {
    if (uint32 guid = sObjectMgr->AddCreData(entry, team, map, x, y, z, o, spawntimedelay)) {
        AddCre(type, guid, entry);
        return true;
    }

    return false;
}
Пример #2
0
bool OPvPCapturePoint::AddCreature(uint32 type, uint32 entry, uint32 map, float x, float y, float z, float o, TeamId /*teamId = TEAM_NEUTRAL*/, uint32 spawntimedelay /*= 0*/)
{
    if (ObjectGuid::LowType guid = sObjectMgr->AddCreatureData(entry, map, x, y, z, o, spawntimedelay))
    {
        AddCre(type, guid);
        return true;
    }

    return false;
}