Show
Ignore:
Timestamp:
11/19/08 13:25:37 (17 years ago)
Author:
yumileroy
Message:

[svn] * Removing useless data accidentally committed.
* Applying ImpConfig? patch.
* Note: QUEUE_FOR_GM currently disabled as it's not compatible with the ACE patch. Anyone care to rewrite it?
* Note2: This is untested - I may have done some mistakes here and there. Will try to compile now.

Original author: XTZGZoReX
Date: 2008-10-10 13:37:21-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/MiscHandler.cpp

    r28 r34  
    296296    } 
    297297 
    298     //instant logout in taverns/cities or on taxi 
    299     if(GetPlayer()->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_RESTING) || GetPlayer()->isInFlight()) 
     298    //instant logout in taverns/cities or on taxi or if its enabled in mangosd.conf 
     299    if(GetPlayer()->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_RESTING) || GetPlayer()->isInFlight() || sWorld.getConfig(CONFIG_INSTANT_LOGOUT)) 
    300300    { 
    301301        LogoutPlayer(true); 
     
    575575    if(newZone != _player->GetZoneId()) 
    576576        GetPlayer()->SendInitWorldStates();                 // only if really enters to new zone, not just area change, works strange... 
     577 
     578        // AntiCheat.GMIsland 
     579        if(sWorld.getConfig(CONFIG_KICK_FROM_GMISLAND)) 
     580        { 
     581                if(newZone == 876 && GetPlayer()->GetSession()->GetSecurity() == SEC_PLAYER) 
     582                        _player->TeleportTo(13,0,0,0,0); 
     583        } 
    577584 
    578585    GetPlayer()->UpdateZone(newZone);