Jump to content

fedr

Members
  • Posts

    8
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by fedr

  1. what flag has the libmangosscript ?

    maybe you need to chown the script file to the right user?

    and it should be readable and executeable for your mangos user

    ls -lah of your lib folder would be nice

    I've already tried chown -R / chmod -R 777, ran with sudo, but it does not help...

    ls -lah
    total 11M
    drwxrwxrwx 5 fedr admins 4,0K 2010-09-27 13:03 .
    drwxr-xr-x 5 fedr root     36 2010-09-27 13:03 ..
    -rwxrwxrwx 1 fedr admins  11M 2010-09-27 13:03 libACE-5.6.6.so
    -rwxrwxrwx 1 fedr admins  822 2010-09-27 13:03 libACE.la
    drwxrwxrwx 2 fedr admins   22 2010-09-27 13:03 libACE.so
    -rwxrwxrwx 1 fedr admins  868 2010-09-27 13:03 libmangosscript.la
    drwxrwxrwx 2 fedr admins   31 2010-09-27 13:03 libmangosscript.so
    drwxrwxrwx 2 fedr admins   33 2010-09-27 13:04 libmangosscript.so.0
    -rwxrwxrwx 1 fedr admins 402K 2010-09-27 13:03 libmangosscript.so.0.0.0
    -rwxrwxrwx 1 fedr admins   32 2010-09-27 13:03 libtbbmalloc_proxy.so
    -rwxrwxrwx 1 fedr admins  12K 2010-09-27 13:03 libtbbmalloc_proxy.so.2
    -rwxrwxrwx 1 fedr admins   26 2010-09-27 13:03 libtbbmalloc.so
    -rwxrwxrwx 1 fedr admins  41K 2010-09-27 13:03 libtbbmalloc.so.2
    -rwxrwxrwx 1 fedr admins   20 2010-09-27 13:03 libtbb.so
    -rwxrwxrwx 1 fedr admins 174K 2010-09-27 13:03 libtbb.so.2

  2. Hello all.

    I have built mangos-0.12 on ubuntu without errors, but when I am going to run it gets the error:

    ./mangos-worldd: error while loading shared libraries: /opt/mangos-bc/lib/libmangosscript.so.0: cannot read file data: Error 21
    

    "/opt/mangos-bc/lib/libmangosscript.so.0" is existing directory with `libmangosscript.so.0` file. I have tried chmod, but nothing happens.

    Anyone has any idea?

  3. Kicho wehn you have time can you look this for ManGos Zero Pls =)

    I did, need test.

    diff --git a/src/game/ChatHandler.cpp b/src/game/ChatHandler.cpp
    index 0d80814..cca4e42 100644
    --- a/src/game/ChatHandler.cpp
    +++ b/src/game/ChatHandler.cpp
    @@ -198,10 +198,15 @@ void WorldSession::HandleMessagechatOpcode( WorldPacket & recv_data )
                uint32 pSecurity = player ? player->GetSession()->GetSecurity() : SEC_PLAYER;
                if (!player || (tSecurity == SEC_PLAYER && pSecurity > SEC_PLAYER && !player->isAcceptWhispers()))
                {
    -                WorldPacket data(SMSG_CHAT_PLAYER_NOT_FOUND, (to.size()+1));
    -                data<<to;
    -                SendPacket(&data);
    -                return;
    +                QueryResult *result = CharacterDatabase.PQuery("SELECT guid FROM characters WHERE name = '%s' AND online > 1", to.c_str());
    +                if (!result)
    +                {
    +                     WorldPacket data(SMSG_CHAT_PLAYER_NOT_FOUND, (to.size()+1));
    +                    data<<to;
    +                    SendPacket(&data);
    +                }
    +                return;
    +                delete result;
                }
    
                if (!sWorld.getConfig(CONFIG_BOOL_ALLOW_TWO_SIDE_INTERACTION_CHAT) && tSecurity == SEC_PLAYER && pSecurity == SEC_PLAYER )
    diff --git a/src/game/MiscHandler.cpp b/src/game/MiscHandler.cpp
    index 75a9798..97d5168 100644
    --- a/src/game/MiscHandler.cpp
    +++ b/src/game/MiscHandler.cpp
    @@ -157,9 +157,9 @@ void WorldSession::HandleWhoOpcode( WorldPacket & recv_data )
                    continue;
            }
    
    -        // do not process players which are not in world
    +        /* // do not process players which are not in world
            if(!(itr->second->IsInWorld()))
    -            continue;
    +            continue; */
    
            // check if target is globally visible for player
            if (!(itr->second->IsVisibleGloballyFor(_player)))
    @@ -247,6 +247,38 @@ void WorldSession::HandleWhoOpcode( WorldPacket & recv_data )
            if ((++clientcount) == 49)
                break;
        }
    +    if (clientcount < 49)
    +    {
    +        // Fake players on WHO LIST                            0,   1,    2,   3,    4,   5     6
    +        QueryResult *result = CharacterDatabase.Query("SELECT guid,name,race,class,level,zone,gender FROM characters WHERE online>1");
    +        if (result)
    +        {
    +            do
    +            {
    +                Field *fields = result->Fetch();
    +
    +                std::string pname = fields[1].GetCppString();
    +                std::string gname;
    +                uint8 lvl = fields[4].GetUInt8();
    +                uint32 class_ = fields[3].GetUInt32();
    +                uint32 race = fields[2].GetUInt32();
    +                uint32 pzoneid = fields[5].GetUInt32();
    +                uint8 gender = fields[6].GetUInt8();
    +
    +                data << pname;                              // player name
    +                data << gname;                              // guild name
    +                data << uint32(lvl);                        // player level
    +                data << uint32(class_);                     // player class
    +                data << uint32(race);                       // player race
    +                data << uint8(gender);                      // player gender
    +                data << uint32(pzoneid);                    // player zone id
    +
    +                if ((++clientcount) == 49)
    +                    break;
    +            } while (result->NextRow());
    +        }
    +        delete result;
    +    }
    
        uint32 count = m.size();
        data.put( 0, clientcount );                             // insert right count, listed count
    

    add

    Compiled without errors, but not show fake player in who list. May be classic has another pocket structure.

×
×
  • 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