Jump to content

kaxias

Members
  • Posts

    53
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by kaxias

  1. fix to mangos 11430

    but not sure if this the right way!

    diff --git a/src/game/playerbot/PlayerbotMgr.cpp b/src/game/playerbot/PlayerbotMgr.cpp
    index 404430b..bcf2612 100644
    --- a/src/game/playerbot/PlayerbotMgr.cpp
    +++ b/src/game/playerbot/PlayerbotMgr.cpp
    @@ -9,6 +9,7 @@
    #include "../Chat.h"
    #include "../Language.h"
    #include "../Guild.h"
    +#include "../GuildMgr.h"
    #include "../WaypointMovementGenerator.h"
    
    class LoginQueryHolder;
    @@ -662,7 +663,7 @@ void PlayerbotMgr::HandleMasterIncomingPacket(const WorldPacket& packet)
                        uint32 GuildId = bot->GetGuildId();
                        if (!GuildId)
                            return;
    -                    Guild *pGuild = sObjectMgr.GetGuildById(GuildId);
    +                    Guild *pGuild = sGuildMgr.GetGuildById(GuildId);
                        if (!pGuild)
                            return;
                        pGuild->LogBankEvent(GUILD_BANK_LOG_REPAIR_MONEY, 0, bot->GetGUIDLow(), TotalCost);
    

  2. warning fix in vc10

    diff --git a/win/VC100/game.vcxproj.filters b/win/VC100/game.vcxproj.filters
    index daf1591..0f04dea 100644
    --- a/win/VC100/game.vcxproj.filters
    +++ b/win/VC100/game.vcxproj.filters
    @@ -495,6 +495,7 @@
        </ClCompile>
        <ClCompile Include="..\\..\\src\\game\\playerbot\\PlayerbotWarriorAI.cpp">
          <Filter>World/Handlers</Filter>
    +    </ClCompile>
        <ClCompile Include="..\\..\\src\\game\\vmap\\BIH.cpp">
          <Filter>vmaps</Filter>
        </ClCompile>
    @@ -953,6 +954,7 @@
        </ClInclude>
        <ClInclude Include="..\\..\\src\\game\\playerbot\\PlayerbotWarriorAI.h">
          <Filter>World/Handlers</Filter>
    +    </ClInclude>
        <ClInclude Include="..\\..\\src\\game\\vmap\\BIH.h">
          <Filter>vmaps</Filter>
        </ClInclude>
    

  3. Hi Guys!

    I found this code LFG on the Internet! but do not know who the author of the code! LINK

    I believe was taken from the RSA

    my problem when I compile and give me this error.

     ObjectMgr.cpp
    ..\\..\\src\\game\\ObjectMgr.cpp(202): error C2663: 'std::_Hash<_Traits>::find' : 2 overloads have no legal conversion for 'this' pointer
             with
             [
                 _Traits=std::tr1::_Umap_traits<uint32,Group *,std::_Hash_compare<uint32,std::hash<uint32>,std::equal_to<size_t>>,std::allocator<std::pair<const uint32,Group *>>,false>
             ]
    

    file ObjectMgr.cpp

    Group* ObjectMgr::GetGroup(ObjectGuid guid) const
    {
       GroupMap::const_iterator itr = mGroupMap.find(guid);
       if (itr != mGroupMap.end())
           return itr->second;
    
       return NULL;
    }
    

    if possible someone help me. I will be grateful.

  4. try on!

     
    md playbot
    cd playbot
    git pull git://github.com/mangos/mangos.git
    git branch playbot
    git pull git://github.com/blueboy/mangos.git
    git diff master playbot > playerbot .diff
    

    so you can see the difference

    diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp
    index 8dc9148..10020d7 100644
    --- a/src/game/Chat.cpp
    +++ b/src/game/Chat.cpp
    @@ -702,7 +702,9 @@ ChatCommand * ChatHandler::getCommandTable()
            { "flusharenapoints",SEC_ADMINISTRATOR, false, &ChatHandler::HandleFlushArenaPointsCommand,    "", NULL },
            { "repairitems",    SEC_GAMEMASTER,     true,  &ChatHandler::HandleRepairitemsCommand,         "", NULL },
            { "waterwalk",      SEC_GAMEMASTER,     false, &ChatHandler::HandleWaterwalkCommand,           "", NULL },
    -        { "quit",           SEC_CONSOLE,        true,  &ChatHandler::HandleQuitCommand,                "", NULL },
    +        //Playerbot mod
    + { "bot",            SEC_PLAYER,         false, &ChatHandler::HandlePlayerbotCommand,           "", NULL },
    + { "quit",           SEC_CONSOLE,        true,  &ChatHandler::HandleQuitCommand,                "", NULL },
    
            { NULL,             0,                  false, NULL,                                           "", NULL }
        };
    @@ -935,7 +937,7 @@ bool ChatHandler::ExecuteCommandInTable(ChatCommand *table, const char* text, co
                            fullcmd.c_str(),p->GetName(),GetAccountId(),p->GetPositionX(),p->GetPositionY(),p->GetPositionZ(),p->GetMapId(),
                            sel_guid.GetString().c_str());
                    }
    -                else                                        // 0 account -> console
    +                else                                   // 0 account -> console
                    {
                        sLog.outCommand(GetAccountId(),"Command: %s [Account: %u from %s]",
                            fullcmd.c_str(),GetAccountId(),GetAccountId() ? "RA-connection" : "Console");
    

  5. you can fix with this diff!

    diff --git a/win/VC100/game.vcxproj b/win/VC100/game.vcxproj
    index 44858d5..7da58d2 100644
    --- a/win/VC100/game.vcxproj
    +++ b/win/VC100/game.vcxproj
    @@ -455,6 +455,19 @@
        <ClCompile Include="..\\..\\src\\game\\PetHandler.cpp" />
        <ClCompile Include="..\\..\\src\\game\\PetitionsHandler.cpp" />
        <ClCompile Include="..\\..\\src\\game\\Player.cpp" />
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotAI.cpp" />
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotClassAI.cpp" />
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotDeathKnightAI.cpp" />
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotDruidAI.cpp" />
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotHunterAI.cpp" />
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotMageAI.cpp" />
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotMgr.cpp" />
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotPaladinAI.cpp" />
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotPriestAI.cpp" />
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotRogueAI.cpp" />
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotShamanAI.cpp" />
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotWarlockAI.cpp" />
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotWarriorAI.cpp" />
        <ClCompile Include="..\\..\\src\\game\\PlayerDump.cpp" />
        <ClCompile Include="..\\..\\src\\game\\PointMovementGenerator.cpp" />
        <ClCompile Include="..\\..\\src\\game\\PoolManager.cpp" />
    @@ -591,6 +604,19 @@
        <ClInclude Include="..\\..\\src\\game\\Pet.h" />
        <ClInclude Include="..\\..\\src\\game\\PetAI.h" />
        <ClInclude Include="..\\..\\src\\game\\Player.h" />
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotAI.h" />
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotClassAI.h" />
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotDeathKnightAI.h" />
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotDruidAI.h" />
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotHunterAI.h" />
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotMageAI.h" />
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotMgr.h" />
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotPaladinAI.h" />
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotPriestAI.h" />
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotRogueAI.h" />
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotShamanAI.h" />
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotWarlockAI.h" />
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotWarriorAI.h" />
        <ClInclude Include="..\\..\\src\\game\\PlayerDump.h" />
        <ClInclude Include="..\\..\\src\\game\\PointMovementGenerator.h" />
        <ClInclude Include="..\\..\\src\\game\\PoolManager.h" />
    diff --git a/win/VC100/game.vcxproj.filters b/win/VC100/game.vcxproj.filters
    index 804e667..a32fd38 100644
    --- a/win/VC100/game.vcxproj.filters
    +++ b/win/VC100/game.vcxproj.filters
    @@ -445,6 +445,45 @@
        <ClCompile Include="..\\..\\src\\game\\Camera.cpp">
          <Filter>Object</Filter>
        </ClCompile>
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotAI.cpp">
    +      <Filter>Object</Filter>
    +    </ClCompile>
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotClassAI.cpp">
    +      <Filter>Object</Filter>
    +    </ClCompile>
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotDeathKnightAI.cpp">
    +      <Filter>Object</Filter>
    +    </ClCompile>
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotDruidAI.cpp">
    +      <Filter>Object</Filter>
    +    </ClCompile>
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotHunterAI.cpp">
    +      <Filter>Object</Filter>
    +    </ClCompile>
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotMageAI.cpp">
    +      <Filter>Object</Filter>
    +    </ClCompile>
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotMgr.cpp">
    +      <Filter>Object</Filter>
    +    </ClCompile>
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotPaladinAI.cpp">
    +      <Filter>Object</Filter>
    +    </ClCompile>
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotPriestAI.cpp">
    +      <Filter>Object</Filter>
    +    </ClCompile>
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotRogueAI.cpp">
    +      <Filter>Object</Filter>
    +    </ClCompile>
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotShamanAI.cpp">
    +      <Filter>Object</Filter>
    +    </ClCompile>
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotWarlockAI.cpp">
    +      <Filter>Object</Filter>
    +    </ClCompile>
    +    <ClCompile Include="..\\..\\src\\game\\PlayerbotWarriorAI.cpp">
    +      <Filter>Object</Filter>
    +    </ClCompile>
      </ItemGroup>
      <ItemGroup>
        <ClInclude Include="..\\..\\src\\game\\AccountMgr.h">
    @@ -838,5 +877,44 @@
        <ClInclude Include="..\\..\\src\\game\\Camera.h">
          <Filter>Object</Filter>
        </ClInclude>
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotAI.h">
    +      <Filter>Object</Filter>
    +    </ClInclude>
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotClassAI.h">
    +      <Filter>Object</Filter>
    +    </ClInclude>
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotDeathKnightAI.h">
    +      <Filter>Object</Filter>
    +    </ClInclude>
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotDruidAI.h">
    +      <Filter>Object</Filter>
    +    </ClInclude>
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotHunterAI.h">
    +      <Filter>Object</Filter>
    +    </ClInclude>
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotMageAI.h">
    +      <Filter>Object</Filter>
    +    </ClInclude>
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotMgr.h">
    +      <Filter>Object</Filter>
    +    </ClInclude>
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotPaladinAI.h">
    +      <Filter>Object</Filter>
    +    </ClInclude>
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotPriestAI.h">
    +      <Filter>Object</Filter>
    +    </ClInclude>
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotRogueAI.h">
    +      <Filter>Object</Filter>
    +    </ClInclude>
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotShamanAI.h">
    +      <Filter>Object</Filter>
    +    </ClInclude>
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotWarlockAI.h">
    +      <Filter>Object</Filter>
    +    </ClInclude>
    +    <ClInclude Include="..\\..\\src\\game\\PlayerbotWarriorAI.h">
    +      <Filter>Object</Filter>
    +    </ClInclude>
      </ItemGroup>
    </Project>
    \\ No newline at end of file
    

  6. BlueBoy

    Look at this diff, correct white spaces, and includes VB2010 and VB2005!

    Special look Here!

            CharacterDatabase.PExecute("UPDATE characters SET online = 0 WHERE guid = '%u'", guid);
    
    -        sLog.outDebug( "SESSION: Sent SMSG_LOGOUT_COMPLETE Message" );
    -        CharacterDatabase.PExecute("UPDATE characters SET online = 0 WHERE account = '%u'",
    -            GetAccountId());
            DEBUG_LOG( "SESSION: Sent SMSG_LOGOUT_COMPLETE Message" );
    

    http://www.mediafire.com/?0gldjtmtaj2

  7. Hi kaxias,

    So let me get this straight, when you invite another player (not a bot) to join the player group, your logged out.

    Although the patches may well appear to work well, they can often conflict, causing weird side effects. I will check playerbot with MaNGOS[10149] and see whether I get a problem. Then I suggest you add each of the patches one by one until the error occurs again. That way we can track the root cause. I'll also look at the changelogs, to see if there are any logout issues.

    Cheers

    Hi BlueBoy

    i try to invite playerbot for injoin the grupo for do instance!

  8. Hi,

    Thanks for the info, but can you give me some details.

    What version of MaNGOS are you running with playerbot and which mods/patches are you using?

    Please get back to me

    Mangos core 10149

    UBD

    BattleGround Patch

    VeHicle e Dungoen_Finde Patch from zergtmn

    All patch works well, including PlayerBot.

    logout happens every time it is to invite for group another player!

  9. I'm trying to give more XP for those who complete the quest if the premium is active!

    but I see that this is not happening!

    can someone help me fix it?

    uint32 XP = q_status.m_rewarded ? 0 : uint32(pQuest->XPValue( this )*sWorld.getConfig(CONFIG_FLOAT_RATE_XP_QUEST));

    if (GetSession()->IsPremium())

    uint32 XP = q_status.m_rewarded ? 0 : uint32(pQuest->XPValue( this )*sWorld.getConfig(CONFIG_FLOAT_RATE_XP_QUEST_PREMIUM));

    sorry forgot it! it my pc have problem!

  10. Well this patch of the user who invited anyone to play on server!

    After having accepted the invitation.

    both can earn more XP for killing noobs, for completing quests, explored territories!

    I do not know where this patch came out!

    I have modified to mangos 10112.

    http://www.mediafire.com/file/nm22xt2zjny/PATCH-ACCOUNT-PREMIUM.rar

    if someone wants to implement this patch feel free to modify!

    forget to put it has to create a php script and put it on your website to work!

    sorry for my bad ingles!

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