Jump to content

Darky88

Members
  • Posts

    79
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by Darky88

  1. Sorry for english comunity, he understand me better if i use spanish lang.

    Es increible que quieras que te entiendan con ese ingles xDD

    Yo solo uso el anticheat y el chatlog el resto no podría decirte, pero te explicaré levemente.

    He realizado la captura sobre un windows para no tener que conectarme a un *nix pero sería exactamente igual.

    gith.th.jpg

    Tras ver la captura puedes ver que el anticheat se aplico correctamente y donde falla es al aplicar el chatlog que te dice que realices un merge de los dos parches.

    Si lo observas detenidamente, veras que pone que el conflicto fue aquí

    CONFLICT (content): Merge conflict in src/mangosd/mangosd.conf.dist.in

    Asique abres ese archivo y en este caso ves que el antichetos escribio justo debajo de las opciones de "CONSOLE AND REMOTE ACCESS" dentro del mangosd.conf.dist.in y que el chatlog tambien quiso escribir justo debajo de eso mismo pero encontro que ya existia el parche del antichetos en ese lugar.

    Como las dos inserciones deben ir en ese archivo y ninguna de las dos crea conflicto entre ellas deberas quitar los

    "<<<<<<< HEAD"

    tambien debes quitar los

    "======="

    y por ultimo los

    ">>>>>>>" y los numeros que siguen en esta linea

    Guardas y ya tienes este archivo listo

    Ahora para que te funcione el chatlog en *nix debes ir a src/game/Makefile.am

    Y este archivo permite que compile correctamente, debes añadir estes lineas

        ChatHandler.cpp \\
    +    ChatLexicsCutter.cpp \\
    +    ChatLexicsCutter.h \\
    +    ChatLog.cpp \\
    +    ChatLog.h \\

    Por ultimo, no es necesario pero si te lo aconsejo, tras cada merge que realices ejecuta

    git commit -a -m "NOMBRE_PARA_EL_COMMIT"

    Y listo para compilar

    PD: El resto de parches no se si tambien crearan conflictos pero el proceso es exactamente el mismo

    Att Darky

    PD: Si te ha servido dale al corazon de abajo a la derecha del post ^^ xD

  2. Mangos rev. 8782

    Thread 2 (process 981):
    #0  Player::_SaveSkills (this=0x1954830) at ../../../src/game/Player.cpp:16011
       valueData = <value optimized out>
       value = <value optimized out>
       max = <value optimized out>
    #1  0x000000000068fca0 in Player::SaveToDB (this=0x1954830)
       at ../../../src/game/Player.cpp:15742
       sql_name = {static npos = 18446744073709551615, 
     _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x7f5a94014fb8 "Patapala"}}
       ss = <incomplete type>
       i = <value optimized out>
    #2  0x0000000000692be5 in Player::Update (this=0x1954830, p_time=100)
       at ../../../src/game/Player.cpp:1287
       now = 1257631182
       pet = <value optimized out>
    
    
    ---Type <return> to continue, or q <return> to quit---
    #3  0x00000000005da5ac in Map::Update (this=0x7f5aa073d740, 
       t_diff=@0x7f5a9affd074) at ../../../src/game/Map.cpp:595
       plr = (class Player *) 0x1954830
       updater = {i_timeDiff = 100}
       grid_object_update = {i_visitor = @0x7f5a9affd000}
       world_object_update = {i_visitor = @0x7f5a9affd000}
       __PRETTY_FUNCTION__ = "virtual void Map::Update(const uint32&)"
    #4  0x00000000005e9328 in MapManager::Update (.omp_data_i=0x7f5ab4bd5fb0)
       at ../../../src/game/MapManager.cpp:280
       update_queue = {<std::_Vector_base<Map*, std::allocator<Map*> >> = {
       _M_impl = {<std::allocator<Map*>> = {<__gnu_cxx::new_allocator<Map*>> = {<No data fields>}, <No data fields>}, _M_start = 0x191bf10, 
         _M_finish = 0x191bf90, _M_end_of_storage = 0x191bf90}}, <No data fields>}
    #5  0x00007f5abdd5ac85 in ?? () from /usr/lib/libgomp.so.1
    No symbol table info available.
    #6  0x00007f5abd6403ba in start_thread () from /lib/libpthread.so.0
    No symbol table info available.
    #7  0x00007f5abcc02fcd in clone () from /lib/libc.so.6
    No symbol table info available.
    #8  0x0000000000000000 in ?? ()
    No symbol table info available.

    Player.cpp:15742

       _SaveBGData();
       _SaveInventory();
       _SaveQuestStatus();
       _SaveDailyQuestStatus();
       _SaveSpells();
       _SaveSpellCooldowns();
       _SaveActions();
       _SaveAuras();
      [color=Red] _SaveSkills();[/color]
       m_achievementMgr.SaveToDB();
       m_reputationMgr.SaveToDB();
       _SaveEquipmentSets();
       GetSession()->SaveTutorialsData();                      // changed only while character in game

    Player.cpp:1287

        if(m_nextSave > 0)
       {
           if(p_time >= m_nextSave)
           {
               // m_nextSave reseted in SaveToDB call
               [color=Red]SaveToDB();[/color]
               sLog.outDetail("Player '%s' (GUID: %u) saved", GetName(), GetGUIDLow());
           }
           else
           {
               m_nextSave -= p_time;
           }
       }
    

    Att DarkTerror

  3. Core: 8754

    I think that crash is for mtmaps

    (gdb) bt full
    #0  FreezeDetectorRunnable::run (this=0x7f77c8f1e3b0)
       at ../../../src/mangosd/Master.cpp:111
       curtime = <value optimized out>
    #1  0x00000000007e4efc in ACE_Based::Thread::ThreadTask (param=0x7f77cdcd3860)
       at ../../../src/shared/Threading.cpp:183
       _task = (class ACE_Based::Runnable *) 0x7f77c8f1e3b0
    #2  0x00007f77ce48a3ba in start_thread () from /lib/libpthread.so.0
    No symbol table info available.
    #3  0x00007f77cda4cfcd in clone () from /lib/libc.so.6
    No symbol table info available.
    #4  0x0000000000000000 in ?? ()
    No symbol table info available.
    

    Some idea?

  4. Core: 8754

    SD2: 1480

    DB: YTDB 515

    HEISEI: 51

    Custom patch: mtmaps,blink,chatlog

    OS: Linux 64 bit

    Frecuently: 2hours aprox

    (gdb) bt full
    #0  0x00007f711bfadfb5 in raise () from /lib/libc.so.6
    No symbol table info available.
    #1  0x00007f711bfafbc3 in abort () from /lib/libc.so.6
    No symbol table info available.
    #2  0x00007f711bfa6f09 in __assert_fail () from /lib/libc.so.6
    No symbol table info available.
    #3  0x00000000006b095c in Aura::UnregisterSingleCastAura (this=0x7f70fd8c32a0)
       at ../../../src/game/SpellAuras.cpp:7410
       caster = <value optimized out>
       __PRETTY_FUNCTION__ = "void Aura::UnregisterSingleCastAura()"
    #4  0x00000000007150d1 in Unit::RemoveAura (this=0x7f70fd343b50, i=@0x7f31, 
       mode=6) at ../../../src/game/Unit.cpp:4055
       Aur = (class Aura *) 0x7f0c
       AurSpellInfo = (const SpellEntry *) 0x7f7116ad5710
       statue = <value optimized out>
       caster_channeled = <value optimized out>
    #5  0x0000000000716a5e in Unit::RemoveAura (this=0x7f70fd343b50, 
       aura=0x7f70fd8c32a0, mode=AURA_REMOVE_BY_DEFAULT)
       at ../../../src/game/Unit.cpp:4043
       i = {_M_node = 0x7f70f40b3110}
    #6  0x0000000000716b66 in Unit::RemoveNotOwnSingleTargetAuras (
       this=0x7f70df0098d0, newPhase=0) at ../../../src/game/Unit.cpp:4026
       aura = (class Aura *) 0x7f70fd8c32a0
    ---Type <return> to continue, or q <return> to quit---
    #7  0x0000000000716bc1 in Unit::RemoveFromWorld (this=0x7f70df0098d0)
       at ../../../src/game/Unit.cpp:11102
    No locals.
    #8  0x0000000000524003 in Creature::RemoveFromWorld (this=0x7f70df0098d0)
       at ../../../src/game/Creature.cpp:157
    No locals.
    #9  0x0000000000600fd7 in ObjectGridUnloader::Visit<Creature> (
       this=<value optimized out>, m=@0x7f70f4356000)
       at ../../../src/game/ObjectGridLoader.cpp:263
    No locals.
    #10 0x00000000006005f5 in ObjectGridUnloader::Unload (this=0x7f7118488d30, 
       grid=@0x7f70f4355fd0)
       at ../../../src/game/../framework/GameSystem/TypeContainerVisitor.h:64
    No locals.
    #11 0x00000000005cf2cc in Map::UnloadGrid (this=0x7f7108db51b0, 
       x=@0x7f7118488ecc, y=@0x7f7118488ec8, pForce=<value optimized out>)
       at ../../../src/game/../framework/GameSystem/GridLoader.h:72
       unloader = {i_grid = @0x7f70f4352bf0}
       grid = <value optimized out>
       gx = <value optimized out>
       __PRETTY_FUNCTION__ = "bool Map::UnloadGrid(const uint32&, const uint32&, bool)"
    #12 0x000000000078bba1 in RemovalState::Update (this=<value optimized out>, 
    ---Type <return> to continue, or q <return> to quit---
       m=@0x7f7108db51b0, grid=@0x7f70f4352bf0, info=<value optimized out>, 
       x=@0x7f7118488ecc, y=@0x7f7118488ec8, t_diff=@0x7f7118488f64)
       at ../../../src/game/GridStates.cpp:65
    No locals.
    #13 0x00000000005d9fa0 in Map::Update (this=0x7f7108db51b0, 
       t_diff=@0x7f7118488f64) at ../../../src/game/Map.cpp:714
       grid = <value optimized out>
       updater = {i_timeDiff = 172}
       grid_object_update = {i_visitor = @0x7f7118488ef0}
       world_object_update = {i_visitor = @0x7f7118488ef0}
       __PRETTY_FUNCTION__ = "virtual void Map::Update(const uint32&)"
    #14 0x00000000005e94a5 in MapManager::Update (.omp_data_i=0x7f7118488fc0)
       at ../../../src/game/MapManager.cpp:282
       update_queue = {<std::_Vector_base<Map*, std::allocator<Map*> >> = {
       _M_impl = {<std::allocator<Map*>> = {<__gnu_cxx::new_allocator<Map*>> = {<No data fields>}, <No data fields>}, _M_start = 0x7f71022ed490, 
         _M_finish = 0x7f71022ed5c0, 
         _M_end_of_storage = 0x7f71022ed5c0}}, <No data fields>}
    #15 0x00000000005e961b in MapManager::Update (this=0x7f71091f9240, 
       diff=<value optimized out>) at ../../../src/game/MapManager.cpp:288
       update_queue = {<std::_Vector_base<Map*, std::allocator<Map*> >> = {
       _M_impl = {<std::allocator<Map*>> = {<__gnu_cxx::new_allocator<Map*>> = {<No data fields>}, <No data fields>}, _M_start = 0x7f71022ed490, 
    ---Type <return> to continue, or q <return> to quit---
         _M_finish = 0x7f71022ed5c0, 
         _M_end_of_storage = 0x7f71022ed5c0}}, <No data fields>}
    #16 0x0000000000741d24 in World::Update (this=0xb870e0, diff=172)
       at ../../../src/game/World.cpp:1663
       autobroadcaston = 1
    #17 0x00000000004e84d1 in WorldRunnable::run (this=<value optimized out>)
       at ../../../src/mangosd/WorldRunnable.cpp:64
       diff = 172
       realCurrTime = 2788481844
       realPrevTime = <value optimized out>
       prevSleepTime = 95
    #18 0x00000000007e4efc in ACE_Based::Thread::ThreadTask (param=0x7f0c)
       at ../../../src/shared/Threading.cpp:183
       _task = (class ACE_Based::Runnable *) 0x7f7105fc4c80
    #19 0x00007f711ca9e3ba in start_thread () from /lib/libpthread.so.0
    No symbol table info available.
    #20 0x00007f711c060fcd in clone () from /lib/libc.so.6
    No symbol table info available.
    #21 0x0000000000000000 in ?? ()
    No symbol table info available.
    

    src/game/SpellAuras.cpp:7410

    void Aura::UnregisterSingleCastAura()

    {

    if (IsSingleTarget())

    {

    if(Unit* caster = GetCaster())

    {

    caster->GetSingleCastAuras().remove(this);

    }

    else

    {

    sLog.outError("Couldn't find the caster of the single target aura (SpellId %u), may crash later!", GetId());

    assert(false);

    }

    m_isSingleTargetAura = false;

    }

    }

  5. Core: 8736

    SD2: 1480

    DB: YTDB 515

    HEISEI: 51

    Custom patch: NO

    OS: Linux 64 bit

    Frecuently: 15mins

    (gdb) bt full
    #0  0x00007faa3c7a8fb5 in raise () from /lib/libc.so.6
    No symbol table info available.
    #1  0x00007faa3c7aabc3 in abort () from /lib/libc.so.6
    No symbol table info available.
    #2  0x00007faa3c7a1f09 in __assert_fail () from /lib/libc.so.6
    No symbol table info available.
    #3  0x000000000052634b in Creature::AddToWorld (this=0xbf80490)
       at ../../../src/game/../framework/GameSystem/TypeContainer.h:78
    No locals.
    #4  0x00000000005fed64 in LoadHelper<Creature> (
       guid_set=<value optimized out>, cell=@0x7faa38c83a30, m=@0xdc8b360, 
       count=@0x7faa38c83b1c, map=0x7faa2a2c1020)
       at ../../../src/game/ObjectGridLoader.cpp:146
       guid = <value optimized out>
       obj = (class Creature *) 0xbf80490
       bg = (class BattleGround *) 0x0
    #5  0x00000000005fe162 in ObjectGridLoader::Visit (this=0x7faa38c83b00, 
       m=@0xdc8b360) at ../../../src/game/ObjectGridLoader.cpp:207
       x = 177
       y = <value optimized out>
       cell_pair = {x_coord = 177, y_coord = 248}
    #6  0x00000000005fe2a5 in ObjectGridLoader::Load (this=0x7faa38c83b00, 
       grid=<value optimized out>)
    ---Type <return> to continue, or q <return> to quit---
       at ../../../src/game/../framework/GameSystem/TypeContainerVisitor.h:64
    No locals.
    #7  0x00000000005fe371 in ObjectGridLoader::LoadN (this=0x7faa38c83b00)
       at ../../../src/game/../framework/GameSystem/GridLoader.h:53
       y = 1
       x = 1
    #8  0x00000000005cf5ef in Map::EnsureGridLoaded (this=0x7faa2a2c1020, 
       cell=@0x7faa38c83c90) at ../../../src/game/Map.cpp:411
       loader = {i_cell = {data = {Part = {grid_x = 22, grid_y = 31, 
           cell_x = 1, cell_y = 0, nocreate = 0, reserved = 0}, All = 6102}}, 
     i_grid = @0xdc8a660, i_map = 0x7faa2a2c1020, i_gameObjects = 12, 
     i_creatures = 7, i_corpses = 0}
       grid = <value optimized out>
       __PRETTY_FUNCTION__ = "bool Map::EnsureGridLoaded(const Cell&)"
    #9  0x00000000005d02e9 in Map::UpdatePlayerVisibility (this=0x7faa2a2c1020, 
       player=<value optimized out>, cell=<value optimized out>, cellpair=
         {x_coord = 952646944, y_coord = 32682}) at ../../../src/game/Map.h:652
    
       pl_notifier = {i_player = @0xc169230}
       player_notifier = {i_visitor = @0x7faa38c83c50}
       cell_lock = {i_cell = @0x7faa38c83d70, i_cellPair = @0x7faa38c83d20}
    #10 0x00000000005dbc45 in Map::PlayerRelocation (this=0x7faa2a2c1020, 
       player=0xc169230, x=-5421.11963, y=-381.558594, z=400.223541, 
       orientation=0.812475502) at ../../../src/game/Map.cpp:886
    ---Type <return> to continue, or q <return> to quit---
       old_val = {x_coord = 174, y_coord = 250}
       new_val = {x_coord = 174, y_coord = 250}
       old_cell = {data = {Part = {grid_x = 21, grid_y = 31, cell_x = 6, 
         cell_y = 2, nocreate = 0, reserved = 0}, All = 550869}}
       new_cell = {data = {Part = {grid_x = 21, grid_y = 31, cell_x = 6, 
         cell_y = 2, nocreate = 0, reserved = 0}, All = 550869}}
       newGrid = <value optimized out>
       __PRETTY_FUNCTION__ = "void Map::PlayerRelocation(Player*, float, float, float, float)"
    #11 0x000000000068bccf in Player::SetPosition (this=0xc169230, 
       x=-1.08420217e-19, y=1.84799004, z=-nan(0x7fffff), 
       orientation=<value optimized out>, teleport=false)
       at ../../../src/game/Player.cpp:5672
       m = (class Map *) 0x7faa2a2c1020
       old_x = -5425.93359
       old_y = -386.640533
       old_z = <value optimized out>
       old_r = <value optimized out>
    #12 0x000000000079fe10 in WorldSession::HandleMovementOpcodes (this=0x718b610, 
       recv_data=@0x7faa26f3f0f0) at ../../../src/game/MovementHandler.cpp:321
       opcode = 238
       mover = (class Unit *) 0xc169230
       plMover = (class Player *) 0xc169230
    ---Type <return> to continue, or q <return> to quit---
       guid = <value optimized out>
       movementInfo = {guid = 28342, flags = 1, unk1 = 0, time = 2391539276, 
     x = -5421.11963, y = -381.558594, z = 400.223541, o = 0.812475502, 
     t_guid = 0, t_x = 0, t_y = 0, t_z = 0, t_o = 0, t_time = 0, 
     t_seat = -25 'ç', s_pitch = 0, fallTime = 516, j_unk = 0, j_sinAngle = 0, 
     j_cosAngle = 0, j_xyspeed = 0, u_unk1 = 0}
       data = {<ByteBuffer> = {static DEFAULT_SIZE = 4096, _rpos = 0, 
       _wpos = 33, 
       _storage = {<std::_Vector_base<unsigned char, std::allocator<unsigned char> >> = {
           _M_impl = {<std::allocator<unsigned char>> = {<__gnu_cxx::new_allocator<unsigned char>> = {<No data fields>}, <No data fields>}, 
             _M_start = 0x4e2a2b0 "\\003¶n\\001", _M_finish = 0x4e2a2d1 ",", 
             _M_end_of_storage = 0x4e2a2d1 ","}}, <No data fields>}}, 
     m_opcode = 238}
    #13 0x00000000007453d3 in WorldSession::Update (this=0x718b610)
       at ../../../src/game/WorldSession.cpp:238
       packet = (WorldPacket *) 0x7faa26f3f0f0
       currTime = <value optimized out>
    #14 0x000000000073e4d9 in World::UpdateSessions (this=0x7faa34023730, diff=180)
       at ../../../src/game/World.cpp:2049
       itr = {<std::tr1::__detail::_Hashtable_iterator_base<std::Pair<const unsigned int, WorldSession*>, false>> = {_M_cur_node = 0x7faa34023730, 
    ---Type <return> to continue, or q <return> to quit---
       _M_cur_bucket = 0xffffffffff60041c}, <No data fields>}
       sess = (WorldSession *) 0x20c49ba5e353f7cf
    #15 0x000000000073e6c3 in World::Update (this=0x7faa34023730, diff=180)
       at ../../../src/game/World.cpp:1598
    No locals.
    #16 0x00000000004e68c1 in WorldRunnable::run (this=<value optimized out>)
       at ../../../src/mangosd/WorldRunnable.cpp:64
       diff = 180
       realCurrTime = 2391539270
       realPrevTime = <value optimized out>
       prevSleepTime = 99
    #17 0x00000000007d7d2c in ACE_Based::Thread::ThreadTask (param=0x45d)
       at ../../../src/shared/Threading.cpp:183
       _task = (class ACE_Based::Runnable *) 0x7faa2a3d3a50
    #18 0x00007faa3d2993ba in start_thread () from /lib/libpthread.so.0
    No symbol table info available.
    #19 0x00007faa3c85bfcd in clone () from /lib/libc.so.6
    No symbol table info available.
    #20 0x0000000000000000 in ?? ()
    No symbol table info available.
    

  6. The error was in the table ¬¬ : )

    DROP TABLE IF EXISTS LOG_LOGGINS;
    CREATE TABLE LOG_LOGGINS (
       username VARCHAR(32) DEFAULT 'TESTING',
       login_time BIGINT(40) NOT NULL,
       ip VARCHAR(30) NOT NULL DEFAULT '1.1.1.1',
       loggin VARCHAR(1) NOT NULL DEFAULT '0',
       PRIMARY KEY  (username,login_time)
    );  
    

    The chart record

    -account names

    -dates

    -ip

    -Connect or wrong pass provided

    You can take a statistical study of which is trying to be attacked, but really are just testing to learn and make a bigger proyect

    ^^ THX YOU!!

  7. GREAT!!

    Can u compile that?

    mangos / src / realmd / AuthSocket.cpp

       ///- Check if SRP6 results match (password is correct), else send an error
       if (!memcmp(M.AsByteArray(), lp.M1, 20))
       {
           sLog.outBasic("User '%s' successfully authenticated", _login.c_str());
    
           ///- Update the sessionkey, last_ip, last login time and reset number of failed logins in the account table for this account
           // No SQL injection (escaped user name) and IP address as received by socket
           const char* K_hex = K.AsHexStr();
           loginDatabase.PExecute("UPDATE account SET sessionkey = '%s', last_ip = '%s', last_login = NOW(), locale = '%u', failed_logins = 0 WHERE username = '%s'", K_hex, GetRemoteAddress().c_str(), GetLocaleByName(_localizationName), _safelogin.c_str() );
    +       loginDatabase.PExecute("INSERT INTO log_loggins VALUES
    ('%s',UNIX_TIMESTAMP(),'%s', '1')",_safelogin.c_str(),GetRemoteAddress().c_str());
    
           OPENSSL_free((void*)K_hex);
    
           ///- Finish SRP6 and send the final result to the client
           sha.Initialize();
           sha.UpdateBigNumbers(&A, &M, &K, NULL);
           sha.Finalize();
    
    

    ...

           uint32 MaxWrongPassCount = sConfig.GetIntDefault("WrongPass.MaxCount", 0);
           if(MaxWrongPassCount > 0)
           {
               //Increment number of failed logins by one and if it reaches the limit temporarily ban that account or IP
               loginDatabase.PExecute("UPDATE account SET failed_logins = failed_logins + 1 WHERE username = '%s'",_safelogin.c_str());
    +         
    
               if(QueryResult *loginfail = loginDatabase.PQuery("SELECT id, failed_logins FROM account WHERE username = '%s'", _safelogin.c_str()))
               {
                   Field* fields = loginfail->Fetch();
                   uint32 failed_logins = fields[1].GetUInt32();
    +              loginDatabase.PExecute("INSERT INTO log_loggins VALUES
    ('%s',UNIX_TIMESTAMP(),'%s', '0')",_safelogin.c_str(),GetRemoteAddress().c_str());
                   if( failed_logins >= MaxWrongPassCount )
    

    And you need that table in Realm database

    DROP TABLE IF EXISTS LOG_LOGGINS;
    CREATE TABLE LOG_LOGGINS (
       username VARCHAR(32) DEFAULT 'TESTING',
       login_time TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
       ip VARCHAR(30) NOT NULL DEFAULT '1.1.1.1',
       loggin VARCHAR(1) NOT NULL DEFAULT '0',
       PRIMARY KEY  (username,login_time)
    );
    

    You test, fist that compile, and goob/bad loggins are loged in db^^

    Thx sso1!!

  8. OH ^^ !!

    Fuck copy + paste :D !!

    Put the code for others peoples (sorry for my english xD)

    Now I have a desire to learn, I'll throw a question and I also try to resolve it, but if someone wants to help me.

    Create a table in the database where I save, User, kingdom, the time and IP

    sso1 do you want to compile the projects and tell me the result? :?

    ^^ thx

    Att Darky

  9. language.h

    -// Room for more level 2              348-399 not used
    +    LANG_KICK_WORLD_ANNOUNCE                = 348,
    +// Room for more level 2              349-399 not used  
    

    Level2.cpp

    #include <fstream>
    #include <map>
    #include "GlobalEvents.h"
    +#include "WorldPacket.h"
    +#include "WorldSession.h"
    +#include "PlayerDump.h"
    +#include "Log.h"
    +#include "Guild.h"
    +#include "ScriptCalls.h"
    +#include "GridNotifiersImpl.h"
    +#include "CellImpl.h"
    +#include "Weather.h"
    +#include "PointMovementGenerator.h"
    +#include "SkillDiscovery.h"
    +#include "SkillExtraItems.h"
    +#include "SystemConfig.h"
    +#include "Config/ConfigEnv.h"
    +#include "ItemEnchantmentMgr.h"
    +#include "BattleGroundMgr.h"
    +#include "InstanceSaveMgr.h"
    +#include "InstanceData.h"
    +#include "CreatureEventAIMgr.h"
    

    Level2.cpp

    //kick player
    bool ChatHandler::HandleKickPlayerCommand(const char *args)
    {
    +    if (!*args)
    +        return false;
    +
    +    char* cnameOrIP = strtok ((char*)args, " ");
    +    if (!cnameOrIP)
    +        return false;
    +
    +    std::string nameOrIP = cnameOrIP;
    +
    +    char* reason = strtok (NULL,"");
    +    if(!reason)
    +        return false;
    +
       Player* target;
       if(!extractPlayerTarget((char*)args,&target))
           return false;
    
       if (m_session && target==m_session->GetPlayer())
       {
           SendSysMessage(LANG_COMMAND_KICKSELF);
           SetSentErrorMessage(true);
           return false;
       }
    
       // check online security
       if (HasLowerSecurity(target, 0))
           return false;
    
       // send before target pointer invalidate
       PSendSysMessage(LANG_COMMAND_KICKMESSAGE,GetNameLink(target).c_str());
    +   sWorld.SendWorldText(LANG_KICK_WORLD_ANNOUNCE,nameOrIP.c_str(),m_session ? m_session->GetPlayerName() : "CONSOLE",reason);                        );
       target->GetSession()->KickPlayer();
       return true;
    }  
    

    mangos_string.sql

    +delete from `mangos_string` where `entry`='348';
    +insert into `mangos_string` (`entry`, `content_default`, `content_loc1`, `content_loc2`, `content_loc3`, `content_loc4`, `content_loc5`, `content_loc6`, `content_loc7`, `content_loc8`) values('348','|cffff0000[GM]:|r %s was kiked by %s. Reason: %s.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);  
    

    Try that

  10. Level2.cpp

    Can u add that and try compile and paste the result?

    #include <fstream>
    #include <map>
    #include "GlobalEvents.h"
    +#include "WorldPacket.h"
    +#include "WorldSession.h"
    +#include "PlayerDump.h"
    +#include "Log.h"
    +#include "Guild.h"
    +#include "ScriptCalls.h"
    +#include "GridNotifiersImpl.h"
    +#include "CellImpl.h"
    +#include "Weather.h"
    +#include "PointMovementGenerator.h"
    +#include "SkillDiscovery.h"
    +#include "SkillExtraItems.h"
    +#include "SystemConfig.h"
    +#include "Config/ConfigEnv.h"
    +#include "ItemEnchantmentMgr.h"
    +#include "BattleGroundMgr.h"
    +#include "InstanceSaveMgr.h"
    +#include "InstanceData.h"
    +#include "CreatureEventAIMgr.h"
    

    I am searching for the library that contains

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