Jump to content

Tuxity

Members
  • Posts

    11
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by Tuxity

  1. diff --git a/src/game/Map.cpp b/src/game/Map.cpp
    index d260ee8..a2695d1 100644
    --- a/src/game/Map.cpp
    +++ b/src/game/Map.cpp
    @@ -2379,6 +2379,9 @@ bool InstanceMap::CanEnter(Player *player)
       // cannot enter while players in the instance are in combat
       Group *pGroup = player->GetGroup();
    -    if(pGroup && pGroup->InCombatToInstance(GetInstanceId()) && player->isAlive() && player->GetMapId() != GetId())
    +    if( pGroup && pGroup->InCombatToInstance(GetInstanceId()) )
       {
           player->SendTransferAborted(GetId(), TRANSFER_ABORT_ZONE_IN_COMBAT);
           return false;
       }

    Working but the player is teleport to this homebind.

    We have to send the message and don't teleport him (lock the portal ?) like other message

    i try add

     
    if (player->GetGroup())
    {  
        if (Map *BindMap = sMapMgr.FindMap(player->GetCorpse()->GetMapId(), player->GetCorpse()->GetInstanceId()))
      {
       if (((InstanceMap*)BindMap)->GetInstanceData() && ((InstanceMap*)BindMap)->GetInstanceData()->IsEncounterInProgress())
       {
        if (!player->isAlive())
         player->ResurrectPlayer(0.5f);
        player->SendTransferAborted(mapid, TRANSFER_ABORT_ZONE_IN_COMBAT);    
        return (false);
       }
      }
     }  
    

    in bool MapManager::CanPlayerEnter(uint32 mapid, Player* player)

    its work for send message for player and just revive him but i have one problem. if player enter map and no other raid member in map == crash :x

    It's crash because if you are alive your player->GetCorpse()->GetInstanceId() doesn't work (we have no corpse)

    I think it's better to check in this fonction because she is before the TP, we just have to find the better way =)

  2. Hi,

    for people who have this type of error at launch

    2009-02-17 11:37:41 ERROR:MaxPlayerLevel (200) must be in range 1..100. Set to 100.

    2009-02-17 11:37:41 ERROR:GM.StartLevel (150) must be in range 1..100. Set to 100.

    It's because mangos restricted the level max, and it's very annoying for fun serveur who wrote a maxlevel > 100 in their .conf

    Totomakers wrote a patch for this error (this is a little fix)

    "4"

    I repeat it's for fun server only !

    thanks,

    Flemzard

    Edit:

    If mangos reduce the maxlevel it's because there is a client instability

    cf Vladimir's post under

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use